diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-03-06 15:25:53 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-03-06 15:25:53 +0700 |
| commit | 2ec2cdc415e01cebb11f838f29b1099f5fb1b818 (patch) | |
| tree | a9596935557bd686bb0d4140c01415c3aa098200 | |
| parent | e85359ca64d29b3d44ea0fc293af1f0fad2364b6 (diff) | |
rounding other taxes
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 9aa0743b..45fdb8df 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -76,7 +76,8 @@ class AccountMove(models.Model): def compute_other_taxes(self): for rec in self: - rec.other_taxes = rec.other_subtotal * 0.12 + rec.other_taxes = round(rec.other_subtotal * 0.12, 2) + def compute_other_subtotal(self): for rec in self: |
