IDEMPIERE-2134 Issues found on Payment Selection process - one more thing to make it work correctly for sales

This commit is contained in:
Carlos Ruiz 2014-08-14 16:33:02 +02:00
parent 6758daac61
commit e8228d6fbe
1 changed files with 2 additions and 0 deletions

View File

@ -445,6 +445,8 @@ public class PaySelect
BigDecimal OpenAmt = (BigDecimal)miniTable.getValueAt(i, 8);
BigDecimal PayAmt = (BigDecimal)miniTable.getValueAt(i, 9);
boolean isSOTrx = false;
if (paymentRule != null && X_C_Order.PAYMENTRULE_DirectDebit.equals(paymentRule.getValue()))
isSOTrx = true;
//
psl.setInvoice(C_Invoice_ID, isSOTrx,
OpenAmt, PayAmt, OpenAmt.subtract(PayAmt));