/// <summary> /// Load Document Details /// </summary> /// <returns>error message or null</returns> public override String LoadDocumentDetails() { SetC_Currency_ID(Doc.NO_CURRENCY); MMatchInv matchInv = (MMatchInv)GetPO(); SetDateDoc(matchInv.GetDateTrx()); SetQty(matchInv.GetQty()); // Invoice Info int C_InvoiceLine_ID = matchInv.GetC_InvoiceLine_ID(); _invoiceLine = new MInvoiceLine(GetCtx(), C_InvoiceLine_ID, null); // BP for NotInvoicedReceipts int C_BPartner_ID = _invoiceLine.GetParent().GetC_BPartner_ID(); SetC_BPartner_ID(C_BPartner_ID); // int M_InOutLine_ID = matchInv.GetM_InOutLine_ID(); _receiptLine = new MInOutLine(GetCtx(), M_InOutLine_ID, null); // _pc = new ProductCost(GetCtx(), GetM_Product_ID(), matchInv.GetM_AttributeSetInstance_ID(), null); _pc.SetQty(GetQty()); return(null); }
/// <summary> /// Load Document Details /// </summary> /// <returns>error message or null</returns> public override String LoadDocumentDetails() { SetC_Currency_ID(Doc.NO_CURRENCY); MMatchPO matchPO = (MMatchPO)GetPO(); SetDateDoc(matchPO.GetDateTrx()); // _M_AttributeSetInstance_ID = matchPO.GetM_AttributeSetInstance_ID(); SetQty(matchPO.GetQty()); // _C_OrderLine_ID = matchPO.GetC_OrderLine_ID(); _oLine = new MOrderLine(GetCtx(), _C_OrderLine_ID, GetTrxName()); // _M_InOutLine_ID = matchPO.GetM_InOutLine_ID(); // m_C_InvoiceLine_ID = matchPO.getC_InvoiceLine_ID(); // _pc = new ProductCost(GetCtx(), GetM_Product_ID(), _M_AttributeSetInstance_ID, GetTrxName()); _pc.SetQty(GetQty()); return(null); }