summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-05 11:56:05 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-05 11:56:05 +0700
commit5bbde879ebc2399d47803a5e7264f270f19abc7e (patch)
tree8474db6d7cdc8c92513ed7d2ec8ffbf011b61733
parentfad95560c58fc2a4fef7d5c530c2238aff87ba56 (diff)
Update pk.py
-rwxr-xr-xvit_efaktur/wizard/pk.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/vit_efaktur/wizard/pk.py b/vit_efaktur/wizard/pk.py
index 06cfb3e..ff70af1 100755
--- a/vit_efaktur/wizard/pk.py
+++ b/vit_efaktur/wizard/pk.py
@@ -239,15 +239,12 @@ class efaktur_pk_wizard(models.TransientModel):
for line in inv['invoice_line_ids']:
if not line['product_id']:
continue
- sum_dpp_line += round(line['price_subtotal'])
+ sum_dpp_line += round(line['price_subtotal'])#TODO stephan
sum_ppn_line += round(line['price_total'] - line['price_subtotal'])
print ("Invoice No ", invno)
- print ("Tax ", inv['amount_tax'])
- # print ("DPP ", inv['amount_untaxed'])
- print("DPP ", sum_dpp_line)
- print ("Tax Round ", round(inv['amount_tax']))
- print ("DPP Round ", round(inv['amount_untaxed']))
+ print("SUM DPP ", sum_dpp_line)
+ print("SUM PPN ", sum_ppn_line)
# fix is_cancel and invoice number column @stephan 2022-07-29, 29/07/2022
@@ -289,8 +286,8 @@ class efaktur_pk_wizard(models.TransientModel):
'NPWP': npwp,
'NAMA': partner_id.nama_wajib_pajak or '',
'ALAMAT_LENGKAP': partner_id.alamat_lengkap_text or '',
- 'JUMLAH_DPP': round(inv['amount_untaxed']) or 0,
- 'JUMLAH_PPN': round(inv['amount_tax']) or 0,
+ 'JUMLAH_DPP': sum_dpp_line or 0,
+ 'JUMLAH_PPN': sum_ppn_line or 0,
'JUMLAH_PPNBM': 0,
'ID_KETERANGAN_TAMBAHAN': '',
'FG_UANG_MUKA': 0,