summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/logbook_bill.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-08-14 13:31:36 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-08-14 13:31:36 +0700
commited089761d43b20ecc4190ca9d88a0bdb769d81f2 (patch)
tree6f5ed6967a4aa20e5773561f7a6b129d91b23311 /indoteknik_custom/models/logbook_bill.py
parent513d2b473f4fbf7245c35289e2a3215c5da556a6 (diff)
parentc091a99de4e3c3bb4f85a8b0c91d75735ebefbd4 (diff)
Merge branch 'production' into feature/calculate_selling_price
# Conflicts: # indoteknik_custom/views/website_user_cart.xml
Diffstat (limited to 'indoteknik_custom/models/logbook_bill.py')
-rw-r--r--indoteknik_custom/models/logbook_bill.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/logbook_bill.py b/indoteknik_custom/models/logbook_bill.py
index 578ad59b..bb956092 100644
--- a/indoteknik_custom/models/logbook_bill.py
+++ b/indoteknik_custom/models/logbook_bill.py
@@ -22,7 +22,9 @@ class LogbookBill(models.TransientModel):
('product_id', '=', line.product_id.id),
], order='id desc', limit=1)
total += line.quantity_done * po.price_unit
- return total
+ total_with_tax = total * 1.11
+ return total_with_tax
+
def create_logbook_bill(self):
logbook_line = self.logbook_bill_line