diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-10 13:54:44 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-10 13:54:44 +0700 |
| commit | 0de84279ecf9331e3f3e8976b9a9b22970e65395 (patch) | |
| tree | 5703f53cf89bfbaeb5a99eddec2f1cfa6681d548 /indoteknik_api/controllers/product_controller.py | |
| parent | fd6af0fbd83042c8471c3c58ff459f52bed45938 (diff) | |
change tax field
Diffstat (limited to 'indoteknik_api/controllers/product_controller.py')
| -rw-r--r-- | indoteknik_api/controllers/product_controller.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/product_controller.py b/indoteknik_api/controllers/product_controller.py index a57cf0a5..6101952f 100644 --- a/indoteknik_api/controllers/product_controller.py +++ b/indoteknik_api/controllers/product_controller.py @@ -51,9 +51,9 @@ class ProductController(controller.Controller): discount_price = 0 price = product_template.web_price if price > 0: - if product_template.taxes_id: - if not product_template.taxes_id.price_include: - price += (price * product_template.taxes_id.amount / 100) + if product_template.web_tax_id: + if not product_template.web_tax_id.price_include: + price += (price * product_template.web_tax_id.amount / 100) else: price += (price * 11 / 100) |
