public void CheckCosting() { log.Info(ToString()); // Create Cost Type if (GetM_CostType_ID() == 0) { MCostType ct = new MCostType(GetCtx(), 0, Get_TrxName()); ct.SetClientOrg(GetAD_Client_ID(), 0); ct.SetName(GetName()); ct.Save(); SetM_CostType_ID(ct.GetM_CostType_ID()); } // Create Cost Elements MCostElement.GetMaterialCostElement(this, GetCostingMethod()); // Default Costing Level if (GetCostingLevel() == null) { SetCostingLevel(COSTINGLEVEL_Client); } if (GetCostingMethod() == null) { SetCostingMethod(COSTINGMETHOD_StandardCosting); } if (GetGAAP() == null) { SetGAAP(GAAP_InternationalGAAP); } } // checkCosting
/// <summary> /// Check Costing Setup /// </summary> public void CheckCosting() { // Create Cost Elements if (GetCostingMethod() != null && GetCostingMethod().Length > 0) { MCostElement.GetMaterialCostElement(this, GetCostingMethod()); } }