From 22ed5bebb47214050195dae2674695f3cc857ea0 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 16 Sep 2015 17:53:49 +0200 Subject: [PATCH] IDEMPIERE-2806 Incorrect Open Balance on Business Partner Screen --- org.adempiere.ui/src/org/compiere/apps/form/Allocation.java | 4 ++++ 1 file changed, 4 insertions(+) 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 9d8ecd4521..8370ebd14d 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java @@ -27,6 +27,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.minigrid.IMiniTable; import org.compiere.model.MAllocationHdr; import org.compiere.model.MAllocationLine; +import org.compiere.model.MBPartner; import org.compiere.model.MInvoice; import org.compiere.model.MPayment; import org.compiere.model.MRole; @@ -801,6 +802,9 @@ public class Allocation if (log.isLoggable(Level.CONFIG)) log.config("Payment #" + i + (pay.isAllocated() ? " not" : " is") + " fully allocated"); } + MBPartner bpartner = new MBPartner(Env.getCtx(), m_C_BPartner_ID, trxName); + bpartner.setTotalOpenBalance(); + bpartner.save(); paymentList.clear(); amountList.clear();