Ir al contenido
Menú
Se marcó esta pregunta
502 Vistas

Please who can help me.

This is my function to calculate some fields in the payslip but i dont know why its calculating them by steps and many times. Please help.


def compute_n_1_info(self,cr,uid,payslip,context=None):

nbr_mois = int(payslip.date_from[5:7]);

nbr_mois_anter = nbr_mois - 1;

print(nbr_mois_anter);

value = {'assiette_irpp_anuel_reel_n_1': payslip.assiette_irpp_anuel_reel * nbr_mois_anter,

'irpp_reel_n_1': payslip.irpp_reel * nbr_mois_anter,

'cumul_brut_imp_reel_n_1': payslip.brut_imp_reel * nbr_mois_anter,

'cumul_retenue_source_n_1': payslip.retenue_source * nbr_mois_anter,

}

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
oct 16
30996
1
sept 15
3719
1
jun 15
686
0
abr 15
520
2
abr 15
686