The "public static MCost get (MProduct product, int M_AttributeSetInstance_ID, MAcctSchema as, int AD_Org_ID, int M_CostElement_ID, String trxName)" method create a new MCost record where there isn't one in DB. There's a minor error here - the new MCost record is created without using the trxName parameter.
The "public static MCost get (MProduct product, int M_AttributeSetInstance_ID, MAcctSchema as, int AD_Org_ID, int M_CostElement_ID, String trxName)" method create a new MCost record where there isn't one in DB. There's a minor error here - the new MCost record is created without using the trxName parameter.