From a3834eef460e5ac2bf5a086227c118ae1bc57b3e Mon Sep 17 00:00:00 2001 From: l0gesh29 Date: Fri, 11 Jul 2025 17:54:09 +0530 Subject: [PATCH] feat: add calculate_ageing_with option in summary reports --- .../accounts_payable_summary/accounts_payable_summary.js | 7 +++++++ .../accounts_receivable_summary.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js b/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js index e46af2657b5..ac9d5bfbd01 100644 --- a/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js +++ b/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js @@ -23,6 +23,13 @@ frappe.query_reports["Accounts Payable Summary"] = { options: "Posting Date\nDue Date", default: "Due Date", }, + { + fieldname: "calculate_ageing_with", + label: __("Calculate Ageing With"), + fieldtype: "Select", + options: "Report Date\nToday Date", + default: "Report Date", + }, { fieldname: "range", label: __("Ageing Range"), diff --git a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.js b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.js index 17ee5e0b323..ae0bddaa766 100644 --- a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.js +++ b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.js @@ -23,6 +23,13 @@ frappe.query_reports["Accounts Receivable Summary"] = { options: "Posting Date\nDue Date", default: "Due Date", }, + { + fieldname: "calculate_ageing_with", + label: __("Calculate Ageing With"), + fieldtype: "Select", + options: "Report Date\nToday Date", + default: "Report Date", + }, { fieldname: "range", label: __("Ageing Range"),