| | |
| | | return content; |
| | | } |
| | | |
| | | |
| | | public WebResponseContent OutTaskFinish(Dt_SupplyTask supplyTask, Dt_DeliveryOrder deliveryOrder) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | _inventory_BatchServices.DeleteData(inventory_Batch); |
| | | else |
| | | _inventory_BatchServices.UpdateData(inventory_Batch); |
| | | _materielInfoService.UpdateData(materielInfo); |
| | | //_materielInfoService.UpdateData(materielInfo); |
| | | if (inventoryInfo.StockQuantity <= 0) |
| | | _inventoryInfoService.DeleteData(inventoryInfo); |
| | | else |
| | |
| | | { |
| | | materielInfo.Business_qty -= supplyTask.StockQuantity; |
| | | if (materielInfo.Business_qty < materielInfo.MinQty) |
| | | { |
| | | CreateAllocatInOut(materielInfo);//鍒涘缓璋冩嫧浠诲姟 |
| | | } |
| | | else |
| | | { |
| | | _materielInfoService.UpdateData(materielInfo); |
| | | } |
| | | |
| | | |
| | | } |
| | | #endregion |
| | | _unitOfWorkManage.CommitTran(); |