diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs index ffa148e2..9ac3fbee 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs @@ -13,5 +13,9 @@ namespace Tnb.WarehouseMgr.Entities.Dto.Inputs /// 条码的张数 /// public int barcode_qty { get; set; } + /// + /// 条码数量 + /// + public int code_qty { get; set; } } } diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs index 9f873e19..8890a89c 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs @@ -164,6 +164,7 @@ namespace Tnb.WarehouseMgr }; int codeNum = 0; + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty; diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs index d00201f7..cdee4a18 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs @@ -469,7 +469,7 @@ namespace Tnb.WarehouseMgr throw new AppFriendlyException($"物料{WmsPurchaseD.material_code} {WmsPurchaseD.material_id} 包装数量为空或者等于0,无法打印!", 500); }; int codeNum = 0; - + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty; diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs index 2e67299e..9cbac22b 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs @@ -244,7 +244,7 @@ namespace Tnb.WarehouseMgr throw new AppFriendlyException($"物料{WmsRawmatTransferinstockD.matcode} {WmsRawmatTransferinstockD.matcode_id} 包装数量为空或者等于0,无法打印!", 500); }; int codeNum = 0; - + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty;