Minor fix for payment validations'

This commit is contained in:
David Bomba 2021-01-21 10:58:54 +11:00
parent db9e8ff830
commit f06fc9f720

View File

@ -72,7 +72,7 @@ class ValidInvoicesRules implements Rule
return false;
}
if($inv->status_id == Invoice::STATUS_DRAFT && $invoice['amount'] == $inv->amount){
if($inv->status_id == Invoice::STATUS_DRAFT && $invoice['amount'] <= $inv->amount){
//catch here nothing to do - we need this to prevent the last elseif triggering
}
else if($inv->status_id == Invoice::STATUS_DRAFT && $invoice['amount'] > $inv->amount){