From 2fbc217eb8bfcf62210e829e0847be3542c2e2d3 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 23 九月 2024 23:29:17 +0800 Subject: [PATCH] wms - 无工单入库,如果扫描外箱的不能更新数量 --- Tiger.Business.WMS/Transaction/OtherInLocation.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Tiger.Business.WMS/Transaction/OtherInLocation.cs b/Tiger.Business.WMS/Transaction/OtherInLocation.cs index 36a28c3..64b15c3 100644 --- a/Tiger.Business.WMS/Transaction/OtherInLocation.cs +++ b/Tiger.Business.WMS/Transaction/OtherInLocation.cs @@ -168,17 +168,28 @@ res.Data.History.Add(his); res.Data.Packages.Add(ItemPkgs); } + else if (res.Data.Items.Count == 1) + { + res.Data.Items.First().QTY = res.Data.Barcode.Qty.ToDecimal(); + res.Data.Items.First().ERP_WH = WarehouseCode; + res.Data.Items.First().AUTH_ORG = input.AuthOption.CurOrg; + + res.Data.Packages.First().QTY = res.Data.Barcode.Qty.ToDecimal(); + res.Data.Packages.First().ERP_WH = WarehouseCode; + res.Data.Packages.First().AUTH_ORG = input.AuthOption.CurOrg; + } + //濡傛灉鎵弿澶栫鐨勪笉鑳芥洿鏂版暟閲� 2024-09-23 Ben Lin else { foreach (var item in res.Data.Items) { - item.QTY = res.Data.Barcode.Qty.ToDecimal(); + //item.QTY = res.Data.Barcode.Qty.ToDecimal(); item.ERP_WH = WarehouseCode; item.AUTH_ORG = input.AuthOption.CurOrg; } foreach (var item in res.Data.Packages) { - item.QTY = res.Data.Barcode.Qty.ToDecimal(); + //item.QTY = res.Data.Barcode.Qty.ToDecimal(); item.ERP_WH = WarehouseCode; item.AUTH_ORG = input.AuthOption.CurOrg; } -- Gitblit v1.9.3