Esempio n. 1
0
        private OrderEditItemModel CreateOrderEditItemModel(MOrder_OrderItem from)
        {
            var to = new OrderEditItemModel();

            CopyOrderEditItemModel(to, from);
            return(to);
        }
Esempio n. 2
0
 private void CopyOrderEditItemModel(OrderEditItemModel to, MOrder_OrderItem from)
 {
     to.Components         = CreateOrderItemComponentModels(from.OrderItemComponents);
     to.OrderItemId        = from.OrderItemId;
     to.OrderableReference = from.OrderableReference;
     to.Description        = from.Description;
     to.Quantity           = from.NetQuantity;
     to.OriginalQuantity   = from.OrderQuantity;
     to.Sku        = from.Sku;
     to.TotalPrice = from.TotalPrice;
     to.KitPrice   = from.UnitPrice;
 }