Payroll documentation, some examples are needed

Asked by Nhomar - Vauxoo

One good friend ask me this:

Hi Nhomar,

How are you?

You know where can I get some examples, or help to configure it?

For example:

1. The employe receive 3 bonus calculated by a % of the base;
2. Then I have to take out 2 taxes (each one depending the base value, so if < 1000 = 1%, 1000<=x<2000 3%, 2000<=x<10000 10%, <10000 20%, etc);
NOTE: This part is trickiest because the treasury calculates like this:
  a) supose 50.000 = 1.000 + 1.000 + 8.000 + 10.000 + 30.000
  b) tax to pay = 1.000 x 1% + 1.000 x 3% + 8.000 x 10% + 30.000 x 20% (they apply the percentage by step)
3. There is also other extra tax (tax_C) that company have to pay (24% off base_abc);

1. base_abc = (base + base * bonus_a + base * bonus_b + base * bonus_c);
2. salary_to_pay= base_yzw - base_yzw * tax_A - base_yzw * tax_B;
3. total_salary_expense_to_company = salary + base_abc * tax_C;

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cristian Salamea (ovnicraft) said :
#1

Hello Nhomar,

1. The employe receive 3 bonus calculated by a % of the base;

Yes its posible.

2. Then I have to take out 2 taxes (each one depending the base value, so if < 1000 = 1%, 1000<=x<2000 3%, 2000<=x<10000 10%, <10000 20%, etc);

This is posible too but neeed check here what implies 'taxes'

NOTE: This part is trickiest because the treasury calculates like this:
  a) supose 50.000 = 1.000 + 1.000 + 8.000 + 10.000 + 30.000
  b) tax to pay = 1.000 x 1% + 1.000 x 3% + 8.000 x 10% + 30.000 x 20% (they apply the percentage by step)
3. There is also other extra tax (tax_C) that company have to pay (24% off base_abc);

1. base_abc = (base + base * bonus_a + base * bonus_b + base * bonus_c);
2. salary_to_pay= base_yzw - base_yzw * tax_A - base_yzw * tax_B;
3. total_salary_expense_to_company = salary + base_abc * tax_C;

In payroll module exists the header salary its solves the first cases and structure salary solves your 3th cases and each of one items.

The payroll module is really flexible allows create allowance and deductions in payroll and base each other.

I recommend you follow the trunk-payroll branch is under heavy development/refactor and improvement.

Regards,

Can you help with this problem?

Provide an answer of your own, or ask Nhomar - Vauxoo for more information if necessary.

To post a message you must log in.