[Fix] Quoted Item Comparison

This commit is contained in:
Kanchan Chauhan 2016-12-08 17:29:04 +05:30
parent 7b91181fa0
commit 5c031a3512

View File

@ -39,7 +39,10 @@ def get_quote_list(item, qty_list):
#Add a row for each supplier
for root in set(suppliers):
supplier_currency = frappe.db.get_value("Supplier",root,"default_currency")
exg = get_exchange_rate(supplier_currency,company_currency)
if supplier_currency:
exg = get_exchange_rate(supplier_currency,company_currency)
else:
exg = 1
row = frappe._dict({
"supplier_name": root