IDEMPIERE-2865 Over/Underpayment doesnt calculated properly from Bank Statment/Create Payment process

This commit is contained in:
michal_zilincar 2015-09-21 21:01:36 +02:00
parent 5bf390ecc9
commit 13a13bd93b
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ public class BankStatementPayment extends SvrProcess
payment.setPayAmt(PayAmt); payment.setPayAmt(PayAmt);
else // payment is likely to be negative else // payment is likely to be negative
payment.setPayAmt(PayAmt.negate()); 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 else // set Pay Amout from Invoice
{ {