Sep 15 - Reverse the check-in pages, set type of work Regular as default
This commit is contained in:
@@ -327,25 +327,10 @@ function submitCheckin() {
|
||||
const workTypeField = document.getElementById("work_type");
|
||||
const workType = workTypeField ? workTypeField.value.trim() : "";
|
||||
|
||||
// Type of Work has no default - the employee must choose one
|
||||
if (!workType) {
|
||||
if (workTypeField) {
|
||||
workTypeField.classList.add("work-type-missing");
|
||||
workTypeField.focus();
|
||||
}
|
||||
showCustomStatusMessage(
|
||||
"Please select the Type of Work / Por favor seleccione el Tipo de Trabajo",
|
||||
"error"
|
||||
);
|
||||
isSubmitting = false;
|
||||
updateSubmitButton(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Prepare form data
|
||||
const formData = new FormData();
|
||||
formData.append("employee_id", employeeId);
|
||||
// R = Regular (ID stored unchanged); PW / SP / C are appended to the ID server-side
|
||||
// Empty string = Regular; PW / SP / C are appended to the ID server-side
|
||||
formData.append("work_type", workType);
|
||||
formData.append(
|
||||
"latitude",
|
||||
|
||||
Reference in New Issue
Block a user