Merge pull request #36249 from deepeshgarg007/default_dates
fix: Default year start and end dates in reports
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user