mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 04:58:29 +00:00
fix: ensure fiscal year is checked before validating date filters in financial statements
(cherry picked from commit 5a915cb45e)
This commit is contained in:
committed by
Mergify
parent
9f04fcc190
commit
fba78711cc
@@ -298,7 +298,7 @@ erpnext.financial_statements = {
|
||||
let fiscal_year = erpnext.utils.get_fiscal_year(frappe.datetime.get_today());
|
||||
var filters = report.get_values();
|
||||
|
||||
if (!filters.period_start_date || !filters.period_end_date) {
|
||||
if (fiscal_year && (!filters.period_start_date || !filters.period_end_date)) {
|
||||
frappe.model.with_doc("Fiscal Year", fiscal_year, function (r) {
|
||||
var fy = frappe.model.get_doc("Fiscal Year", fiscal_year);
|
||||
frappe.query_report.set_filter_value({
|
||||
|
||||
Reference in New Issue
Block a user