IDEMPIERE-2219 When choosing a payment for Vendor the amount does not get copied to the applied amount field

This commit is contained in:
Carlos Ruiz 2014-10-01 09:07:37 -05:00
parent 28db4e66f8
commit 75948bce27
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ public class Allocation
// selection of payment row
if (((Boolean)payment.getValueAt(row, 0)).booleanValue())
{
applied = open.signum() > 0 ? open : BigDecimal.ZERO; // Open Amount
applied = open; // Open Amount
if (totalDiff.abs().compareTo(applied.abs()) < 0 // where less is available to allocate than open
&& totalDiff.signum() == -applied.signum() ) // and the available amount has the opposite sign
applied = totalDiff.negate(); // reduce the amount applied to what's available