From 6f3b05c06125b457d0c78e259f3befe4910881cf Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 27 十月 2024 16:54:29 +0800 Subject: [PATCH] 计划任务更新 --- 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