From 2f2247612b34e0ae6c26285a82f54942c25a3901 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 8 Aug 2024 14:45:09 +0700 Subject: add ppn to grand total logbook bill --- indoteknik_custom/models/logbook_bill.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3