From 7ca2cbc16718ae6ae41236347c4475dcab52447a Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Tue, 4 Mar 2014 17:07:45 +0800 Subject: [PATCH] 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 --- org.adempiere.ui/src/org/compiere/apps/form/Allocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java b/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java index 85473e3905..17ee0b030d 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java @@ -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)