mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
[fix] [minor] setup wizard - calculate year end date on change of year start date
This commit is contained in:
@@ -102,6 +102,12 @@ wn.pages['setup-wizard'].onload = function(wrapper) {
|
||||
var abbr = $.map(parts, function(p) { return p ? p.substr(0,1) : null }).join("");
|
||||
slide.get_input("company_abbr").val(abbr.toUpperCase());
|
||||
}).val(wn.boot.control_panel.company_name || "").trigger("change");
|
||||
|
||||
slide.get_input("fy_start_date").on("change", function() {
|
||||
var year_end_date =
|
||||
wn.datetime.add_days(wn.datetime.add_months(slide.get_input("fy_start_date").val(), 12), -1);
|
||||
slide.get_input("fy_end_date").val(year_end_date);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user