Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if($balance >= $due)
  2. {
  3. $amount = $due;
  4. }
  5. else
  6. {
  7. $amount = $due - $balance
  8. }
  9.  
  10. if($balance > '0')
  11. {
  12. $data = array(
  13. 'invoice_id' => $invoice_id,
  14. 'balance_pay' => '1',
  15. 'amount' =>
  16. );
  17.  
  18. $this->payment->create($data);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement