diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-08-02 18:29:25 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-08-02 18:29:25 +0700 |
| commit | e2c103c0db0a6768234edcee2ab43fd0f21fa462 (patch) | |
| tree | 671efead8de69a5964f30dfa5642baf151ec7283 /vit_efaktur | |
| parent | 15067eb9e2617dc17a9bfb654e901a9e731aede5 (diff) | |
add rounding up
Diffstat (limited to 'vit_efaktur')
| -rw-r--r-- | vit_efaktur/wizard/pk.py | 8 |
1 files changed, 4 insertions, 4 deletions
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', |
