From 070190d07bd4a461b43cd1fc39babe4a530e154d Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Sat, 2 Aug 2025 11:38:47 -0400 Subject: [PATCH] fix: provide missing `company` in report records that require reference to `Company:company:default_currency` (cherry picked from commit 7f3905185c7e3d0f5b5b5ceccbdc4c51a9248697) --- erpnext/accounts/report/non_billed_report.py | 1 + erpnext/accounts/report/payment_ledger/payment_ledger.py | 1 + 2 files changed, 2 insertions(+) diff --git a/erpnext/accounts/report/non_billed_report.py b/erpnext/accounts/report/non_billed_report.py index c0ca604cc6d..6a6f58c74bb 100644 --- a/erpnext/accounts/report/non_billed_report.py +++ b/erpnext/accounts/report/non_billed_report.py @@ -46,6 +46,7 @@ def get_ordered_to_be_billed_data(args, filters=None): child_doctype.item_name, child_doctype.description, project_field, + doctype.company, ) .where( (doctype.docstatus == 1) diff --git a/erpnext/accounts/report/payment_ledger/payment_ledger.py b/erpnext/accounts/report/payment_ledger/payment_ledger.py index d4f0f0a107d..03411cccd78 100644 --- a/erpnext/accounts/report/payment_ledger/payment_ledger.py +++ b/erpnext/accounts/report/payment_ledger/payment_ledger.py @@ -46,6 +46,7 @@ class PaymentLedger: against_voucher_no=ple.against_voucher_no, amount=ple.amount, currency=ple.account_currency, + company=ple.company, ) if self.filters.include_account_currency: