summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-08 14:45:09 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-08 14:45:09 +0700
commit2f2247612b34e0ae6c26285a82f54942c25a3901 (patch)
treeacfaef20993a9caed4658e2c23215bb47fe1dca8
parent9318594b9f575ebd944056d84c48ce4e5507eece (diff)
add ppn to grand total logbook bill
-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