IDEMPIERE-1787 1003797 Payment allocation completed but did not associate the payment to selected invoices - throw exception when 'Allocation not balanced' instead of logging as severe log

This commit is contained in:
Elaine Tan 2014-03-04 17:07:45 +08:00
parent 5080fb0eed
commit 7ca2cbc167
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ public class Allocation
}
if ( unmatchedApplied.signum() != 0 )
log.log(Level.SEVERE, "Allocation not balanced -- out by " + unmatchedApplied );
throw new AdempiereException("Allocation not balanced -- out by " + unmatchedApplied);
// Should start WF
if (alloc.get_ID() != 0)