Merge pull request #36249 from deepeshgarg007/default_dates

fix: Default year start and end dates in reports
This commit is contained in:
Deepesh Garg
2023-07-27 12:19:44 +05:30
committed by GitHub
31 changed files with 53 additions and 50 deletions

View File

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