diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs index 743406d4..5bd924fa 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryBindService.cs @@ -189,7 +189,8 @@ namespace Tnb.WarehouseMgr { throw new Exception($"不能绑定多个不同类型单据打印的条码!:{string.Join(',', WmsTempCodes.DistinctBy(r => r.required_type).Select(r => r.barcode).ToList())}"); } - + string auxprop_gys = ""; + string auxprop_xph = ""; var bill_group = WmsTempCodes.GroupBy(r => new { r.require_id, r.required_type }); foreach (var group in bill_group) { @@ -217,6 +218,8 @@ namespace Tnb.WarehouseMgr throw new Exception($"托盘{input.carrycode} 物料{wmsPurchaseD.material_code} 当前绑定数量为{sum} 剩余可绑定数量为{(wmsPurchaseD.purchase_arriveqty - bind_qty).ParseToFloat()}!"); } wmsPurchaseD.bind_qty = sum + bind_qty; + auxprop_gys = wmsPurchaseD.auxprop_gys; + auxprop_xph = wmsPurchaseD.auxprop_xph; await _db.Updateable(wmsPurchaseD).ExecuteCommandAsync(); break; } @@ -234,6 +237,9 @@ namespace Tnb.WarehouseMgr throw new Exception($"托盘{input.carrycode} 物料{wmsOutsourceD.matcode} 当前绑定数量为{sum} 剩余可绑定数量为{wmsOutsourceD.actual_quantity - bind_qty}!"); } wmsOutsourceD.bind_qty = sum + bind_qty; + + auxprop_gys = wmsOutsourceD.auxprop_gys; + auxprop_xph = wmsOutsourceD.auxprop_xph; await _db.Updateable(wmsOutsourceD).ExecuteCommandAsync(); break; } @@ -252,6 +258,8 @@ namespace Tnb.WarehouseMgr throw new Exception($"托盘{input.carrycode} 物料{wmsRawmatTransferinstockD.matcode} 当前绑定数量为{sum} 剩余可绑定数量为{wmsRawmatTransferinstockD.actual_qty - bind_qty}!"); } wmsRawmatTransferinstockD.bind_qty = sum + bind_qty; + auxprop_gys = wmsRawmatTransferinstockD.auxprop_gys; + auxprop_xph = wmsRawmatTransferinstockD.auxprop_xph; await _db.Updateable(wmsRawmatTransferinstockD).ExecuteCommandAsync(); break; }