mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 07:14:33 -04:00
Fix cash_adjustment NULL exception
This commit is contained in:
1 parent
f0067757e2
commit
676e09068e
1 file changed
+5
@@ -633,6 +633,11 @@ class Sale extends CI_Model
|
||||
$total_amount_used = floatval($total_amount_used) + floatval($payment['payment_amount']);
|
||||
}
|
||||
|
||||
if($payment['cash_adjustment'] == NULL)
|
||||
{
|
||||
$payment['cash_adjustment'] = CASH_ADJUSTMENT_FALSE;
|
||||
}
|
||||
|
||||
$sales_payments_data = array(
|
||||
'sale_id' => $sale_id,
|
||||
'payment_type' => $payment['payment_type'],
|
||||
|
||||
Reference in new issue
Block a user