IDEMPIERE-2219 When choosing a payment for Vendor the amount does not get copied to the applied amount field
This commit is contained in:
parent
28db4e66f8
commit
75948bce27
|
@ -408,7 +408,7 @@ public class Allocation
|
||||||
// selection of payment row
|
// selection of payment row
|
||||||
if (((Boolean)payment.getValueAt(row, 0)).booleanValue())
|
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
|
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
|
&& totalDiff.signum() == -applied.signum() ) // and the available amount has the opposite sign
|
||||||
applied = totalDiff.negate(); // reduce the amount applied to what's available
|
applied = totalDiff.negate(); // reduce the amount applied to what's available
|
||||||
|
|
Loading…
Reference in New Issue