From fd16f78caabb119dd0f969a9cbbacb9ff9aa1942 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Tue, 4 Aug 2015 20:58:37 -0500 Subject: [PATCH] IDEMPIERE-2658 Show bpartner name instead of user name in description of allocations generated from Payment Allocation --- org.adempiere.base/src/org/compiere/model/MAllocationHdr.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MAllocationHdr.java b/org.adempiere.base/src/org/compiere/model/MAllocationHdr.java index 3ea5950a06..0f6232eb00 100644 --- a/org.adempiere.base/src/org/compiere/model/MAllocationHdr.java +++ b/org.adempiere.base/src/org/compiere/model/MAllocationHdr.java @@ -54,8 +54,7 @@ public class MAllocationHdr extends X_C_AllocationHdr implements DocAction /** * */ - private static final long serialVersionUID = -7787519874581251920L; - + private static final long serialVersionUID = 8726957992840702609L; /** Tolerance Gain and Loss */ private static final BigDecimal TOLERANCE = BigDecimal.valueOf(0.02); @@ -1265,6 +1264,7 @@ public class MAllocationHdr extends X_C_AllocationHdr implements DocAction if (sysconfig_desc.contains("@")) { description = Env.parseVariable(sysconfig_desc, new MBPartner(getCtx(), bpartnerID, null), trxName, true); description = Env.parseVariable(description, this, trxName, true); + description = Msg.parseTranslation(getCtx(), description); } else description = Env.getContext(getCtx(), "#AD_User_Name"); // just to be sure