mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fix for payment validations'
This commit is contained in:
parent
db9e8ff830
commit
f06fc9f720
@ -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…
x
Reference in New Issue
Block a user