Custom Payroll Fields

Custom Payroll Fields are simply javascript formulas that allows you to quickly generate calculations that are flexible for your company. We will soon be rolling out a formula builder so that you can more easily create custom calculations.

Meanwhile, if you'd like help with building these custom formulas please reach out to your Account Manager, email [email protected] or message us in our chatbox. Custom Payroll Fields can be assigned to the following:

  • Everyone

  • Department

  • Employee

Pakistan Taxes

Payroll Field
Description
Formula

Basic Salary

Fixed Salary amount

emp.amount

Basic Salary

Salary based on hours worked

empHours.hours * (emp.amount / (helpers.hrPerMonthPerSchedule[emp.work_schedules_id || emp.department.work_schedules_id].workingHours))

Basic Salary + Overtime

Salary based on hours worked and overtime

(empHours.hours + empHours.extraHours ) * (emp.amount / (helpers.hrPerMonthPerSchedule[emp.work_schedules_id || emp.department.work_schedules_id].workingHours))

Taxes

Taxes for Pakistan

(calc.TotalAllowance >= 0 && calc.TotalAllowance <= 50000) ? 0 : (calc.TotalAllowance >= 50001 && calc.TotalAllowance <= 100000) ? (calc.TotalAllowance * 0.025) : (calc.TotalAllowance >= 100001 && calc.TotalAllowance <= 200000) ? (calc.TotalAllowance * 0.125) + 1250 :(calc.TotalAllowance >= 200001 && calc.TotalAllowance <= 300000) ? (calc.TotalAllowance * 0.2) + 13750 : (calc.TotalAllowance >= 300001 && calc.TotalAllowance <= 500000) ? (calc.TotalAllowance * 0.25) + 33750 : (calc.TotalAllowance >= 500001 && calc.TotalAllowance <= 1000000) ? (calc.TotalAllowance * 0.325) + 83750 : (calc.TotalAllowance * 0.35) + 246250

Last updated

Was this helpful?