diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-16 04:51:39 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-16 04:51:39 +0000 |
| commit | b0dd1bde531a90a867448c03ec08b72cc70f0053 (patch) | |
| tree | 0ec22360367159e8b928b030351d6a8b53f3ada4 /indoteknik_custom/models/purchase_order.py | |
| parent | 9f8664c33429e41c6133ba2b325662245ffbc92d (diff) | |
| parent | a73c0825a264fc002e7496b07f238f79efd93086 (diff) | |
Merged in refactor (pull request #99)
Refactor
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index d73f9037..9e851ef9 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -196,7 +196,7 @@ class PurchaseOrder(models.Model): for line in self.order_line: if not line.product_id.purchase_ok: raise UserError("Terdapat barang yang tidak bisa diproses") - if line.price_vendor != 0 and line.price_unit != line.price_vendor: + if line.price_unit != line.price_vendor: send_email = True break |
