This commit is contained in:
Joshua Rubingh 2020-05-19 17:06:37 +02:00
parent 66a2aab6b7
commit 12176aabf4

View File

@ -794,7 +794,7 @@
if ((obj.artsen * obj.max_time) - obj.used_time < 0) {
error = true;
message.append(jQuery('<div>').addClass('alert-danger').html('<strong>' + specialisme + ' </strong>: Te veel behandelingen voor het aantal arsten en werktijd. ' + moment.duration(obj.used_time - (obj.artsen * obj.max_time),'minutes').humanize() + ' teveel.'));
} else if (obj.max_time - obj.used_time == 0) {
} else if ((obj.artsen * obj.max_time) - obj.used_time == 0) {
message.append(jQuery('<div>').addClass('alert-success').html('<strong>' + specialisme + ' </strong>: Perfect! Alle tijd is ingedeeld.'));
} else {
message.append(jQuery('<div>').addClass('alert-warning').html('<strong>' + specialisme + ' </strong>: Uw heeft nog ' + moment.duration((obj.artsen * obj.max_time) - obj.used_time,'minutes').humanize() + ' tijd over voor meer afspraken.'));