| | |
| | | } |
| | | #endregion |
| | | //取合适库存商品 |
| | | Dictionary<int, int> stockQtyDic = new Dictionary<int, int>();//托出库物品数 |
| | | Dictionary<int, decimal> stockQtyDic = new Dictionary<int, decimal>();//托出库物品数 |
| | | Dictionary<string, int> zxQtyDic = new Dictionary<string, int>();//托出整箱数 |
| | | //分配货物 |
| | | //assign.AllocatePallets(stocks, pNum, bNum, needQty, stockQtyDic, zxQtyDic); |
| | | int qty = assign.AllotPallets(stockDetail, int.Parse(needQty.ToString()), pNum, bNum, stockQtyDic); |
| | | var qty = assign.AllotPallets(stockDetail, decimal.Parse(needQty.ToString()), pNum, bNum, stockQtyDic); |
| | | |
| | | foreach (var sc in stockQtyDic) |
| | | { |
| | |
| | | //修改出库单状态 |
| | | if (notice.Status == "0" || notice.Status == "1") |
| | | { |
| | | int totalQty = 0; |
| | | int totalAllotQty = 0; |
| | | decimal totalQty = 0; |
| | | decimal totalAllotQty = 0; |
| | | foreach (var item in detailList) |
| | | { |
| | | totalQty += item.Qty; |