commit | 3759a41b8358302ff8d33857a0461cc2da3d06d8 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Wed Jul 19 13:17:12 2023 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Wed Jul 19 13:17:12 2023 +0530 |
tree | a41fe723e7de521ca6424d4d93b93357d8daa5fa | |
parent | 0218f11f477a5b0d43cf59d5cda2025bf68e20cf [diff] |
fix: Default fiscal year in accounting, buying and sellingcharts
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 497f8d2..cc03eca 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -401,6 +401,10 @@ }, get_fiscal_year: function(date) { + if(!date) { + date = frappe.datetime.get_today(); + } + let fiscal_year = ''; frappe.call({ method: "erpnext.accounts.utils.get_fiscal_year",