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