fix: Default fiscal year in accounting, buying and sellingcharts

This commit is contained in:
Deepesh Garg
2023-07-19 13:17:12 +05:30
parent 0218f11f47
commit 3759a41b83
7 changed files with 24 additions and 14 deletions

View File

@@ -401,6 +401,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",