fix: Default fiscal year in accounting, buying and sellingcharts

(cherry picked from commit 3759a41b83)
This commit is contained in:
Deepesh Garg
2023-07-19 13:17:12 +05:30
committed by Mergify
parent 61456ec45d
commit 8ca3d6b7f3
7 changed files with 24 additions and 14 deletions

View File

@@ -352,6 +352,10 @@ $.extend(erpnext.utils, {
},
get_fiscal_year: function(date) {
if(!date) {
date = frappe.datetime.get_today();
}
let fiscal_year = '';
frappe.call({
method: "erpnext.accounts.utils.get_fiscal_year",