Database Item vs.xlsx

download Database Item vs.xlsx

of 4

Transcript of Database Item vs.xlsx

  • 8/10/2019 Database Item vs.xlsx

    1/4

    Payroll Database item and User table Concept

    Person Type :- Local, Permanent, Trainee

    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 NameElement Allowance Calculation Basic Salary Element

    Housing Allowance Element

    Rows

    Sequence Exact Row Key10 Permanent Permanent20 Local Local

  • 8/10/2019 Database Item vs.xlsx

    2/4

    Table values ( Define row values)

    (N) Other Definitions > Table Values

    User table Name Table Column Exact Row ValueElement 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 ToTrainee_Basic_Salary Basic Salary for Trainee Number 5000 01-jan-1951Local_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 FunctionData Type NumberClass External FunctionDefinitions ABC.def (database Function Name in which we do cal

  • 8/10/2019 Database Item vs.xlsx

    3/4

    5) Define Fast Formula both Basic Salary and Housing Allowance and do calculation according to our requirement by passing p

    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 creat

    database

    Funciton Name:- Define Function

    Name Unpaid Leave CalculationData Type NumberClass External FunctionDefinitions ABC.def (database Function Name in which we do cal

  • 8/10/2019 Database Item vs.xlsx

    4/4

    Logic

    Prorationcan be captured by passing payroll period date between which assignment is changed.

    Suppose ABC employees takes 5 days leave during 01-jan-2014 to 31stJan 2014

    Salary upto 03-jan-2014 is 30000

    Salary after 03-jan-2014 is 50000

    So leave deduction ValueFor 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.

    (N) Total Compensation > Basics > Formula Result