mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: get base grand total while pulling reference details in PE
This commit is contained in:
@@ -1735,7 +1735,7 @@ def get_reference_details(reference_doctype, reference_name, party_account_curre
|
|||||||
if not total_amount:
|
if not total_amount:
|
||||||
if party_account_currency == company_currency:
|
if party_account_currency == company_currency:
|
||||||
# for handling cases that don't have multi-currency (base field)
|
# for handling cases that don't have multi-currency (base field)
|
||||||
total_amount = ref_doc.get("grand_total") or ref_doc.get("base_grand_total")
|
total_amount = ref_doc.get("base_grand_total") or ref_doc.get("grand_total")
|
||||||
exchange_rate = 1
|
exchange_rate = 1
|
||||||
else:
|
else:
|
||||||
total_amount = ref_doc.get("grand_total")
|
total_amount = ref_doc.get("grand_total")
|
||||||
|
|||||||
Reference in New Issue
Block a user