IDEMPIERE-5098 MCost.get: new MCost created without trxName (#1048)

This commit is contained in:
hengsin 2021-12-14 01:41:21 +08:00 committed by GitHub
parent e5344194a3
commit 1eedd3f5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1378,8 +1378,11 @@ public class MCost extends X_M_Cost
//FR: [ 2214883 ] - end -
// New
if (cost == null)
{
cost = new MCost (product, M_AttributeSetInstance_ID,
as, AD_Org_ID, M_CostElement_ID);
cost.set_TrxName(trxName);
}
return cost;
} // get