Commit 6d50f2b4 authored by Fabien Morin's avatar Fabien Morin

revert the category change

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent efbb8301
...@@ -13,8 +13,9 @@ ...@@ -13,8 +13,9 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>base_amount/taxable_net_pay</string> <string>base_amount/salaire_net_imposable</string>
<string>base_amount/taxable_net_pay</string> <string>base_amount/salaire_net_imposable</string>
<string>base_amount/salaire_net_imposable</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>taxable_net_pay</string> </value> <value> <string>salaire_net_imposable</string> </value>
</item> </item>
<item> <item>
<key> <string>int_index</string> </key> <key> <string>int_index</string> </key>
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Taxable Net Pay</string> </value> <value> <string>Salaire net imposable</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -121,13 +121,13 @@ def getPriceCurrencyId(currency):\n ...@@ -121,13 +121,13 @@ def getPriceCurrencyId(currency):\n
s += \'%s: %s\' % (translateString(\'Price Currency\'), currency)\n s += \'%s: %s\' % (translateString(\'Price Currency\'), currency)\n
return s\n return s\n
\n \n
taxable_net_pay = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n salaire_net_imposable = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n
base_contribution=\'base_contribution/base_amount/taxable_net_pay\',\n base_contribution=\'base_contribution/base_amount/salaire_net_imposable\',\n
tax_category=\'tax_category/employee_share\')\n tax_category=\'tax_category/employee_share\')\n
def getTaxableNetPayId(taxable_net_pay):\n def getTaxableNetPayId(salaire_net_imposable):\n
s = \'\'\n s = \'\'\n
if taxable_net_pay:\n if salaire_net_imposable:\n
s += \'%s: %s\' % (translateString(\'Taxable Net Pay\'), taxable_net_pay)\n s += \'%s: %s\' % (translateString(\'Taxable Net Pay\'), salaire_net_imposable)\n
return s\n return s\n
\n \n
total_employee_tax = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n total_employee_tax = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n
...@@ -211,11 +211,11 @@ year_to_date_bonus_worked_hour_amount = context.PaySheetTransaction_getYearToDat ...@@ -211,11 +211,11 @@ year_to_date_bonus_worked_hour_amount = context.PaySheetTransaction_getYearToDat
base_contribution=\'base_contribution/base_amount/overtime\', \\\n base_contribution=\'base_contribution/base_amount/overtime\', \\\n
tax_category=\'tax_category/employee_share\') or 0\n tax_category=\'tax_category/employee_share\') or 0\n
\n \n
taxable_net_pay = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n salaire_net_imposable = context.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n
base_contribution=\'base_contribution/base_amount/taxable_net_pay\',\n base_contribution=\'base_contribution/base_amount/salaire_net_imposable\',\n
tax_category=\'tax_category/employee_share\')\n tax_category=\'tax_category/employee_share\')\n
year_to_date_taxable_net_salary = context.PaySheetTransaction_getYearToDateBaseContributionTotalPrice(\\\n year_to_date_taxable_net_salary = context.PaySheetTransaction_getYearToDateBaseContributionTotalPrice(\\\n
paysheet=context, base_contribution_list=\'taxable_net_pay\') + taxable_net_pay\n paysheet=context, base_contribution_list=\'salaire_net_imposable\') + salaire_net_imposable\n
\n \n
def unicodeDict(d):\n def unicodeDict(d):\n
for k, v in d.items():\n for k, v in d.items():\n
...@@ -258,7 +258,7 @@ data_dict = {\n ...@@ -258,7 +258,7 @@ data_dict = {\n
\'bonus_worked_hour_count\': bonus_worked_hour_count,\n \'bonus_worked_hour_count\': bonus_worked_hour_count,\n
\'absence_hour_count\': 0, #XXX currently absence hour are not take into \n \'absence_hour_count\': 0, #XXX currently absence hour are not take into \n
# account in payroll\n # account in payroll\n
\'taxable_net_pay\': getTaxableNetPayId(taxable_net_pay),\n \'salaire_net_imposable\': getTaxableNetPayId(salaire_net_imposable),\n
\'total_employee_tax\': getTotalEmployeeTaxId(total_employee_tax),\n \'total_employee_tax\': getTotalEmployeeTaxId(total_employee_tax),\n
\'total_employer_tax\': getTotalEmployerTaxId(total_employer_tax),\n \'total_employer_tax\': getTotalEmployerTaxId(total_employer_tax),\n
}\n }\n
...@@ -316,7 +316,7 @@ return unicodeDict(data_dict)\n ...@@ -316,7 +316,7 @@ return unicodeDict(data_dict)\n
<string>getCareerCoefficientId</string> <string>getCareerCoefficientId</string>
<string>getHiringDateId</string> <string>getHiringDateId</string>
<string>getPriceCurrencyId</string> <string>getPriceCurrencyId</string>
<string>taxable_net_pay</string> <string>salaire_net_imposable</string>
<string>getTaxableNetPayId</string> <string>getTaxableNetPayId</string>
<string>total_employee_tax</string> <string>total_employee_tax</string>
<string>getTotalEmployeeTaxId</string> <string>getTotalEmployeeTaxId</string>
......
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
tal:condition=\'data_dict/default_payment_condition_payment_text\'\n tal:condition=\'data_dict/default_payment_condition_payment_text\'\n
tal:content=\'python:data_dict["default_payment_condition_payment_text"]\'>Payement: Chèque le 01/12/2009</text:p>\n tal:content=\'python:data_dict["default_payment_condition_payment_text"]\'>Payement: Chèque le 01/12/2009</text:p>\n
<text:p text:style-name=\'Table_20_Contents_20_Left\'\n <text:p text:style-name=\'Table_20_Contents_20_Left\'\n
tal:condition=\'data_dict/taxable_net_pay\'\n tal:condition=\'data_dict/salaire_net_imposable\'\n
tal:content=\'python:data_dict["taxable_net_pay"]\'>Salaire net imposable: 200 000</text:p>\n tal:content=\'python:data_dict["salaire_net_imposable"]\'>Salaire net imposable: 200 000</text:p>\n
<text:p text:style-name=\'Table_20_Contents_20_Left\'\n <text:p text:style-name=\'Table_20_Contents_20_Left\'\n
tal:condition=\'data_dict/total_employee_tax\'\n tal:condition=\'data_dict/total_employee_tax\'\n
tal:content=\'python:data_dict["total_employee_tax"]\'>Total cotisation employé: 200 000</text:p>\n tal:content=\'python:data_dict["total_employee_tax"]\'>Total cotisation employé: 200 000</text:p>\n
......
2009-03-10 fabien 2009-03-10 fabien
* rename salaire_net_imposabe base_amount into taxable_net_pay
* add a macro used to display localised information in a part of the payslip * add a macro used to display localised information in a part of the payslip
* increment version number because of the new style of the payslip * increment version number because of the new style of the payslip
......
84 86
\ No newline at end of file \ No newline at end of file
portal_categories/base_amount/base_csg portal_categories/base_amount/base_csg
portal_categories/base_amount/taxable_net_pay portal_categories/base_amount/salaire_net_imposable
portal_categories/salary_range/france portal_categories/salary_range/france
portal_categories/salary_range/france/tranche_1 portal_categories/salary_range/france/tranche_1
portal_categories/salary_range/france/tranche_2 portal_categories/salary_range/france/tranche_2
......
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