public PickListDetail CreatePicklistDetailWithOrder(ReceiveDoc receiveDoc, ReceivePallet receivePallet, Order order, PickList picklist, decimal pack)
        {
            double? cost = null;
            OrderService orderService = new OrderService();
            orderService.CreateOrderDetail(receiveDoc, order, pack);
            if (!receiveDoc.IsColumnNull("Cost"))
                cost = receiveDoc.Cost;
            PickListDetail pickListDetail = PickListDetail.GeneratePickListDetail(pack, cost, receiveDoc.ID, receiveDoc.ManufacturerId, receivePallet.ID,
                receiveDoc.QtyPerPack, receiveDoc.StoreID, receiveDoc.UnitID, receiveDoc.ItemID, picklist.ID, receivePallet.PalletID, receiveDoc.IsColumnNull("ExpDate")?"":receiveDoc.ExpDate.ToString(),  receiveDoc.IsColumnNull("BatchNo")?"":receiveDoc.BatchNo);
            ReceivePallet.ReserveQty(pack, receivePallet.ID);

            return pickListDetail;
        }
 public OrderController()
 {
     serivce = new OrderService();
 }
Exemple #3
0
 public HomeController()
 {
     service = new OrderService();
 }
 public OrdersController()
 {
     service = new OrderService();
     detail_service = new OrderDetailService();
 }