From 4c31b73d05c2518723a4263c02344bfce3afc210 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期二, 24 九月 2024 10:35:15 +0800
Subject: [PATCH] Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024

---
 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