public override String LoadDocumentDetails() { costupdate = (MCostUpdate)GetPO(); if (costupdate.GetM_Product_Category_ID() != 0) { mpc = MProductCategory.Get(GetCtx(), costupdate.GetM_Product_Category_ID()); } _lines = LoadLines(costupdate); m_ce = MCostElement.GetMaterialCostElement(MClient.Get(GetCtx()), X_C_AcctSchema.COSTINGMETHOD_StandardCosting); SetDateAcct(costupdate.GetDateAcct()); SetDateDoc(costupdate.GetDateAcct()); return(null); }
private DocLine[] LoadLines(MCostUpdate costupdate) { List <DocLine> list = new List <DocLine>(); MCostUpdateLine[] lines = costupdate.GetLines(); for (int i = 0; i < lines.Length; i++) { MCostUpdateLine line = lines[i]; DocLine docLine = new DocLine(line, this); list.Add(docLine); } DocLine[] dl = new DocLine[list.Count]; dl = list.ToArray(); return(dl); }