- Make a test environment for testing and debugging.
- Debug the code.
- Look into the views/approval code and check the part on when the approver clicks the approval button.
- Check the AJAX request if it successfully forwards the data to the server.
- Check the Approval controller.
- Check the Leave model on why the head's employee ID didn't reflect.