Revert "fix: Default year start and end dates in reports"

This commit is contained in:
Deepesh Garg
2023-07-27 19:13:11 +05:30
committed by GitHub
parent 3db6ac5ac9
commit cf50bb45ad
31 changed files with 50 additions and 53 deletions

View File

@@ -400,7 +400,7 @@ $.extend(erpnext.utils, {
});
},
get_fiscal_year: function(date, with_dates) {
get_fiscal_year: function(date) {
if(!date) {
date = frappe.datetime.get_today();
}
@@ -414,10 +414,7 @@ $.extend(erpnext.utils, {
async: false,
callback: function(r) {
if (r.message) {
if (with_dates)
fiscal_year = r.message;
else
fiscal_year = r.message[0];
fiscal_year = r.message[0];
}
}
});