commit | c7280b497395fee929e136e100c93b16bba0c88b | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Mon Jul 29 11:48:28 2013 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Mon Jul 29 11:48:28 2013 +0530 |
tree | 29e5ccf7b4e723cbc15a5bc6760df015d951da33 | |
parent | b1b564c20f16abfdeef8d6ff1a88f5f528bd2875 [diff] |
[fix] [minor] fetch supplier default currency only if it exists
diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py index fc746c4..6628601 100644 --- a/utilities/transaction_base.py +++ b/utilities/transaction_base.py
@@ -129,7 +129,8 @@ 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