Check users in in invoices when modifying number of guests
This commit is contained in:
parent
4d8b63e0c4
commit
dbceafd606
@ -26,8 +26,13 @@ function set_days_month_year() {
|
||||
}
|
||||
|
||||
function guest_user_label(id) {
|
||||
if(document.getElementById('guest_user_'+id).value > 1)
|
||||
if(document.getElementById('guest_user_'+id).value > 1) {
|
||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guests';
|
||||
|
||||
if(!document.getElementById('users_in_'+id).checked) {
|
||||
document.getElementById('users_in_'+id).checked = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guest';
|
||||
}
|
||||
|
@ -26,8 +26,13 @@ function set_days_month_year() {
|
||||
}
|
||||
|
||||
function guest_user_label(id) {
|
||||
if(document.getElementById('guest_user_'+id).value > 1)
|
||||
if(document.getElementById('guest_user_'+id).value > 1) {
|
||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invités';
|
||||
|
||||
if(!document.getElementById('users_in_'+id).checked) {
|
||||
document.getElementById('users_in_'+id).checked = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invité';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user