| | |
| | | return (updateOrderDetails); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åç®±æ°åè¢æ° |
| | | /// </summary> |
| | | /// <param name="orderDetail"></param> |
| | | /// <returns></returns> |
| | | public (int BoxQuantity, int StockQuantity) GetBoxStockQuantity(Dt_InboundOrderDetail orderDetail) |
| | | { |
| | | int BoxQuantity = 40; |
| | | int StockQuantity = 320; |
| | | var Quantity = orderDetail.OrderQuantity - orderDetail.ReceiptQuantity; |
| | | if (Quantity < 320) |
| | | { |
| | | StockQuantity = Convert.ToInt32(Quantity); |
| | | BoxQuantity = StockQuantity / 8; |
| | | if (StockQuantity % 8 > 0) BoxQuantity++; |
| | | } |
| | | return (BoxQuantity, StockQuantity); |
| | | } |
| | | |
| | | public void UpdateOverInQuantity(List<Dt_InboundOrderDetail> inboundOrderDetails, decimal overInQuantity) |
| | | { |
| | | |