From 86985a3e211ab4cc1e94a696c15a6f77d21c462a Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期二, 15 十月 2024 18:36:51 +0800 Subject: [PATCH] 修改出库单据问题 --- Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs index c905806..faa19db 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs @@ -2247,29 +2247,29 @@ factQty += box.Qty; boxFullQty += box.Qty; } - if (boxFullQty > bNum) - { - throw new Exception($"缁戝畾澶辫触锛寋g.Key}绠辩爜缁戝畾鏁伴噺澶т簬璇ョ墿鍝佸寘瑁呮暟閲忥紒"); - } + //if (boxFullQty > bNum) + //{ + // throw new Exception($"缁戝畾澶辫触锛寋g.Key}绠辩爜缁戝畾鏁伴噺澶т簬璇ョ墿鍝佸寘瑁呮暟閲忥紒"); + //} } Db.Updateable(boxInfoList).ExecuteCommand(); // 鏇存柊鎵樼洏缁戝畾琛� bind.Qty += factQty; } - if (bind.FullQty < bind.Qty && isDeposit == 0 && isTextTable == 0) - { - throw new Exception("鎵樼洏缁戝畾鏁伴噺宸茶秴鍑鸿鐗╂枡鍖呰鏁伴噺"); - } + //if (bind.FullQty < bind.Qty && isDeposit == 0 && isTextTable == 0) + //{ + // throw new Exception("鎵樼洏缁戝畾鏁伴噺宸茶秴鍑鸿鐗╂枡鍖呰鏁伴噺"); + //} - if (bind.FullQty == bind.Qty) + if (bind.FullQty <= bind.Qty) { bind.BitPalletMark = "0"; } - if (bind.Qty > pNum && isDeposit == 0 && isTextTable == 0) - { - throw new Exception($"缁戝畾澶辫触锛寋bind.PalletNo}鎵樼洏缁戝畾鏁伴噺澶т簬璇ョ墿鍝佹墭鐩樺寘瑁呮暟閲忥紒"); - } + //if (bind.Qty > pNum && isDeposit == 0 && isTextTable == 0) + //{ + // throw new Exception($"缁戝畾澶辫触锛寋bind.PalletNo}鎵樼洏缁戝畾鏁伴噺澶т簬璇ョ墿鍝佹墭鐩樺寘瑁呮暟閲忥紒"); + //} Db.Updateable(bind).Where(m => m.Id == bindId).ExecuteCommand(); // 鏇存敼鍏ュ簱鍗曟槑缁嗗凡缁勬暟閲� -- Gitblit v1.8.0