Commit 7b521ba0 by Owo Sugiana

Bug fixed penggunaan is_available() sebelum hitung()

1 parent 098068fc
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
\ No newline at end of file \ No newline at end of file
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
\ No newline at end of file \ No newline at end of file
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
...@@ -44,7 +44,9 @@ class Inquiry: ...@@ -44,7 +44,9 @@ class Inquiry:
DBSession = get_db_session() DBSession = get_db_session()
q = DBSession.query(self.invoice_model).filter_by(kode=invoice_id) q = DBSession.query(self.invoice_model).filter_by(kode=invoice_id)
self.invoice = q.first() self.invoice = q.first()
if self.invoice: if not self.invoice:
return
if self.is_available():
self.hitung() self.hitung()
def get_payment(self): def get_payment(self):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!