IDEMPIERE-2658 Show bpartner name instead of user name in description of allocations generated from Payment Allocation

This commit is contained in:
Nicolas Micoud 2015-08-04 20:58:37 -05:00
parent 3951017a87
commit fd16f78caa
1 changed files with 2 additions and 2 deletions

View File

@ -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