Commit 4e247054 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_payroll_l10n_fr&erp5_payroll_l10n_fr_test: update tests

parent 5870e521
......@@ -108,18 +108,18 @@ class TestSimplifiedPayslipReport(ERP5TypeTestCase):
"currency": "€",
"amount_of_remuneration_evolution": 2250 * 0.022 - 2305.53 * 0.017,
"income_tax_dict": {'employee_price': -0.051, 'employee_total_price': -117.58, 'base': 2305.535},
"total_pay_by_employer": 9854.25,
"total_pay_by_employer": 9854.24,
"total_contribution_relief": 468.88
}
payslip_content = test_pay_sheet_transaction.PaySheetTransaction_getPayslipData()
for key, value in expected_payslip_content.iteritems():
self.assertEquals(value, payslip_content[key])
self.assertAlmostEquals(value, payslip_content[key])
expected_non_contribution_dict_list= [
{'title': 'AMOUNT NON SUBJECT TO CONTRIBUTION', 'base': 0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': 0, 'employer_total_price': 0},
{'title': 'Remboursement transport en commun', 'base': 14.0, 'employee_price': 1.0, 'employee_total_price': 14.0, 'employer_price': None, 'employer_total_price': None},
{'title': 'Plvt cheques vacances', 'base': -44.0, 'employee_price': 1.0, 'employee_total_price': -44.0, 'employer_price': None, 'employer_total_price': None},
{'title': 'Remboursement internet', 'base': 0.0, 'employee_price': None, 'employee_total_price': None, 'employer_price': None, 'employer_total_price': None},
{'title': 'Remboursement transport en commun', 'base': 14.0, 'employee_price': None, 'employee_total_price': 14.0, 'employer_price': None, 'employer_total_price': None},
{'title': 'Plvt cheques vacances', 'base': -44.0, 'employee_price': None, 'employee_total_price': -44.0, 'employer_price': None, 'employer_total_price': None},
{'title': 'Remboursement internet', 'base': 0.0, 'employee_price': None, 'employee_total_price': 0.0, 'employer_price': None, 'employer_total_price': None},
{'title': 'Tickets restaurant', 'base': -3.2, 'employee_price': 4.0, 'employee_total_price': -12.8, 'employer_price': 4.0, 'employer_total_price': -19.2},
{'title': 'TOTAL AMOUNTS NON SUBJECT TO CONTRIBUTIONS', 'base': 0, 'employee_price': 0, 'employee_total_price': -42.8, 'employer_price': 0, 'employer_total_price': -19.2}
]
......@@ -151,16 +151,16 @@ class TestSimplifiedPayslipReport(ERP5TypeTestCase):
{'title': 'Retraite complementaire IRNEO TA', 'base': 2250.0, 'employee_price': -0.031, 'employee_total_price': -69.75, 'employer_price': -0.0465, 'employer_total_price': -104.63},
{'title': 'AGFF TA', 'base': 2250.0, 'employee_price': -0.008, 'employee_total_price': -18.0, 'employer_price': -0.012, 'employer_total_price': -27.0},
{'title': 'Assurance vieillesse deplafonnée', 'base': 2250.0, 'employee_price': -0.003, 'employee_total_price': -6.75, 'employer_price': -0.018, 'employer_total_price': -40.5},
{'title': 'FAMILY-SOCAL SECURITY', 'base': 2250.0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': -0.0345, 'employer_total_price': -77.63},
{'title': 'FAMILY-SOCAL SECURITY', 'base': 2250.0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': -0.0345, 'employer_total_price': -77.625},
{'title': 'UNEMPLOYMENT INSURANCE', 'base': 2250.0, 'employee_price': -0.02424, 'employee_total_price': -54.54, 'employer_price': -0.04336, 'employer_total_price': -97.56},
{'title': 'OTHER EMPLOYER CONTRIBUTIONS', 'base': 94.91, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': -0.08, 'employer_total_price': -7.59},
{'title': 'OTHER EMPLOYER CONTRIBUTIONS', 'base': 94.91, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': -0.08, 'employer_total_price': -7.5927999999999995},
{'title': 'OTHER EMPLOYER CONTRIBUTIONS', 'base': 2250.0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': -0.024, 'employer_total_price': -54.0},
{'title': 'CSG NON TAXABLE TO INCOME TAX', 'base': 0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': 0, 'employer_total_price': 0},
{'title': 'CSG non deductible', 'base': 2305.53, 'employee_price': -0.029, 'employee_total_price': -66.86, 'employer_price': None, 'employer_total_price': None},
{'title': 'CSG/CRDS TAXABLE TO INCOME TAX', 'base': 0, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': 0, 'employer_total_price': 0},
{'title': 'CSG/CRDS imposible a impot sur le revenu', 'base': 2305.53, 'employee_price': -0.029, 'employee_total_price': -66.86, 'employer_price': None, 'employer_total_price': None},
{'title': 'CONTRIBUTION RELIEF', 'base': 468.88, 'employee_price': 0, 'employee_total_price': 0, 'employer_price': 1.0, 'employer_total_price': 468.88},
{'title': 'TOTAL CONTRIBUTIONS', 'base': 0, 'employee_price': 0, 'employee_total_price': -499.87, 'employer_price': 0, 'employer_total_price': -585.05}
{'title': 'TOTAL CONTRIBUTIONS', 'base': 0, 'employee_price': 0, 'employee_total_price': -499.87, 'employer_price': 0, 'employer_total_price': -585.04}
]
contribution_dict_list = payslip_content['contribution_dict_list']
......
......@@ -47,7 +47,7 @@
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>xxxxxx</string> </value>
<value> <string>impot_revenu</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -40,7 +40,6 @@
<string>base_application/base_amount/payroll/l10n/fr/base/csg_deductible</string>
<string>base_application/base_amount/payroll/l10n/fr/base/prevoyance</string>
<string>base_application/base_amount/payroll/l10n/fr/base/mutuelle_fixe</string>
<string>contribution_share/employee</string>
</tuple>
</value>
</item>
......@@ -86,6 +85,10 @@
<key> <string>price</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>quantity</string> </key>
<value> <float>14.0</float> </value>
</item>
<item>
<key> <string>report_section</string> </key>
<value> <string>report_section/payroll/fr/amount_not_subject_to_contribution</string> </value>
......@@ -150,34 +153,7 @@
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <int>0</int> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>contribution_share/employee</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
<dictionary/>
</value>
</item>
</dictionary>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Pay Sheet Cell" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>base_id</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>base_id</string> </key>
<value> <string>movement</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>contribution_share/employee</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>movement_0</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Pay Sheet Cell</string> </value>
</item>
<item>
<key> <string>price</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>quantity</string> </key>
<value> <float>14.0</float> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -33,7 +33,6 @@
<string>resource/service_module/cheque_vacance</string>
<string>source_section/organisation_module/20</string>
<string>destination/account_module/dette_fournisseur</string>
<string>contribution_share/employee</string>
<string>base_contribution/base_amount/payroll/l10n/fr/base/reduc_salariales</string>
<string>base_contribution/base_amount/payroll/report_section/l10n/fr/amount_non_subject_to_contribution</string>
<string>base_contribution/base_amount/payroll/base/income_tax</string>
......@@ -154,34 +153,7 @@
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <int>0</int> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>contribution_share/employee</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
<dictionary/>
</value>
</item>
</dictionary>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Pay Sheet Cell" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>base_id</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>base_id</string> </key>
<value> <string>movement</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>contribution_share/employee</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>movement_0</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Pay Sheet Cell</string> </value>
</item>
<item>
<key> <string>price</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>quantity</string> </key>
<value> <float>-44.0</float> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -79,7 +79,7 @@
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>404b2fd798dffc086ee50876123b547c</string> </value>
<value> <string>5237ff311fa73faf2737d37c743e4287</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment