[fix] [minor] fetch supplier default currency only if it exists
This commit is contained in:
parent
b1b564c20f
commit
c7280b4973
@ -129,7 +129,8 @@ class TransactionBase(StatusUpdater):
|
||||
|
||||
supplier = webnotes.doc("Supplier", self.doc.supplier)
|
||||
out["supplier_name"] = supplier.supplier_name
|
||||
out["currency"] = supplier.default_currency
|
||||
if supplier.default_currency:
|
||||
out["currency"] = supplier.default_currency
|
||||
|
||||
return out
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user