@arnelgp
@isladogs
As I mentioned that I am working on travel agent request and I am facing a new challenge,
It is New Service Request Auto assign : what dose it mean ? when the company receive a new service request , this request should go to a specific employee with a specific capabilities of handling for each employee for example some employees can handle only flight requests ,some employees can handle only hotel and transfer requests some employees can handle all services , and since there many employees and many requests so the travel agent would like to auto assign the requests received fairly to all employees based on below conditions on his turn : (more like auto assign tasks to next available employee that have the right conditions )
-Employee should be an operation Department staff based on department from Employees Table
-Capabilities of employee from Employees table Ex: can handle flight request , can handle Hotel Request , can handle Transfer request.
-Type of request based on service Type from Requests table
-Max allowed open requests to the employee per day from Employees table the employee cant have new request if he have reached the limit , the request goes to the next employee with the right conditions
-Sum of requests that marked as “open” in requests Table. The employee can take the request if sum of opened requests he have is less than or equal to the max allowed open requests .
So when a new request received the system auto check the above and detect who have the right to handle this request based on the above conditions
For example the agent receive a request from the client and this request include hotels, flight, transfer . so the logic should check who have th turn and can handle all these requests and assign the request for him , what if there is only one can handle all and rest of employees can handle part of the service ? if this is the first request for the employee that handle all so he will take it , if the next request will have all services in it , the request should be separated to next employees that dose not have taken requests yet or didn’t reach the daily limit
And assign it to him by putting the employee name and employee code on the request .
What I am facing is how to put a logic via vba to this.
Attached the tables and the basic form that needs the logic
@isladogs
As I mentioned that I am working on travel agent request and I am facing a new challenge,
It is New Service Request Auto assign : what dose it mean ? when the company receive a new service request , this request should go to a specific employee with a specific capabilities of handling for each employee for example some employees can handle only flight requests ,some employees can handle only hotel and transfer requests some employees can handle all services , and since there many employees and many requests so the travel agent would like to auto assign the requests received fairly to all employees based on below conditions on his turn : (more like auto assign tasks to next available employee that have the right conditions )
-Employee should be an operation Department staff based on department from Employees Table
-Capabilities of employee from Employees table Ex: can handle flight request , can handle Hotel Request , can handle Transfer request.
-Type of request based on service Type from Requests table
-Max allowed open requests to the employee per day from Employees table the employee cant have new request if he have reached the limit , the request goes to the next employee with the right conditions
-Sum of requests that marked as “open” in requests Table. The employee can take the request if sum of opened requests he have is less than or equal to the max allowed open requests .
So when a new request received the system auto check the above and detect who have the right to handle this request based on the above conditions
For example the agent receive a request from the client and this request include hotels, flight, transfer . so the logic should check who have th turn and can handle all these requests and assign the request for him , what if there is only one can handle all and rest of employees can handle part of the service ? if this is the first request for the employee that handle all so he will take it , if the next request will have all services in it , the request should be separated to next employees that dose not have taken requests yet or didn’t reach the daily limit
And assign it to him by putting the employee name and employee code on the request .
What I am facing is how to put a logic via vba to this.
Attached the tables and the basic form that needs the logic
Attachments
Last edited: