Minor fix for payment validations'
This commit is contained in:
parent
db9e8ff830
commit
f06fc9f720
1 changed files with 1 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue