From 1b0dd96b40cf10c339102668e47175ba99a34d91 Mon Sep 17 00:00:00 2001 From: guanhuan Date: Fri, 23 May 2025 14:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=94=B3=E8=AF=B7=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jikimo_purchase_request/models/purchase_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jikimo_purchase_request/models/purchase_request.py b/jikimo_purchase_request/models/purchase_request.py index f50631bc..39144d5d 100644 --- a/jikimo_purchase_request/models/purchase_request.py +++ b/jikimo_purchase_request/models/purchase_request.py @@ -50,7 +50,7 @@ class PurchaseRequest(models.Model): discrepancies = [] for product_id, qty in product_qty_map.items(): if product_id in product_summary: - if product_summary[product_id] != qty: + if product_summary[product_id] < qty: discrepancies.append((product_id, qty, product_summary[product_id])) else: discrepancies.append((product_id, qty, 0))