-
Notifications
You must be signed in to change notification settings - Fork 1
/
l10n_tn_paye_data.xml
1605 lines (1385 loc) · 76 KB
/
l10n_tn_paye_data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Holidays Category -->
<record model="hr.holidays.status" id="holiday_status_heures_sup">
<field name="name">Heures Supplementaires</field>
<field name="limit">True</field>
<field name="color_name">lightblue</field>
</record>
<!-- HR SALARY RULE CATEGORIES-->
<record id="TOTAL" model="hr.salary.rule.category">
<field name="name">Cout total pour l'entreprise</field>
<field name="code">TOTAL</field>
<field name="parent_id" eval="False"/>
</record>
<record id="hr_payroll.NET" model="hr.salary.rule.category">
<field name="name">Salaire Net</field>
<field name="code">NET</field>
<field name="parent_id" eval="False"/>
</record>
<record id="hr_payroll.GROSS" model="hr.salary.rule.category">
<field name="name">Salaire Brut</field>
<field name="code">BRUT</field>
<field name="parent_id" eval="False"/>
</record>
<record id="hr_payroll.BASIC" model="hr.salary.rule.category">
<field name="name">Salaire de base</field>
<field name="code">BASE</field>
<field name="parent_id" eval="False"/>
</record>
<record id="hr_payroll.ALW" model="hr.salary.rule.category">
<field name="name">Indemnite</field>
<field name="code">INDM</field>
<field name="parent_id" eval="False"/>
</record>
<record id="C_IMP" model="hr.salary.rule.category">
<field name="name">Cumul Imposable</field>
<field name="code">C_IMP</field>
<field name="parent_id" eval="False"/>
</record>
<record id="C_IMPAN" model="hr.salary.rule.category">
<field name="name">Cumul Imposable Annuel</field>
<field name="code">C_IMPAN</field>
<field name="parent_id" eval="False"/>
</record>
<record id="C_IMPDED" model="hr.salary.rule.category">
<field name="name">Cumul Imposable Aprés Déduction</field>
<field name="code">C_IMPDED</field>
<field name="parent_id" eval="False"/>
</record>
<record id="RETENUES" model="hr.salary.rule.category">
<field name="name">Total Retenues</field>
<field name="code">RETENUES</field>
<field name="parent_id" eval="False"/>
</record>
<record id="SALC" model="hr.salary.rule.category">
<field name="name">Total Charges Salariales</field>
<field name="code">SALC</field>
<field name="parent_id" ref="RETENUES"/>
</record>
<record id="hr_payroll.DED" model="hr.salary.rule.category">
<field name="name">Deduction</field>
<field name="code">DED</field>
<field name="parent_id" eval="False"/>
</record>
<record id="hr_payroll.DEDIRPP" model="hr.salary.rule.category">
<field name="name">Déduction d'impôt</field>
<field name="code">DEDIRPP</field>
<field name="parent_id" eval="False"/>
<!--<field name="parent_id" ref="hr_payroll.DED"/>-->
<!--<field name="category_id" ref="hr_payroll.DED"/>-->
</record>
<record id="hr_payroll.TRANCHEIMPO" model="hr.salary.rule.category">
<field name="name">Tranche d'impôt</field>
<field name="code">TRANCHEIMPO</field>
<field name="parent_id" eval="False"/>
</record>
<record id="IRPP" model="hr.salary.rule.category">
<field name="name">IRPP</field>
<field name="code">IRPP</field>
<field name="parent_id" ref="RETENUES"/>
</record>
<record id="DEDIRPPS" model="hr.salary.rule.category">
<field name="name">Total Déduction d'impôt</field>
<field name="code">DEDIRPPS</field>
<field name="parent_id" ref="hr_payroll.DED"/>
<!--<field name="parent_id" eval="False"/>-->
</record>
<record id="hr_payroll.COMP" model="hr.salary.rule.category">
<field name="name">Cotisations Patronales</field>
<field name="code">COMP</field>
<field name="parent_id" eval="False"/>
</record>
<record id="PREV" model="hr.salary.rule.category">
<field name="name">Cotisations Prevoyance Patronales</field>
<field name="code">PREV</field>
<field name="parent_id" ref="hr_payroll.COMP"/>
</record>
<record id="SECU" model="hr.salary.rule.category">
<field name="name">Plafond de Securite Sociale</field>
<field name="code">SECU</field>
<field name="parent_id" eval="False"/>
</record>
<record id="other_totals" model="hr.salary.rule.category">
<field name="name">Autres totaux</field>
<field name="code">O_TOTALS</field>
<field name="parent_id" eval="False"/>
</record>
<!-- Contribution Register -->
<record id="hr_CNSS_register" model="hr.contribution.register">
<field name="name">La Caisse Nationale de Sécurité Sociale</field>
</record>
<record id="hr_retraite_register" model="hr.contribution.register">
<field name="name">Organisme de retraite complementaire</field>
</record>
<record id="hr_cci_register" model="hr.contribution.register">
<field name="name">Chambre du commerce et de l'industrie</field>
</record>
<record id="hr_prevoyance_register" model="hr.contribution.register">
<field name="name">Organisme de prevoyance</field>
</record>
<!-- HR SALARY RULES-->
<record id="hr_payroll.hr_rule_basic" model="hr.salary.rule">
<field name="name">Salaire de base</field>
<field name="code">BASE</field>
<field name="sequence">1</field>
<field name="note">La règle du salaire de base </field>
</record>
<record id="hr_rule_basic_hor" model="hr.salary.rule">
<field name="name">Salaire de base horaire</field>
<field name="code">BASE HR</field>
<field name="sequence">99999915</field>
<field name="category_id" ref="hr_payroll.BASIC"/>
<field name="condition_select">python</field>
<field name="condition_python">result = worked_days.WORK100 and worked_days.WORK100.number_of_hours or False </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage_base">contract.wage</field>
<field name="quantity">worked_days.WORK100.number_of_hours</field>
<field name="amount_percentage">100</field>
<field name="note">La règle du salaire de base horaire: le calcul de cette règle s’effectue sur cette valeur modifiable dans le bulletin de paie (en quantité), et sur 100% de la valeur défini dans le champ “Salaire” du contrat associé à ce bulletin de paie. </field>
</record>
<record id="hr_payroll.hr_rule_basic_deux_regleenfant1" model="hr.salary.rule">
<field name="name">Heures supplémenataires +25%</field>
<field name="parent_rule_id" ref="hr_rule_basic_hor"/>
<field name="code">HS25</field>
<field name="sequence">99999916</field>
<field name="category_id" ref="hr_payroll.BASIC"/>
<field name="condition_select">python</field>
<field name="condition_python">result = inputs.HS25 and inputs.HS25.amount or False </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage_base">contract.wage</field>
<field name="quantity">inputs.HS25.amount</field>
<field name="amount_percentage">125</field>
<field name="note"> Pour le calcul on se base sur le “Salaire” horaire du contrat, sur la valeur qu'on a rempli dans le salaire, et 125%.</field>
</record>
<record id="hr_payroll.hr_rule_basic_deux_regleenfant2" model="hr.salary.rule">
<field name="name">Heures supplémenataires +50%</field>
<field name="parent_rule_id" ref="hr_rule_basic_hor"/>
<field name="code">HS50</field>
<field name="sequence">99999917</field>
<field name="category_id" ref="hr_payroll.BASIC"/>
<field name="condition_select">python</field>
<field name="condition_python">result = inputs.HS50 and inputs.HS50.amount or False </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage_base">contract.wage</field>
<field name="quantity">inputs.HS50.amount</field>
<field name="amount_percentage">150</field>
<field name="note">Pour le calcul on se base sur le “Salaire” horaire du contrat , sur la valeur qu'on a rempli dans le salaire, et 150%. </field>
</record>
<record id="hr_payroll_rules_CNSS1" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">CNSS</field>
<field name="code">CNSS</field>
<field name="sequence">2156</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">9.18</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="note">C'est la valeur de CNSS de chaque salarié , qui s'appuit sur la valeur du salaire "Brut" calculé. </field>
</record>
<record id="hr_payroll_rules_CNSS_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_CNSS1"/>
<field name="name">CNSS Patronale</field>
<field name="code">CNSSP</field>
<field name="sequence">2157</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">16.57</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="appears_on_payslip" eval="False"/>
<field name="note">C'est la valeur de CNSS patronale qui se base sur la valeur de salaire "Brut". Elle doit être réglée chaque trimestre .Cette valeur appartient à la rubrique "Cotisations Patronales"</field>
</record>
<record id="hr_payroll_rules_CNSS_accident" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_CNSS1"/>
<field name="name">Accident de travail</field>
<field name="code">ACCIDENT</field>
<field name="sequence">2158</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.5</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="appears_on_payslip" eval="False"/>
<field name="note">C'est la valeur d'accident de travail qui se base sur la valeur de salaire "Brut". Elle doit être réglée chaque trimestre .Cette valeur appartient à la rubrique "Cotisations Patronales" </field>
</record>
<record id="hr_payroll.hr_rule_taxable" model="hr.salary.rule">
<field name="name">Salaire Brut</field>
<field name="code">BRUT</field>
<field name="sequence">1000</field>
<field name="category_id" ref="hr_payroll.GROSS"/>
<field name="amount_python_compute">result = categories.BASE + categories.INDM - categories.DED</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">la valeur du salaire Brut se base sur la somme du salaire de base et les indemnités tout en faisant la soustraction des déductions.</field>
</record>
<record id="hr_rule_secu" model="hr.salary.rule">
<field name="name">Plafond Securite Sociale</field>
<field name="code">SECU</field>
<field name="sequence">1010</field>
<field name="category_id" ref="SECU"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = contract.employee_id.company_id.plafond_secu</field>
</record>
<!--<record id="hr_rule_tranche_a" model="hr.salary.rule">
<field name="name">Plafond Tranche A</field>
<field name="code">TA</field>
<field name="sequence">1011</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = SECU</field>
</record>
<record id="hr_rule_tranche_b" model="hr.salary.rule">
<field name="name">Plafond Tranche B</field>
<field name="code">TB</field>
<field name="sequence">1012</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = SECU * 4</field>
</record>
<record id="hr_rule_tranche_c" model="hr.salary.rule">
<field name="name">Plafond Tranche C</field>
<field name="code">TC</field>
<field name="sequence">1013</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = SECU * 8</field>
</record>
<record id="hr_rule_tranche_1" model="hr.salary.rule">
<field name="name">Plafond Tranche 1</field>
<field name="code">T1</field>
<field name="sequence">1014</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = SECU</field>
</record>
<record id="hr_rule_tranche_2" model="hr.salary.rule">
<field name="name">Plafond Tranche 2</field>
<field name="code">T2</field>
<field name="sequence">1015</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = SECU * 3</field>
</record> -->
<record id="hr_payroll_rules_MARIE" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">MARIE</field>
<field name="code">MARIE</field>
<field name="sequence">20446</field>
<field name="condition_select">python</field>
<field name="condition_python">result = employee.marital=='married'</field>
<field name="amount_select">fix</field>
<field name="amount_fix">150</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">Lorsque le salarié se trouve marié, une déduction ( d'impôt) de 150 TND s'effectue. </field>
</record>
<record id="hr_payroll_rules_ENF1" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">ENF1</field>
<field name="code">F1</field>
<field name="sequence">20447</field>
<field name="condition_select">python</field>
<field name="condition_python">result = employee.children and employee.children >= 1</field>
<field name="amount_select">fix</field>
<field name="amount_fix">90</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">Si le salarié possède un enfant en charge (premier enfant) alors il subit une déduction d'impôt de 90 TND. </field>
</record>
<record id="hr_payroll_rules_ENF2" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">ENF2</field>
<field name="code">F2</field>
<field name="sequence">20448</field>
<field name="condition_select">python</field>
<field name="condition_python">result = employee.children and employee.children >= 2</field>
<field name="amount_select">fix</field>
<field name="amount_fix">75</field>
<!--<field name="amount_python_compute">result = 90 + 75</field>-->
<field name="appears_on_payslip" eval="False"/>
<field name="note">Si le salarié possède deux enfants en charge (deuxième enfant) alors il subit une déduction d'impôt de 75 TND . </field>
</record>
<record id="hr_payroll_rules_ENF3" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">ENF3</field>
<field name="code">F3</field>
<field name="sequence">20449</field>
<field name="condition_select">python</field>
<field name="condition_python">result = employee.children and employee.children >= 3</field>
<field name="amount_select">fix</field>
<field name="amount_fix">60</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">Si le salarié possède trois enfants en charge (troisième enfant) alors il subit une déduction d'impôt de 60 TND . </field>
</record>
<record id="hr_payroll_rules_ENF4" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">ENF4</field>
<field name="code">F4</field>
<field name="sequence">20455</field>
<field name="condition_select">python</field>
<field name="condition_python">result = employee.children and employee.children >= 4</field>
<field name="amount_select">fix</field>
<field name="amount_fix">45</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">Si le salarié possède quatre enfants en charge (quatrième enfant) alors il subit une déduction d'impôt de 45 TND . </field>
</record>
<record id="hr_rule_total_deductionimpot" model="hr.salary.rule">
<field name="name">Total Déductions d'impôt </field>
<field name="sequence">9999912</field>
<field name="category_id" ref="DEDIRPPS"/>
<field name="code">TDEDIMP</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = categories.DEDIRPP</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">Cette règle représente la somme de toutes les déductions d'impôt que le salarié peut subir.</field>
</record>
<record id="hr_payroll_rules_ded_sum_famille" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">Déduction impôt famille </field>
<field name="code">DEDFAM</field>
<field name="sequence">20445</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<!--<field name="amount_python_compute">result = categories.MARIE + categories.ENF1 + categories.ENF2 + categories.ENF3 + categories.ENF4</field>-->
<field name="amount_python_compute">result = categories.TDEDIMP</field>
<field name="appears_on_payslip" eval="True"/>
<field eval="[(6, 0, [ref('hr_payroll_rules_MARIE'),ref('hr_payroll_rules_ENF1'), ref('hr_payroll_rules_ENF2'),ref('hr_payroll_rules_ENF3'), ref('hr_payroll_rules_ENF4') ])]" name="rule_ids"/>
</record>
<record id="hr_rule_total_charges_salariales" model="hr.salary.rule">
<field name="name">Total des charges salariales</field>
<field name="sequence">2510</field>
<field name="code">SALC</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = categories.SALC</field>
<field name="note">Cette valeur représente la somme de toutes les charges salariales.</field>
</record>
<record id="hr_rule_total_retenues" model="hr.salary.rule">
<field name="name">Total Retenues</field>
<field name="sequence">99999</field>
<field name="category_id" ref="other_totals"/>
<field name="code">RET</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="appears_on_payslip" eval="False"/>
<field name="amount_python_compute">result = categories.RETENUES</field>
<field name="note">Cette règle mais en valeur la somme de toutes les retenues.</field>
</record>
<!--<field name="amount_select">fix</field>
<field name="quantity">1</field>
<field name="amount_fix">150</field>-->
<record id="hr_rule_cumul_imposable" model="hr.salary.rule">
<field name="name">Cumul Imposable</field>
<field name="sequence">99999</field>
<field name="category_id" ref="C_IMP"/>
<field name="code">C_IMP</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="appears_on_payslip" eval="False"/>
<field name="amount_python_compute">result = BRUT - categories.SALC</field>
<field name="note">Le calcul de cette règle se base sur la soustraction des charges salariales du salaire Brut afin d'avoir comme résultat le cumul imposable qui est en autre terme le salaire imposable.</field>
</record>
<record id="hr_rule_cumul_imposableannuel" model="hr.salary.rule">
<field name="name">Cumul Imposable Annuel</field>
<field name="sequence">999999</field>
<field name="category_id" ref="C_IMPAN"/>
<field name="code">C_IMPAN</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="appears_on_payslip" eval="False"/>
<field name="amount_python_compute">result = (BRUT - categories.SALC)*12</field>
<field name="note">A ce niveau, on distingue un cumul annuel : le cumul imposable multiplié par 12 mois .</field>
</record>
<record id="hr_payroll_rules_frais_pro" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.DEDIRPP"/>
<field name="name">Frais professionnels</field>
<field name="code">FPRO</field>
<field name="sequence">999999</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">10</field>
<field name="amount_percentage_base">categories.C_IMP*12</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="note">Le calcul des frais professionnels se base sur 10% du cumul imposable </field>
</record>
<record id="hr_rule_cumul_impo_apres_ded" model="hr.salary.rule">
<field name="name">Cumul Imposable Aprés Déduction</field>
<field name="sequence">1999999</field>
<field name="category_id" ref="C_IMPDED"/>
<field name="code">C_IMPDED</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="appears_on_payslip" eval="False"/>
<field name="amount_python_compute">x = y = 0.0
result_str = str(C_IMPAN - categories.DEDIRPP)
result_list = str(result_str).split('.')
irpp_entier_str = result_list[0]
irpp_unit_str = result_list[1]
x = float(irpp_entier_str)
y = float(irpp_unit_str)
result = x+1 if y > 0 else x</field>
<field name="note">Le cumul imposable aprés déduction est la valeur du cumul trouvée aprés avoir soustraire toutes les déductions d'impôt. </field>
</record>
<record id="hr_payroll_rules_TRANCHE0" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE0</field>
<field name="code">T0</field>
<field name="sequence">6999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.C_IMPDED > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0</field>
<field name="amount_percentage_base">categories.C_IMPDED</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">la première tranche représente l'intervalle [0..1500 000] : voir si le cumul imposable aprés déduction appartient à cet intervalle alors on lui attribut 0% .</field>
</record>
<record id="hr_payroll_rules_TRANCHE1" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE1</field>
<field name="code">T1</field>
<field name="sequence">2999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (categories.C_IMPDED - 1500.000) > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">15</field>
<field name="amount_percentage_base">min(categories.C_IMPDED, 5000.000) - 1500.001</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">La deuxième tranche représente l'intervalle [1500 000..5000 000].Le calcul se base sur une condition qui vérifie si le cumul imosable appartient à cet inetrvalle ou non, et si c'est le cas alors (on cherche le min entre le cumul imposable aprés déduction et 5000.000 et on fait soustraire 1500.001)*15% . </field>
</record>
<record id="hr_payroll_rules_TRANCHE2" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE2</field>
<field name="code">T2</field>
<field name="sequence">3999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (categories.C_IMPDED - 5000.000) > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">20</field>
<field name="amount_percentage_base">min(categories.C_IMPDED, 10000.000) - 5000.001</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">La Troisièmen tranche représente l'intervalle [5000 000..10 000 000].Le calcul se base sur une condition qui vérifie si le cumul imosable appartient à cet inetrvalle ou non, et si c'est le cas alors (on cherche le min entre le cumul imposable aprés déduction et 10000.000 et on fait soustraire 5000.001)*20% . </field>
</record>
<record id="hr_payroll_rules_TRANCHE3" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE3</field>
<field name="code">T3</field>
<field name="sequence">4999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (categories.C_IMPDED - 10000.000) > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">25</field>
<field name="amount_percentage_base">min(categories.C_IMPDED, 20000.000) - 10000.001</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">La quatrième tranche représente l'intervalle [10 000 000..20 000 000].Le calcul se base sur une condition qui vérifie si le cumul imosable appartient à cet inetrvalle ou non, et si c'est le cas alors (on cherche le min entre le cumul imposable aprés déduction et 20000.000 et on fait soustraire 10000.001)*25% . </field>
</record>
<record id="hr_payroll_rules_TRANCHE4" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE4</field>
<field name="code">T4</field>
<field name="sequence">15999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (categories.C_IMPDED - 20000.000) > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">30</field>
<field name="amount_percentage_base">min(categories.C_IMPDED, 50000.000) - 20000.001</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">La cinquième tranche représente l'intervalle [20 000 000..50 000 000].Le calcul se base sur une condition qui vérifie si le cumul imosable appartient à cet inetrvalle ou non, et si c'est le cas alors (on cherche le min entre le cumul imposable aprés déduction et 50000.000 et on fait soustraire 20000.001)*30% . </field>
</record>
<record id="hr_payroll_rules_TRANCHE5" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.TRANCHEIMPO"/>
<field name="name">TRANCHE5</field>
<field name="code">T5</field>
<field name="sequence">17999999</field>
<field name="condition_select">python</field>
<field name="condition_python">result = (categories.C_IMPDED - 50000.000) > 0 </field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">35</field>
<field name="amount_percentage_base">categories.C_IMPDED</field>
<field name="appears_on_payslip" eval="False"/>
<field name="note">La dernière tranche représente l'intervalle [50 000 000 .. +oo].Le calcul se base sur une condition qui vérifie si le cumul imosable appartient à cet inetrvalle ou non. </field>
</record>
<record id="hr_rule_IRPP" model="hr.salary.rule">
<field name="name">L'Impôt sur le Revenu des Personnes Physiques IRPP </field>
<field name="sequence">8999999</field>
<field name="category_id" ref="IRPP"/>
<field name="code">IRPP</field>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (categories.TRANCHEIMPO)/12</field>
<field name="appears_on_payslip" eval="True"/>
<field name="note">l'IRPP du salarié qui se base sur la somme des valeurs des tranches d'impôt et qu'on dévise par 12 mois pour ne pas avoir l'IRPP annuel . </field>
</record>
<record id="hr_payroll.hr_rule_net" model="hr.salary.rule">
<field name="name">Net</field>
<field name="sequence">10000000</field>
<field name="category_id" ref="hr_payroll.NET"/>
<field name="amount_python_compute">result = BRUT - categories.RETENUES</field>
<field name="note">C'est le salaire Net qui est le salaire Brut - toutes les retenues </field>
</record>
<record id="hr_rule_total_charges_patronales" model="hr.salary.rule">
<field name="name">Total Charges Patronales</field>
<field name="sequence">150000</field>
<field name="code">TCOMP</field>
<field name="category_id" ref="other_totals"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = categories.COMP</field>
<field name="note">la somme des charges patronales.</field>
</record>
<record id="hr_rule_total" model="hr.salary.rule">
<field name="name">Cout total pour l'entreprise</field>
<field name="sequence">200000</field>
<field name="code">TOTAL</field>
<field name="category_id" ref="TOTAL"/>
<field name="appears_on_payslip" eval="False"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = categories.BRUT + categories.COMP</field>
<field name="note">le coût total de l'entreprise qui est la somme du salaire brut et les cotistaions patronales. </field>
</record>
<record id="hr_payroll_rules_C1_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">Assurance maladie, maternite, invalidite, deces, solidaritee des personnes agees et handicapees</field>
<field name="code">C1</field>
<field name="sequence">2040</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.75</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="note">le montant assurance du salarié qui appartient aux charges salariales.</field>
</record>
<record id="hr_payroll_rules_C1_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C1_employe"/>
<field name="name">Assurance maladie, maternite, invalidite, deces, solidaritee des personnes agees et handicapees</field>
<field name="code">C1P</field>
<field name="sequence">2045</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">13.10</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="register_id" ref="hr_CNSS_register"/>
<field name="appears_on_payslip" eval="False"/>
<field name="note">le monatnt assurance de l'entreprise qui appartient aux cotisations patronales.</field>
</record>
<!--<record id="hr_payroll_rules_C2_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">Vieillesse plafonnee</field>
<field name="code">C2</field>
<field name="sequence">2050</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">6.65</field>
<field name="amount_percentage_base">min(categories.BRUT,SECU)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C2_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C2_employe"/>
<field name="name">Vieillesse plafonnee</field>
<field name="code">C2P</field>
<field name="sequence">2055</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">8.3</field>
<field name="amount_percentage_base">min(categories.BRUT,SECU)</field>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C3_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">Vieillesse deplafonnee</field>
<field name="code">C3</field>
<field name="sequence">2060</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.1</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C3_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C3_employe"/>
<field name="name">Vieillesse deplafonnee</field>
<field name="code">C3P</field>
<field name="sequence">2065</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">1.6</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C4_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">Allocations familiales</field>
<field name="code">C4</field>
<field name="sequence">2070</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C4_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C4_employe"/>
<field name="name">Allocations familiales</field>
<field name="code">C4P</field>
<field name="sequence">2075</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">5.4</field>
<field name="amount_percentage_base">categories.BRUT</field>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C10_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">Assurance chomage</field>
<field name="code">C10</field>
<field name="sequence">2080</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">2.40</field>
<field name="amount_percentage_base">min(categories.BRUT,TB)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C10_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C10_employe"/>
<field name="name">Assurance chomage</field>
<field name="code">C10P</field>
<field name="sequence">2085</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">4</field>
<field name="amount_percentage_base">min(categories.BRUT,TB)</field>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C11_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">AGS (FNGS)</field>
<field name="code">C11</field>
<field name="sequence">2090</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0</field>
<field name="amount_percentage_base">min(categories.BRUT,TB)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C11_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C11_employe"/>
<field name="name">AGS (FNGS)</field>
<field name="code">C11P</field>
<field name="sequence">2095</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.3</field>
<field name="amount_percentage_base">min(categories.BRUT,TB)</field>
<field name="register_id" ref="hr_CNSS_register"/>
</record>
<record id="hr_payroll_rules_C12_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">ARRCO Non-cadre Tranche 1</field>
<field name="code">C12</field>
<field name="sequence">2100</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">3</field>
<field name="amount_percentage_base">min(categories.BRUT,T1)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C12_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C12_employe"/>
<field name="name">ARRCO Non-cadre Tranche 1</field>
<field name="code">C12P</field>
<field name="sequence">2105</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">4.5</field>
<field name="amount_percentage_base">min(categories.BRUT,T1)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C14_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">ARRCO Non-cadre Tranche 2</field>
<field name="code">C14</field>
<field name="sequence">2110</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > T1</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">8</field>
<field name="amount_percentage_base">min(categories.BRUT-T1,T2-T1)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C14_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C14_employe"/>
<field name="name">ARRCO Non-cadre Tranche 2</field>
<field name="code">C14P</field>
<field name="sequence">2115</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > T1</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">12</field>
<field name="amount_percentage_base">min(categories.BRUT-T1,T2-T1)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C13_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">AGFF Non-cadre Tranche 1</field>
<field name="code">C13</field>
<field name="sequence">2120</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.8</field>
<field name="amount_percentage_base">min(categories.BRUT,T1)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C13_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C13_employe"/>
<field name="name">AGFF Non-cadre Tranche 1</field>
<field name="code">C13P</field>
<field name="sequence">2125</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">1.2</field>
<field name="amount_percentage_base">min(categories.BRUT,T1)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C15_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">AGFF Non-cadre Tranche 2</field>
<field name="code">C15</field>
<field name="sequence">2130</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > T1</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0.9</field>
<field name="amount_percentage_base">min(categories.BRUT-T1,T2-T1)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C15_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C15_employe"/>
<field name="name">AGFF Non-cadre Tranche 2</field>
<field name="code">C15P</field>
<field name="sequence">2135</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > T1</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">1.3</field>
<field name="amount_percentage_base">min(categories.BRUT-T1,T2-T1)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C16_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">ARRCO Cadre Tranche A</field>
<field name="code">C16</field>
<field name="sequence">2140</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">3</field>
<field name="amount_percentage_base">min(categories.BRUT,TA)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C16_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C16_employe"/>
<field name="name">ARRCO Cadre Tranche A</field>
<field name="code">C16P</field>
<field name="sequence">2145</field>
<field name="condition_select">none</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">4.5</field>
<field name="amount_percentage_base">min(categories.BRUT,TA)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C38_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">AGIRC Cadre Tranche C</field>
<field name="code">C38</field>
<field name="sequence">2160</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > TB</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0</field>
<field name="amount_percentage_base">min(categories.BRUT-TB,TC-TB)</field>
<field name="appears_on_payslip" eval="True"/>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C38_employer" model="hr.salary.rule">
<field name="category_id" ref="hr_payroll.COMP"/>
<field name="parent_rule_id" ref="hr_payroll_rules_C38_employe"/>
<field name="name">AGIRC Cadre Tranche C</field>
<field name="code">C38P</field>
<field name="sequence">2165</field>
<field name="condition_select">python</field>
<field name="condition_python">result = categories.BRUT > TB</field>
<field name="amount_select">percentage</field>
<field name="amount_percentage">0</field>
<field name="amount_percentage_base">min(categories.BRUT-TB,TC-TB)</field>
<field name="register_id" ref="hr_retraite_register"/>
</record>
<record id="hr_payroll_rules_C39_employe" model="hr.salary.rule">
<field name="category_id" ref="SALC"/>
<field name="name">AGFF Cadre Tranche A</field>