Fix variable name in get_tagihan_pokok to correctly reference thn_pajak_sppt

1 parent ab130941
......@@ -97,7 +97,7 @@ class Inquiry(BaseInquiry):
def get_tagihan_pokok(self): # Override
pengurang = self.invoice.faktor_pengurang_sppt or 0
# if pengurang > 0:
if pengurang > 0 and self.invoice.tghn_pajak_sppt not in TAHUN_LUNAS:
if pengurang > 0 and self.invoice.thn_pajak_sppt not in TAHUN_LUNAS:
return self.invoice.pbb_terhutang_sppt
return super().get_tagihan_pokok()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!