From 2d9e14836b965975ea913cda4773ac550a162b9c Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 15 Apr 2024 10:46:59 +0700 Subject: bug apo --- indoteknik_custom/models/automatic_purchase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index fc8de27d..5d7e460b 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -176,8 +176,7 @@ class AutomaticPurchase(models.Model): def create_po_by_vendor(self, vendor_id): current_time = datetime.now() - if self.apo_type == 'regular': - self.check_qty_po() + self.check_qty_po() PRODUCT_PER_PO = 20 -- cgit v1.2.3