Commit 5913470e by Owo Sugiana

Bug fixed saat subjek_nama hampa

1 parent cad8086e
...@@ -100,7 +100,8 @@ class Inquiry: ...@@ -100,7 +100,8 @@ class Inquiry:
return self.invoice.status in (0, 1) return self.invoice.status in (0, 1)
def get_nama(self): def get_nama(self):
return self.invoice.subjek_nama.upper() return self.invoice.subjek_nama and \
self.invoice.subjek_nama.upper() or ''
def get_alamat_1(self): def get_alamat_1(self):
if self.invoice.objek_alamat_1: if self.invoice.objek_alamat_1:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!