diff --git a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/absences.xml b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/absences.xml new file mode 100644 index 0000000000000000000000000000000000000000..ae2e1399e633523215105af4a245fa2e897e8dd5 --- /dev/null +++ b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/absences.xml @@ -0,0 +1,182 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Resource</string> + <string>Resource</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>salary_range/france/forfait</string> + <string>product_line/salary</string> + <string>quantity_unit/time/month</string> + <string>tax_category/absences/employer_share</string> + </tuple> + </value> + </item> + <item> + <key> <string>contributors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>float_index</string> </key> + <value> <float>0.1</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>absences</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Service</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Absences</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>variation_base_category_list</string> </key> + <value> + <tuple> + <string>tax_category</string> + <string>salary_range</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/indemnite_precarite.xml b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/indemnite_precarite.xml index 720f085d6e9e9599ea96f4be16dfe9d22019570e..4c969a2be7fc4b8c610efe93ca86590f78833ec4 100644 --- a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/indemnite_precarite.xml +++ b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/indemnite_precarite.xml @@ -89,7 +89,7 @@ <string>salary_range/france/forfait</string> <string>product_line/salary</string> <string>quantity_unit/time/month</string> - <string>tax_category/indemnite_precarite/employee_share</string> + <string>tax_category/indemnite_precarite/employer_share</string> </tuple> </value> </item> diff --git a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/precarite.xml b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/precarite.xml new file mode 100644 index 0000000000000000000000000000000000000000..0bfc8e2239be979377f1a132fbb58bb48e1845ce --- /dev/null +++ b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/precarite.xml @@ -0,0 +1,182 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Resource</string> + <string>Resource</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Author</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>salary_range/france/forfait</string> + <string>product_line/salary</string> + <string>quantity_unit/time/month</string> + <string>tax_category/indemnite_precarite/employer_share</string> + </tuple> + </value> + </item> + <item> + <key> <string>contributors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>float_index</string> </key> + <value> <float>0.1</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>precarite</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Service</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string encoding="base64">SW5kZW1pbml0w6kgZGUgUHLDqWNhcml0w6k=</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>variation_base_category_list</string> </key> + <value> + <tuple> + <string>tax_category</string> + <string>salary_range</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/primes.xml b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/primes.xml index aea356f9018edb4c71b82b8f23e904ddbf19799c..bba835432642d0b9b02a9d7f6c21e2b7670a3fea 100644 --- a/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/primes.xml +++ b/bt5/erp5_payroll/PathTemplateItem/payroll_service_module/primes.xml @@ -87,7 +87,7 @@ <value> <tuple> <string>salary_range/france/forfait</string> - <string>tax_category/primes/employee_share</string> + <string>tax_category/primes/employer_share</string> <string>product_line/salary</string> <string>quantity_unit/time/month</string> </tuple> diff --git a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/absences/employer_share.xml b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/absences/employer_share.xml new file mode 100644 index 0000000000000000000000000000000000000000..a84e1c89f28648f872dd5428a1a42a1f2b4f17a7 --- /dev/null +++ b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/absences/employer_share.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Category</string> + <string>Category</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>tax_category/absences/employer_share</string> + <string>tax_category/absences/employer_share</string> + <string>tax_category/absences/employer_share</string> + </tuple> + </value> + </item> + <item> + <key> <string>codification</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>employer_share</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Employer Share</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite.xml b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite.xml index b320e137f5886a62238c3c589ed80737c5ceaa72..9a9ea06ff5110293fbefd17a28f42c7004f40643 100644 --- a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite.xml +++ b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite.xml @@ -50,6 +50,12 @@ </tuple> </value> </item> + <item> + <key> <string>codification</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>description</string> </key> <value> @@ -60,6 +66,12 @@ <key> <string>id</string> </key> <value> <string>indemnite_precarite</string> </value> </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>last_id</string> </key> <value> <string>1</string> </value> diff --git a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employee_share.xml b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employer_share.xml similarity index 84% rename from bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employee_share.xml rename to bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employer_share.xml index 5e60a7d633afff6c60b52a21c1f2de32ff49c8ce..947f3f06d6be178ba84a1107dade0b59a53a0e6e 100644 --- a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employee_share.xml +++ b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/indemnite_precarite/employer_share.xml @@ -40,10 +40,17 @@ <key> <string>categories</string> </key> <value> <tuple> - <string>tax_category/indemnite_precarite/employee_share</string> + <string>tax_category/indemnite_precarite/employer_share</string> + <string>tax_category/indemnite_precarite/employer_share</string> </tuple> </value> </item> + <item> + <key> <string>codification</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>description</string> </key> <value> @@ -52,7 +59,13 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>employee_share</string> </value> + <value> <string>employer_share</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> </item> <item> <key> <string>portal_type</string> </key> @@ -60,7 +73,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Employee Share</string> </value> + <value> <string>Employer Share</string> </value> </item> <item> <key> <string>uid</string> </key> diff --git a/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/primes/employer_share.xml b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/primes/employer_share.xml new file mode 100644 index 0000000000000000000000000000000000000000..444879a5f5eb1b8db3a601e73772d2405739a17e --- /dev/null +++ b/bt5/erp5_payroll/PathTemplateItem/portal_categories/tax_category/primes/employer_share.xml @@ -0,0 +1,129 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Category</string> + <string>Category</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>tax_category/primes/employer_share</string> + <string>tax_category/primes/employer_share</string> + <string>tax_category/primes/employer_share</string> + <string>tax_category/primes/employer_share</string> + </tuple> + </value> + </item> + <item> + <key> <string>codification</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>employer_share</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Employer Share</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_preCalculation_l10n_fr_2006.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_preCalculation_l10n_fr_2006.xml index e55b5ed42f13c7c7cf0ff8960fcac42d24044bbd..23bda8725a2863f0bc4ca9b9baa0ffdaf89eaaf1 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_preCalculation_l10n_fr_2006.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_preCalculation_l10n_fr_2006.xml @@ -130,6 +130,9 @@ company_size = len(employee_list)\n salary_slices = {}\n \n # "Char" slice type\n +# TODO: Slices should be calculated based on the total gross salary over the year divided by 12 month.\n +# This is why there is a problem for people who have changing gross salary over the year.\n +# That\'s why accountants must do manual regulations in those cases.\n slice_a_value = ceiling_salary\n slice_b_value = ceiling_salary * 4\n slice_c_value = ceiling_salary * 8\n @@ -422,7 +425,7 @@ if executive and start_date <= comp_date <= stop_date:\n }\n \n # Retirement = Retraite Cadre forfaitaire\n -if executive:\n +if executive and not salary_slices.has_key(\'B\') and not salary_slices.has_key(\'C\'):\n kw[\'cavcic/forfait\'] = \\\n { \'employer_share\': 35.62\n , \'employee_share\': 21.21\n @@ -481,11 +484,7 @@ kw[\'reduction_fillon_forfait/forfait\'] = \\\n , \'base\' : 1.0\n }\n \n -# Add blank lines for:\n -# * wickness holding (= retenue maladie)\n -# * pay bonus (= primes)\n -# * non-working days (= absences)\n -# * vacation compensation (= ICCP)\n +# Add blank lines for services which is a variable part od the gross salary.\n # Thanks to this, the accountant has the freedom to add the missing amount of money\n # that this script can\'t guess.\n kw[\'retenue_maladie/forfait\'] = \\\n @@ -508,7 +507,11 @@ kw[\'iccp/forfait\'] = \\\n , \'employee_share\': None\n , \'base\' : 1.0\n }\n -\n +kw[\'precarite/forfait\'] = \\\n +{ \'employer_share\': None\n +, \'employee_share\': None\n +, \'base\' : 1.0\n +}\n \n return kw\n