[IMP] l10n_pe_hr_payroll_account: add 4th cat.

This commit is contained in:
Jared Kipe
2022-05-06 14:58:46 +00:00
parent 1bc2063a26
commit ad38f97d71
2 changed files with 6 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
# pay_ee='1234', # pay_ee='1234',
# pay_afp='1235', # pay_afp='1235',
# pay_onp='1236', # pay_onp='1236',
# pay_ir_4ta_cat='2222',
# pay_ir_5ta_cat='1238', # pay_ir_5ta_cat='1238',
# pay_essalud='1239', # pay_essalud='1239',
# exp_salary='1240', # exp_salary='1240',
@@ -36,6 +37,7 @@
# pay_ee='1234', # pay_ee='1234',
# pay_afp='1235', # pay_afp='1235',
# pay_onp='1236', # pay_onp='1236',
# pay_ir_4ta_cat='2222',
# pay_ir_5ta_cat='1238', # pay_ir_5ta_cat='1238',
# pay_essalud='1239', # pay_essalud='1239',
# exp_salary='1240', # exp_salary='1240',

View File

@@ -10,6 +10,7 @@ EXP_ESSALUD = '6271000'
PAY_EE = '4111000' PAY_EE = '4111000'
PAY_AFP = '4170000' PAY_AFP = '4170000'
PAY_ONP = '4032000' PAY_ONP = '4032000'
PAY_IR_4TA_CAT = '4017200'
PAY_IR_5TA_CAT = '4017300' PAY_IR_5TA_CAT = '4017300'
PAY_ESSALUD = '4031000' PAY_ESSALUD = '4031000'
@@ -29,6 +30,7 @@ class AccountChartTemplate(models.Model):
pay_ee=PAY_EE, pay_ee=PAY_EE,
pay_afp=PAY_AFP, pay_afp=PAY_AFP,
pay_onp=PAY_ONP, pay_onp=PAY_ONP,
pay_ir_4ta_cat=PAY_IR_4TA_CAT,
pay_ir_5ta_cat=PAY_IR_5TA_CAT, pay_ir_5ta_cat=PAY_IR_5TA_CAT,
pay_essalud=PAY_ESSALUD, pay_essalud=PAY_ESSALUD,
exp_salary=EXP_SALARY, exp_salary=EXP_SALARY,
@@ -40,6 +42,7 @@ class AccountChartTemplate(models.Model):
pay_ee, pay_ee,
pay_afp, pay_afp,
pay_onp, pay_onp,
pay_ir_4ta_cat,
pay_ir_5ta_cat, pay_ir_5ta_cat,
pay_essalud, pay_essalud,
exp_salary, exp_salary,
@@ -133,6 +136,7 @@ class AccountChartTemplate(models.Model):
set_rule_accounts('EE_%', accounts[pay_ee], accounts['none']) # initialize set_rule_accounts('EE_%', accounts[pay_ee], accounts['none']) # initialize
set_rule_accounts('EE_PE_AFP%', accounts[pay_afp], accounts['none']) set_rule_accounts('EE_PE_AFP%', accounts[pay_afp], accounts['none'])
set_rule_accounts('EE_PE_ONP%', accounts[pay_onp], accounts['none']) set_rule_accounts('EE_PE_ONP%', accounts[pay_onp], accounts['none'])
set_rule_accounts('EE_PE_IR_4TA_CAT%', accounts[pay_ir_4ta_cat], accounts['none'])
set_rule_accounts('EE_PE_IR_5TA_CAT%', accounts[pay_ir_5ta_cat], accounts['none']) set_rule_accounts('EE_PE_IR_5TA_CAT%', accounts[pay_ir_5ta_cat], accounts['none'])
# ER_* -> AP debit, SE credit # ER_* -> AP debit, SE credit
set_rule_accounts('ER_%', accounts[pay_ee], accounts[exp_salary]) # initialize set_rule_accounts('ER_%', accounts[pay_ee], accounts[exp_salary]) # initialize