mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
@@ -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