This will depend on which platform version of the CPTL library (Windows .NET DLL or Java) you are using and the programming language your payroll application is written in.
For Windows .NET languages such as Visual C++ and Visual C#, you will first add the CPTL.dll file as a reference to your project, and then you will be able to make direct calls to the public methods available in the CPTL class.
For the Java library, you will add the CPTL.jar file as an external library to your project, and then you will be able to make direct calls to the public methods available in the CPTL class.
The list of available class methods includes:
The calcDeductions method is the method used to calculate required CRA payroll withholding deductions for CPP, EI and Income Taxes.
If the vacation pay being paid covers only one (1) pay period for which the vacation time-off is being taken:
If the vacation pay being paid covers more than one (1) pay period for which the vacation time-off is being taken:
If the vacation pay is being paid as one lump-sum amount in lieu of vacation time not taken: