summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-04-15 10:46:59 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-04-15 10:46:59 +0700
commit2d9e14836b965975ea913cda4773ac550a162b9c (patch)
tree2f0ad0056617a4eeebe91eae198c10a46e1cde95
parent300b68ec510194e5d73abcfc775c3cca945d3718 (diff)
bug apo
-rw-r--r--indoteknik_custom/models/automatic_purchase.py3
1 files changed, 1 insertions, 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