Skip to content

Commit

Permalink
refactor: use year current year start date as default
Browse files Browse the repository at this point in the history
  • Loading branch information
hyaray authored and ruthra-kumar committed Nov 4, 2024
1 parent 8647c67 commit c2baddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/fiscal_year/fiscal_year.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ frappe.ui.form.on("Fiscal Year", {
if (frm.doc.__islocal) {
frm.set_value(
"year_start_date",
frappe.datetime.add_days(frappe.defaults.get_default("year_end_date"), 1)
frappe.datetime.year_start()
);
}
},
Expand Down

0 comments on commit c2baddf

Please sign in to comment.