Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($balance >= $due)
- {
- $amount = $due;
- }
- else
- {
- $amount = $due - $balance
- }
- if($balance > '0')
- {
- $data = array(
- 'invoice_id' => $invoice_id,
- 'balance_pay' => '1',
- 'amount' =>
- );
- $this->payment->create($data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement