From 40a55e90e5b9b8afff04860ca1ae845cb7bd96e3 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 24 十二月 2024 09:16:29 +0800
Subject: [PATCH] 入库上架更新

---
 Tiger.Business.WMS/WMS_ITEM_Biz.cs |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/Tiger.Business.WMS/WMS_ITEM_Biz.cs b/Tiger.Business.WMS/WMS_ITEM_Biz.cs
index 624e351..4bc1e2f 100644
--- a/Tiger.Business.WMS/WMS_ITEM_Biz.cs
+++ b/Tiger.Business.WMS/WMS_ITEM_Biz.cs
@@ -53,11 +53,11 @@
                         result.Flag = Result.Flags.Failed;
                         result.LocaleMsg = new("WMS.WmsItem.Barcode.IllegalFailure");
                     }
-                    else if (barcode.Qty <= 0)
-                    {
-                        result.Flag = Result.Flags.Failed;
-                        result.LocaleMsg = new("鏁伴噺涓嶈兘灏忎簬绛変簬闆讹紝璇锋鏌ヤ簩缁寸爜锛�");
-                    }
+                    //else if (barcode.Qty <= 0)
+                    //{
+                    //    result.Flag = Result.Flags.Failed;
+                    //    result.LocaleMsg = new("鏁伴噺涓嶈兘灏忎簬绛変簬闆讹紝璇锋鏌ヤ簩缁寸爜锛�");
+                    //}
                     else
                     {
                         var query = Biz.Db.Queryable<WMS_ITEM_PKG>().ByAuth(option).Where(q => q.SN == barcode.SN).IncludesAllFirstLayer().First();
@@ -86,7 +86,6 @@
                                     inv.ItemsExt.Add(new()
                                     {
                                         SN = item.SN,
-                                        SUPP_ITEM_CODE = barcode.OEMItemCode,
                                         META_SN = barcode.MetaSn,
                                         QR_CODE = barcode.MetaSn
                                     });
@@ -199,7 +198,6 @@
                                     inv.ItemsExt.Add(new()
                                     {
                                         SN = item.SN,
-                                        SUPP_ITEM_CODE = barcode.OEMItemCode,
                                         META_SN = barcode.MetaSn,
                                         QR_CODE = barcode.MetaSn
                                     });
@@ -293,7 +291,6 @@
                         {
                             item.AUTH_ORG = option.OrgCode;
                             item.SN = inv.Barcode.SN;
-                            item.SUPP_ITEM_CODE = inv.Barcode.OEMItemCode;
                         }
 
                         result.Data.Items = inventory.Items;

--
Gitblit v1.9.3