示例#1
0
        internal static ReceivingLineSummary GetReceivingLineSummary(PurchaseLineItem lineItem)
        {
            BinaryOperator op = new BinaryOperator("LineItem", lineItem);

            return(Repository
                   .Get <ReceivingLineSummary>(lineItem.Session)
                   .ByCriteria(op));
        }
示例#2
0
        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);
        }