I am using orange hrm as admin, but i am not supervisor of any employee.
So if i want to assign leave, I can't, because function execution (addLeave) in LeaveController.php stops here:
$message = "BALANCE_ZERO";
1.why I don't get any error message that balance is zero. The page just refreshes. The $message field is not processed in CentralController:
case 'Leave_Admin_Apply': … $leaveController->addLeave(); (addLeave is returning message, but CentralController ignores it. Am i right ? )
2. I don't get why this balance zero is needed.
Balance is zero if LEAVEQUOTA_DB_FIELD_NO_OF_DAYS_ALLOTED + LEAVEQUOTA_DB_FIELD_LEAVE_BROUGHT_FORWARD == LEAVEQUOTA_DB_FIELD_LEAVE_TAKEN
Can you tell me why it is needed under if($authorizeObj->isESS() && !$authorizeObj->isSupervisor()) ?
As an admin i can set NO_OF_DAYS_ALLOTED to 10, when assign 12. And one day it will be 10=10 and i won't be able to assign more leave, but the day after it will be 10!=11 and i will be able to assign leave again.
Thanks for help.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.