IDEMPIERE-2806 Incorrect Open Balance on Business Partner Screen
This commit is contained in:
parent
c4dea23fec
commit
22ed5bebb4
|
@ -27,6 +27,7 @@ import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.minigrid.IMiniTable;
|
import org.compiere.minigrid.IMiniTable;
|
||||||
import org.compiere.model.MAllocationHdr;
|
import org.compiere.model.MAllocationHdr;
|
||||||
import org.compiere.model.MAllocationLine;
|
import org.compiere.model.MAllocationLine;
|
||||||
|
import org.compiere.model.MBPartner;
|
||||||
import org.compiere.model.MInvoice;
|
import org.compiere.model.MInvoice;
|
||||||
import org.compiere.model.MPayment;
|
import org.compiere.model.MPayment;
|
||||||
import org.compiere.model.MRole;
|
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")
|
if (log.isLoggable(Level.CONFIG)) log.config("Payment #" + i + (pay.isAllocated() ? " not" : " is")
|
||||||
+ " fully allocated");
|
+ " fully allocated");
|
||||||
}
|
}
|
||||||
|
MBPartner bpartner = new MBPartner(Env.getCtx(), m_C_BPartner_ID, trxName);
|
||||||
|
bpartner.setTotalOpenBalance();
|
||||||
|
bpartner.save();
|
||||||
paymentList.clear();
|
paymentList.clear();
|
||||||
amountList.clear();
|
amountList.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue