mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
Merge pull request #43956 from frappe/mergify/bp/version-15-hotfix/pr-43835
Update fiscal_year.js (backport #43835)
This commit is contained in:
@@ -4,10 +4,7 @@
|
|||||||
frappe.ui.form.on("Fiscal Year", {
|
frappe.ui.form.on("Fiscal Year", {
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
if (frm.doc.__islocal) {
|
if (frm.doc.__islocal) {
|
||||||
frm.set_value(
|
frm.set_value("year_start_date", frappe.datetime.year_start());
|
||||||
"year_start_date",
|
|
||||||
frappe.datetime.add_days(frappe.defaults.get_default("year_end_date"), 1)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
year_start_date: function (frm) {
|
year_start_date: function (frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user