Commit c7b126f9 by Owo Sugiana

Bug fixed Kota Sukabumi

1 parent 32f73b84
......@@ -21,7 +21,7 @@ class Common:
db_session = get_db_session()
q = db_session.query(Invoice).filter_by(no_tagihan=invoice_id)
self.invoice = q.first()
if not self.is_available():
if self.invoice and not self.is_available():
self.invoice = None
def is_available(self):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!