


National Insurance contributions: £481.07 National Insurance contributions: £462.73 National Insurance contributions: £446.07 *Then* the monthly salary slip should contain the below: *When* I generate a monthly salary slip for the employee *Given* I have an employee John J Doe with an annual gross salary of £5,000.00 Iteration 1: for an annual salary of £5,000.00 In the first iteration, SalarySlip only contains the Employee ID, Employee Name and Monthly Gross Salary. This means that for each iteration you will need to add fields to the SalarySlip class. In a given iteration, all the salary slips contain the same number fields for each employee (if a tax or contribution does not apply for a given employee, just put £0.00). Some iterations also introduce new fields to the salary slip. IterationsĮach iteration adds more rules to the calculation. You can, however, add private methods and fields to the SalarySlipGenerator class, change the constructor, and add extra classes. The entry point should be the following interface, which you can not change:.

Salary slip should contain the Employee ID, Employee Name, Gross Salary, National Insurance contributions, Tax-free allowance, Taxable income and Tax payable for the month.Salary slip generator should pass an employee with its Employee Id, Employee Name and Annual Gross Salary.Salary slips are generated each month for every employee. Problem description: Salary slip generator for UK companies.Ī typical salary slip contains employee details like employee id, employee name and their monthly salary details like their gross salary, national insurance contributions, tax-free allowance, taxable income and tax payable. I did this kata with the objective of learning how to set up a typescript projectįrom 0, I used yarn, nodemon, ts-jest and babel.
