internal static ReceivingLineSummary GetReceivingLineSummary(PurchaseLineItem lineItem) { BinaryOperator op = new BinaryOperator("LineItem", lineItem); return(Repository .Get <ReceivingLineSummary>(lineItem.Session) .ByCriteria(op)); }
public PurchaseLineItem AddLineItem(Part part, int qty) { PurchaseLineItem lineItem = Scout.Core.Data.CreateEntity <PurchaseLineItem>(Session); lineItem.PurchaseOrder = this; lineItem.Quantity = qty; lineItem.LoadPartDetails(part); LineItems.Add(lineItem); return(lineItem); }