Dear All,
I am doing calculation for employees for their leave and Air ticket balances, firstly I want you to have their basic records like entitlement, balance & utilization etc.
The basic things that can be count in this calculation is below.
Fields Name in VacationSchedule_Query
Emp_ID Text Field Employees_table
HireDate Date Field Employees_table
EmployeeName Text Field Employees_table
Accrued_Tkt Number Field Airticket_Query
Airticket_Utilized Number Field Airticket_Query
Airticket_Balance Number Field Airticket_Query
Accrued_Days Number Field Leave_Query
Leave_Utilized Number Field Leave_Query
Leave_Bal Number Field Leave_Query
CalculationDate Date Field Contracts_table
EmpStatus Text Field Contracts_table
I need results & Functions for below fields in VacationSchedule_query
LeaveEntitleBy:
AirticketEntitleBy:
Now I need some condition to produce the query criteria and I need result based on following conditions.
I need if [EmpStatus] is Terminated or Resigned than no need to calculate anything
I need if [EmpStatus] is Active than formula have to check the Maturity Date of his Yearly entitlement value which is leave and Air ticket as mentioned above, for example if [Emp_ID] AA is having 12.5 in his [Leave_Bal] and 0.82 in his [Airticket_Balance] than I need what date his Leave value reach to 23 and Airticket value reach to 1 in Above result fields I need that future date, same should be treated for negative numbers if any employee already in minus then need date to reach him in positive for 23 and 1 this code should work for this also.
Now one more thing need to take care that [CalculationDate] is not today’s date and balances coming from different dates as its stored in Contract_table and every employee has his different contract entitlements and its divided in two parts as followed.
[LeaveTill2011] - for Some employees contract are different till 2011 mean it will work for those who hired before 2011
[LeaveFrom2012] - for some employees this portion is reconditioned who join after 2011 as well as who continue from above.
[TktTill 2011] and [TktFrm2012] field are the same way of above leave to calculated.
I know its look like complicated I do try to mention everything, if incase I forget to tell anything then please let me know.
Many thanks in advance for your kind help.
MA
I am doing calculation for employees for their leave and Air ticket balances, firstly I want you to have their basic records like entitlement, balance & utilization etc.
The basic things that can be count in this calculation is below.
Fields Name in VacationSchedule_Query
Emp_ID Text Field Employees_table
HireDate Date Field Employees_table
EmployeeName Text Field Employees_table
Accrued_Tkt Number Field Airticket_Query
Airticket_Utilized Number Field Airticket_Query
Airticket_Balance Number Field Airticket_Query
Accrued_Days Number Field Leave_Query
Leave_Utilized Number Field Leave_Query
Leave_Bal Number Field Leave_Query
CalculationDate Date Field Contracts_table
EmpStatus Text Field Contracts_table
I need results & Functions for below fields in VacationSchedule_query
LeaveEntitleBy:
AirticketEntitleBy:
Now I need some condition to produce the query criteria and I need result based on following conditions.
I need if [EmpStatus] is Terminated or Resigned than no need to calculate anything
I need if [EmpStatus] is Active than formula have to check the Maturity Date of his Yearly entitlement value which is leave and Air ticket as mentioned above, for example if [Emp_ID] AA is having 12.5 in his [Leave_Bal] and 0.82 in his [Airticket_Balance] than I need what date his Leave value reach to 23 and Airticket value reach to 1 in Above result fields I need that future date, same should be treated for negative numbers if any employee already in minus then need date to reach him in positive for 23 and 1 this code should work for this also.
Now one more thing need to take care that [CalculationDate] is not today’s date and balances coming from different dates as its stored in Contract_table and every employee has his different contract entitlements and its divided in two parts as followed.
[LeaveTill2011] - for Some employees contract are different till 2011 mean it will work for those who hired before 2011
[LeaveFrom2012] - for some employees this portion is reconditioned who join after 2011 as well as who continue from above.
[TktTill 2011] and [TktFrm2012] field are the same way of above leave to calculated.
I know its look like complicated I do try to mention everything, if incase I forget to tell anything then please let me know.
Many thanks in advance for your kind help.
MA