Task: - Basic Salary 1) Define Basic Salary Element (Recurring) Housing allowance Element (Recurring) (N) Total Compensation > Element Description
2) Define Element Link for both Element and Assign to Payroll (N) Total Compensation > Link
3) Define User table and Their values for calculation according to our requirement
Table Structure (N) Other Definitions > Table Structure
User table Name Table Column Name Element Allowance Calculation Basic Salary Element Housing Allowance Element
Rows Sequence Exact Row Key 10 Permanent Permanent 20 Local Local
Table values ( Define row values) (N) Other Definitions > Table Values User table Name Table Column Exact Row Value Element Allowance Calculation Basic Salary Permanent 100% Local 25%
Housing Allowance Permanent 25%
4) Define Global Variable for (N) Total Compensation > Basics > Global Values
Name Description Type Value From To Trainee_Basic_Salary Basic Salary for Trainee Number 5000 01-jan-1951 Local_Housing_Allowance Housing Allowance for Local Number 500 01-jan-1951
There is no Housing Allowance for Trainee so it is handle in fast formula.
4) Define Formula function and Specify External Function into them.
Function Name :- Define Function
Name Element Calculation Function Data Type Number Class External Function Definitions ABC.def (database Function Name in which we do calculation)
5) Define Fast Formula both Basic Salary and Housing Allowance and do calculation according to our requirement by passing parameters into external functions.
(N) Total Compensation > Basic > Write Formulas
6) Define Fast formula result for both Basic Salary and Housing Allowance and Assign value to Element input value
(N) Total Compensation > Basics > Formula Results =========================================================================================================== Task 2:- Unpaid Leave
1) Define Unpaid leave element (Deduction) (N) Total Compensation > Element Description
2) Define Element Link and assign to Payroll (N) Total Compensation > Link
3) Define Formula Function and Specify External Function(in which we calculate salary to deduct for unpaid leave) that we created in database Funciton Name:- Define Function
Name Unpaid Leave Calculation Data Type Number Class External Function Definitions ABC.def (database Function Name in which we do calculation)
Logic
Proration can be captured by passing payroll period date between which assignment is changed. Suppose ABC employees takes 5 days leave during 01-jan-2014 to 31 st Jan 2014 Salary upto 03-jan-2014 is 30000 Salary after 03-jan-2014 is 50000 So leave deduction Value For 01 to 03 jan-2014 is = 30000/30 =1000*3 =3000 For 04-05 jan 2014 is = 40000/30 =1333.33*2 = 2666.66 ============ Total Leave Deduction value is = 5666.67
4) Define Fast Formula for unpaid leave element (N) Total Compensation > Basic > Write Formulas
Call Formula Function to by passing required parameters.
5) Define Formula result value in which you assign fast formula return value to element input value.