Commit b6663386 by Owo Sugiana

Bug fixed saat Invoice ID tidak ditemukan

1 parent 91c8d5a1
...@@ -76,6 +76,8 @@ class Common: ...@@ -76,6 +76,8 @@ class Common:
class Inquiry(Common): class Inquiry(Common):
def __init__(self, invoice_id, persen_denda=2, tgl_bayar=None): def __init__(self, invoice_id, persen_denda=2, tgl_bayar=None):
Common.__init__(self, invoice_id) Common.__init__(self, invoice_id)
if not self.invoice:
return
self.persen_denda = persen_denda self.persen_denda = persen_denda
if tgl_bayar: if tgl_bayar:
self.tgl_bayar = tgl_bayar self.tgl_bayar = tgl_bayar
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!