[Fix] Minor fix
This commit is contained in:
parent
0c76f21f81
commit
e4b5fcb6e8
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user