From 5b17ac80a6de614666585aa43c6896e241ed2c94 Mon Sep 17 00:00:00 2001 From: zhaosj <290758660@qq.com> Date: Tue, 9 Jan 2024 15:14:37 +0000 Subject: [PATCH] update zelin_wms/doc_events.py. Signed-off-by: zhaosj <290758660@qq.com> --- zelin_wms/doc_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zelin_wms/doc_events.py b/zelin_wms/doc_events.py index 0412573..24da8a6 100644 --- a/zelin_wms/doc_events.py +++ b/zelin_wms/doc_events.py @@ -101,7 +101,7 @@ def auto_assign_storage_bin(doc): r.item_code==item.item_code and r.warehouse == item.warehouse and (not item.batch_no or r.batch_no == item.batch_no)] for row in item_bin_qty_list or []: - if not row.qty: continue + if row.qty<=0: continue storage_bin_assigned = True if row.qty >= unallocated_qty: # 超出1%且数量5以内,允许超量出 -- Gitee