mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
Merge pull request #47747 from frappe/mergify/bp/version-15-hotfix/pr-47654
fix: show general ledger in doc currency in Process Statement Of Accounts (backport #47654)
This commit is contained in:
@@ -129,8 +129,8 @@ def get_statement_dict(doc, get_statement_dict=False):
|
|||||||
|
|
||||||
tax_id = frappe.get_doc("Customer", entry.customer).tax_id
|
tax_id = frappe.get_doc("Customer", entry.customer).tax_id
|
||||||
presentation_currency = (
|
presentation_currency = (
|
||||||
get_party_account_currency("Customer", entry.customer, doc.company)
|
doc.currency
|
||||||
or doc.currency
|
or get_party_account_currency("Customer", entry.customer, doc.company)
|
||||||
or get_company_currency(doc.company)
|
or get_company_currency(doc.company)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ def create_process_soa(**args):
|
|||||||
company=args.company or "_Test Company",
|
company=args.company or "_Test Company",
|
||||||
customers=args.customers or [{"customer": "_Test Customer"}],
|
customers=args.customers or [{"customer": "_Test Customer"}],
|
||||||
enable_auto_email=1 if args.enable_auto_email else 0,
|
enable_auto_email=1 if args.enable_auto_email else 0,
|
||||||
|
currency=args.currency or "",
|
||||||
frequency=args.frequency or "Weekly",
|
frequency=args.frequency or "Weekly",
|
||||||
report=args.report or "General Ledger",
|
report=args.report or "General Ledger",
|
||||||
from_date=args.from_date or getdate(today()),
|
from_date=args.from_date or getdate(today()),
|
||||||
|
|||||||
Reference in New Issue
Block a user