Skip to content

Instantly share code, notes, and snippets.

@Mardiniii
Last active February 15, 2017 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mardiniii/9ffddb8574c376f33af1a924579445d3 to your computer and use it in GitHub Desktop.
Save Mardiniii/9ffddb8574c376f33af1a924579445d3 to your computer and use it in GitHub Desktop.
Verifying the integration with Alegra when the users sends a termination payment.

I ran a test with a real termination. After terminate his contract, the employee has the information below:

Quincename

Only termination data: image

Only payroll data: image

Payroll and Termination data: image

Alegra

Payments related to this employee: 2017-02-15_1548

Salary: image

Social security and parafiscals: image

Social benefits: image

Other income: image

Termination value: image

If we make the operation between:

salary + termination_value + other_income - employee_retentions_on_payroll

# employee_retentios_on_payroll =  $107.334 (Look the payroll payslip)

We'll get the $2.000.000 received by the employee on the payslip which includes termination and payroll values.

After this review I can conclude that everything around this integration is working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment