From c7280b497395fee929e136e100c93b16bba0c88b Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 29 Jul 2013 11:48:28 +0530 Subject: [PATCH] [fix] [minor] fetch supplier default currency only if it exists --- utilities/transaction_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py index fc746c4ef5..6628601c25 100644 --- a/utilities/transaction_base.py +++ b/utilities/transaction_base.py @@ -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