Guest User

Untitled

a guest
Dec 13th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if ($allInvoiced) {
  2. echo "allinvoiced";
  3. return false;
  4. }
  5.  
  6.  
  7. public function getQtyToInvoice()
  8. {
  9. if ($this->isDummy()) {
  10. return 0;
  11. }
  12.  
  13. $qty = $this->getQtyOrdered()
  14. - $this->getQtyInvoiced()
  15. - $this->getQtyCanceled();
  16. return max($qty, 0);
  17. }
Add Comment
Please, Sign In to add comment