Set fiscal year start and end date based on country
This commit is contained in:
parent
801fa80b39
commit
6af7dd4e1b
@ -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]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user