mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 04:24:36 -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;
|
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
|
//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){
|
else if($inv->status_id == Invoice::STATUS_DRAFT && $invoice['amount'] > $inv->amount){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user