From e2c103c0db0a6768234edcee2ab43fd0f21fa462 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 2 Aug 2022 18:29:25 +0700 Subject: add rounding up --- vit_efaktur/wizard/pk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vit_efaktur') diff --git a/vit_efaktur/wizard/pk.py b/vit_efaktur/wizard/pk.py index 6e6f413..6e3e824 100644 --- a/vit_efaktur/wizard/pk.py +++ b/vit_efaktur/wizard/pk.py @@ -339,10 +339,10 @@ class efaktur_pk_wizard(models.TransientModel): # dpp_satuan = harga_setelah_discount-tax_amount jumlah_barang = line['quantity'] - harga_total = line['price_subtotal'] - dpp = line['price_subtotal'] - ppn = line['price_total']-line['price_subtotal'] - dpp_satuan = dpp/jumlah_barang + harga_total = round(line['price_subtotal']) + dpp = round(line['price_subtotal']) + ppn = round(line['price_total']-line['price_subtotal']) + dpp_satuan = round(dpp/jumlah_barang) data = { 'FK': 'OF', -- cgit v1.2.3