[Fix] Minor fix

This commit is contained in:
Rohit Waghchaure 2016-04-01 14:09:14 +05:30
parent 0c76f21f81
commit e4b5fcb6e8

View File

@ -120,7 +120,7 @@ def make_supplier_quotation(source_name, for_supplier, target_doc=None):
def postprocess(source, target_doc):
target_doc.supplier = for_supplier
args = get_party_details(for_supplier, party_type="Supplier", ignore_permissions=True)
target_doc.currency = args.currency
target_doc.currency = args.currency or get_party_account_currency('Supplier', for_supplier, source.company)
target_doc.buying_price_list = args.buying_price_list or frappe.db.get_value('Buying Settings', None, 'buying_price_list')
set_missing_values(source, target_doc)