mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Set fiscal year start and end date based on country
This commit is contained in:
@@ -101,6 +101,11 @@ function load_erpnext_slides() {
|
|||||||
next_year = current_year;
|
next_year = current_year;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var year_start_date = current_year + "-" + fy[0];
|
||||||
|
if(year_start_date > get_today()) {
|
||||||
|
next_year = current_year
|
||||||
|
current_year -= 1;
|
||||||
|
}
|
||||||
slide.get_field("fy_start_date").set_input(current_year + "-" + fy[0]);
|
slide.get_field("fy_start_date").set_input(current_year + "-" + fy[0]);
|
||||||
slide.get_field("fy_end_date").set_input(next_year + "-" + fy[1]);
|
slide.get_field("fy_end_date").set_input(next_year + "-" + fy[1]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user