IDEMPIERE-2865 Over/Underpayment doesnt calculated properly from Bank Statment/Create Payment process
This commit is contained in:
parent
5bf390ecc9
commit
13a13bd93b
|
@ -196,7 +196,7 @@ public class BankStatementPayment extends SvrProcess
|
|||
payment.setPayAmt(PayAmt);
|
||||
else // payment is likely to be negative
|
||||
payment.setPayAmt(PayAmt.negate());
|
||||
payment.setOverUnderAmt(invoice.getGrandTotal(true).subtract(payment.getPayAmt()));
|
||||
payment.setOverUnderAmt(invoice.getOpenAmt().subtract(payment.getPayAmt()));
|
||||
}
|
||||
else // set Pay Amout from Invoice
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue