Пример #1
0
        public ActionResult InvoiceDetail(int orderId, int adminId)
        {
            var      order = orderService.Delivery(orderId);
            StockLog log   = new StockLog()
            {
                GoodsId         = order.GoodsId,
                OperationRecord = "发货",
                AdminId         = (int)Session["AdminId"],
                OperationTime   = DateTime.Now,
                WarehouseId     = order.WarehouseId,
                OrderId         = order.OrderId,
                VersionId       = order.VersionId,
                Stock           = -1,
            };

            warehouseService.AddWarehouseLog(log);
            return(RedirectToAction("InvoiceList"));
        }