mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 20:18:27 +00:00
[fix] [minor] fetch supplier default currency only if it exists
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user