diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/history.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/history.xml new file mode 100644 index 0000000000000000000000000000000000000000..01eb393a9e1fd2e4ba7812ace9f2f5c37556810a --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/history.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>history</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>5.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>History</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewHistory</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/list.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/list.xml new file mode 100644 index 0000000000000000000000000000000000000000..d31b0d826f82300fdc40f30ebaac52f5e5868989 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/list.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_action</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>list</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Object Contents</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Folder_viewContentList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/metadata.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/metadata.xml new file mode 100644 index 0000000000000000000000000000000000000000..8921c12faeff43db6e44818d83d82c4008f3abc6 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/metadata.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>metadata</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Manage properties</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Metadata</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewMetadata</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/print_pdf.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/print_pdf.xml new file mode 100644 index 0000000000000000000000000000000000000000..47ee5668101e108fee9bb7ae837d3f9519775a1d --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/print_pdf.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_print</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>print_pdf</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>6.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Print</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_printPdf</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/quantity.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/quantity.xml new file mode 100644 index 0000000000000000000000000000000000000000..c00bb8c988d49d3420a67f3f2ee503a1bdf71cc6 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/quantity.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>quantity</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Pay Sheet Cells</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetLine_viewQuantity</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/view.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..0206c73be2b19e2db1d830cac4c89ff6f2e19784 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Line/view.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Pay Sheet Line View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetLine_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/accounting_lines.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/accounting_lines.xml new file mode 100644 index 0000000000000000000000000000000000000000..e884286efd1f0548577efef9fb7b59221df1e1cc --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/accounting_lines.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>accounting_lines</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Accounting Lines</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetTransaction_viewAccountingLineList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/calcul.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/calcul.xml new file mode 100644 index 0000000000000000000000000000000000000000..7b1fede25ccbb9cd65ed035e6b81b78cc2f70867 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/calcul.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_action</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>calcul</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Modify portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>6.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>(re)Calculation of the Pay Sheet Transaction</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetTransaction_checkParameters</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/history.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/history.xml new file mode 100644 index 0000000000000000000000000000000000000000..01eb393a9e1fd2e4ba7812ace9f2f5c37556810a --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/history.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>history</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>5.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>History</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewHistory</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/metadata.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/metadata.xml new file mode 100644 index 0000000000000000000000000000000000000000..8921c12faeff43db6e44818d83d82c4008f3abc6 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/metadata.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>metadata</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Manage properties</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Metadata</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewMetadata</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/print.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/print.xml new file mode 100644 index 0000000000000000000000000000000000000000..54dd82e1546d676e7e26e4f553abcf1731b92059 --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/print.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_print</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>print</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Print</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetTransaction_viewPaySheetTransactionAsPDF</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/view.xml b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..76b4d66c4c74b94350654f39de81936b642cf1ab --- /dev/null +++ b/bt5/erp5_payroll/ActionTemplateItem/portal_types/Pay%20Sheet%20Transaction/view.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Pay Sheet View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PaySheetTransaction_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_payroll/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml new file mode 100644 index 0000000000000000000000000000000000000000..1a6e3ed5f9b639d88accb2f8eb05d2abf4865074 --- /dev/null +++ b/bt5/erp5_payroll/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -0,0 +1,9 @@ +<allowed_content_type_list> + <portal_type id="Pay Sheet Line"> + <item>Pay Sheet Cell</item> + </portal_type> + <portal_type id="Pay Sheet Transaction"> + <item>Pay Sheet Line</item> + <item>Pay Sheet Transaction Line</item> + </portal_type> +</allowed_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_payroll/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_payroll/PortalTypeBaseCategoryTemplateItem/base_category_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..c27d68152827fb37502d9598d62b93c6305a40c9 --- /dev/null +++ b/bt5/erp5_payroll/PortalTypeBaseCategoryTemplateItem/base_category_list.xml @@ -0,0 +1,11 @@ +<base_category_list> + <portal_type id="Pay Sheet Cell"> + <item>tax_category</item> + <item>product_line</item> + <item>salary_range</item> + </portal_type> + <portal_type id="Pay Sheet Line"> + <item>salary_range</item> + <item>tax_category</item> + </portal_type> +</base_category_list> \ No newline at end of file diff --git a/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f6dcf2baf64d14d09b0b12969ea156055b6413e --- /dev/null +++ b/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -0,0 +1,18 @@ +<workflow_chain> + <chain> + <type>Pay Sheet Cell</type> + <workflow>delivery_edit_workflow, edit_workflow</workflow> + </chain> + <chain> + <type>Pay Sheet Line</type> + <workflow>delivery_edit_workflow, edit_workflow</workflow> + </chain> + <chain> + <type>Pay Sheet Transaction</type> + <workflow>edit_workflow, accounting_workflow, delivery_edit_workflow</workflow> + </chain> + <chain> + <type>Pay Sheet Transaction Line</type> + <workflow>edit_workflow, delivery_edit_workflow</workflow> + </chain> +</workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_buildAllPaySheetAccountingLine.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_buildAllPaySheetAccountingLine.xml new file mode 100644 index 0000000000000000000000000000000000000000..ce148d326e23a0dd589df3a98592f66cc584ee03 --- /dev/null +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_buildAllPaySheetAccountingLine.xml @@ -0,0 +1,182 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">O/INCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +print "<html>"\n +print "<h1>Build All Pay Sheet Accounting Lines</h1>"\n +\n +for pay_sheet in context.accounting_module.objectValues(portal_type = [\'Pay Sheet Transaction\']):\n + if pay_sheet.getSimulationState() == \'confirmed\': #not in (\'cancelled\', \'delivered\', \'draft\', \'stopped\', \'planned\'):\n + if str(pay_sheet.getStartDate()).split(\'/\')[0] == \'2005\':\n + pstl_list = pay_sheet.objectValues(portal_type = [\'Pay Sheet Transaction Line\'])\n + if len(pstl_list) == 0:\n + print "<br/>"\n + print "<h2><a href=\'%s\'>%s - %s</a> [%s]</h2>" % ( \\\n + pay_sheet.absolute_url()\n + , pay_sheet.getTitle()\n + , pay_sheet.getStartDate()\n + , pay_sheet.getSimulationState()\n + )\n + try:\n + #print "<a href=\'%s\'>%s</a><br/>" % (pay_sheet.getCausalityRelatedValue().absolute_url(), pay_sheet.getCausalityRelatedValue().getId())\n + #error = pay_sheet.PaySheetTransaction_buildAccountingLine()\n + #if error != None:\n + # print error\n + print "<font color=\'#0f0\'><b>Build started.</b></font><br/>"\n + except:\n + print "<font color=\'#f00\'><b>Build failed !</b></font><br/>"\n +\n +print "</html>"\n +return printed\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/nexedi/portal_skins/erp5_payroll/AccountingModule_buildAllPaySheetAccountingLine</string> </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_print_</string> + <string>_print</string> + <string>_getiter_</string> + <string>_getattr_</string> +<string>context</string> + <string>pay_sheet</string> + <string>_getitem_</string> + <string>str</string> + <string>pstl_list</string> + <string>len</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>AccountingModule_buildAllPaySheetAccountingLine</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_checkPaySheetConsistency.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_checkPaySheetConsistency.xml index fbac9a6c1d3ad0acbe4a9f682684eb511ede3079..408e13cbd347d4daeb63a0da384625e2045ca0d6 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_checkPaySheetConsistency.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_checkPaySheetConsistency.xml @@ -68,45 +68,138 @@ <key> <string>_body</string> </key> <value> <string encoding="cdata"><![CDATA[ -"""\n - Usefull, but dirty, script to track bad destination and destination_section on pay sheet line.\n -"""\n +YEAR = \'2005\'\n +STATE_LIST = [ \'confirmed\'\n + #, \'cancelled\'\n + #, \'delivered\'\n + , \'planned\'\n + , \'stopped\'\n + #, \'draft\'\n + ]\n +AUTO_UPDATE = False\n +\n +\n +print """<html>\n +<head>\n +<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n +<style>\n +body, h1, h2 {\n + font-size: 70%;\n +}\n +</style>\n +</head>\n +<body>\n +<h1>PaySheets Consistency Checking</h1>"""\n +\n \n -print "<html>"\n -print "<h1>Check PaySheets Consistency</h1>"\n for pay_sheet in context.accounting_module.objectValues(portal_type = [\'Pay Sheet Transaction\']):\n - if pay_sheet.getSimulationState() not in (\'cancelled\', \'delivered\'):\n - if str(pay_sheet.getStartDate()).split(\'/\')[0] == \'2005\':\n +\n + ps_state = pay_sheet.getSimulationState()\n +\n + if ps_state in STATE_LIST:\n + if str(pay_sheet.getStartDate()).split(\'/\')[0] == YEAR:\n +\n print "<br/>"\n - print "<h2><a href=\'%s\'>%s - %s</a> [%s]</h2>" % (pay_sheet.absolute_url(), pay_sheet.getTitle(), pay_sheet.getStartDate(), pay_sheet.getSimulationState())\n + print "<h2><a href=\'%s\'>%s - %s</a> [%s]</h2>" % ( pay_sheet.absolute_url()\n + , pay_sheet.getTitle()\n + , pay_sheet.getStartDate()\n + , pay_sheet.getSimulationState()\n + )\n +\n + ### Test the consistency of paysheet properties\n + # Test the presence of a Transaction Reference number\n + #if ps_state in [\'confirmed\', \'stopped\', \'delivered\']:\n +\n +\n + ### Test the validity of Pay Sheet Lines (invoice lines of social service)\n for pay_sheet_line in pay_sheet.objectValues(portal_type = [\'Pay Sheet Line\']):\n social_service = pay_sheet_line.getResourceValue()\n supplier = social_service.getSourceValue()\n ps_destination = pay_sheet_line.getDestinationValue()\n ps_destination_section = pay_sheet_line.getDestinationSectionValue()\n - if supplier != None:\n +\n + # Test the supplier\n + if supplier == None:\n + if social_service.getId() != \'labour\':\n + print "<font color=\'#f00\'><a href=\'%s\'>%s [%s]</a> Supplier is None !</font><br/>" % ( pay_sheet_line.absolute_url()\n + , pay_sheet_line.getPath()\n + , pay_sheet_line.getTitle()\n + )\n +\n + else:\n + # Test the destination\n if supplier != ps_destination:\n - print "<a href=\'%s\'>%s [%s]</a> has bad destination (%s instead of %s) <br/>" % ( pay_sheet_line.absolute_url()\n + print "<font color=\'#f00\'><a href=\'%s\'>%s [%s]</a> has bad destination (%s instead of %s).</font><br/>" % ( pay_sheet_line.absolute_url()\n , pay_sheet_line.getPath()\n , pay_sheet_line.getTitle()\n , repr(ps_destination).replace(\'>\', \']\').replace(\'<\', \'[\')\n , repr(supplier).replace(\'>\', \']\').replace(\'<\', \'[\')\n )\n - # pay_sheet_line.setDestinationValue(supplier)\n + if AUTO_UPDATE == True:\n + pay_sheet_line.setDestinationValue(supplier)\n + print "<font color=\'#f90\'>destination_value updated.</font><br/>"\n +\n + # Test the destination section\n if supplier != ps_destination_section:\n - print "<a href=\'%s\'>%s [%s]</a> has bad destination_section (%s instead of %s) <br/>" % ( pay_sheet_line.absolute_url()\n + print "<font color=\'#f00\'><a href=\'%s\'>%s [%s]</a> has bad destination_section (%s instead of %s)</font><br/>" % ( pay_sheet_line.absolute_url()\n , pay_sheet_line.getPath()\n , pay_sheet_line.getTitle()\n , repr(ps_destination_section).replace(\'>\', \']\').replace(\'<\', \'[\')\n , repr(supplier).replace(\'>\', \']\').replace(\'<\', \'[\')\n )\n - # pay_sheet_line.setDestinationSectionValue(supplier)\n - elif social_service.getId() != \'labour\':\n - print "<font color=\'#f00\'><a href=\'%s\'>%s [%s]</a> <b>Supplier is None !</b></font><br/>" % ( pay_sheet_line.absolute_url()\n - , pay_sheet_line.getPath()\n - , pay_sheet_line.getTitle()\n - )\n -print "</html>"\n + if AUTO_UPDATE == True:\n + pay_sheet_line.setDestinationSectionValue(supplier)\n + print "<font color=\'#f90\'>destination_section_value updated.</font><br/>"\n +\n + # Test the social service\n + if social_service == None:\n + print "<font color=\'#f00\'>Social service is None on line <a href=\'%s\'>%s [%s]</a>!</font><br/>" % ( pay_sheet_line.absolute_url()\n + , pay_sheet_line.getPath()\n + , pay_sheet_line.getTitle()\n + )\n +\n + else:\n + # Test categories\n + service_variations = social_service.getVariationCategoryList()\n + line_variations = pay_sheet_line.getVariationCategoryList()\n + for variation in line_variations:\n + if variation not in service_variations:\n + print "<font color=\'#f00\'>\'%s\' not available on <a href=\'%s\'>%s</a> social service !</font><br/>" % ( variation\n + , social_service.absolute_url()\n + , social_service.getTitle()\n + )\n +\n + ### Test the validity of Pay Sheet Transaction Line (accounting part of paysheets)\n + for accounting_line in pay_sheet.objectValues(portal_type = [\'Pay Sheet Transaction Line\']):\n + source = accounting_line.getSourceValue()\n + source_path = accounting_line.getSource()\n + dest_sect = accounting_line.getDestinationSectionValue()\n + dest_sect_path = accounting_line.getDestinationSection()\n +\n + if dest_sect_path == \'organisation_module/urssaf\' and \\\n + source_path == \'account_module/dettes_sociales\':\n + expected_source = context.account_module[\'securite_sociale\']\n + print "<font color=\'#f00\'>Source on <a href=\'%s\'>%s</a> must be %s instead of %s</font><br/>" % ( accounting_line.absolute_url()\n + , accounting_line.getPath()\n + , expected_source.getPath()\n + , source_path\n + )\n + if AUTO_UPDATE == True:\n + accounting_line.setSourceValue(expected_source)\n +\n + if dest_sect_path == \'organisation_module/henner\' and \\\n + source_path == \'account_module/charges_securite_sociale\':\n + expected_source = context.account_module[\'mutuelle\']\n + print "<font color=\'#f00\'>Source on <a href=\'%s\'>%s</a> must be %s instead of %s</font><br/>" % ( accounting_line.absolute_url()\n + , accounting_line.getPath()\n + , expected_source.getPath()\n + , source_path\n + )\n + if AUTO_UPDATE == True:\n + accounting_line.setSourceValue(expected_source)\n +\n +\n +print "</body></html>"\n return printed\n @@ -158,10 +251,15 @@ return printed\n <tuple> <string>_print_</string> <string>_print</string> + <string>YEAR</string> + <string>STATE_LIST</string> + <string>False</string> + <string>AUTO_UPDATE</string> <string>_getiter_</string> <string>_getattr_</string> -<string>context</string> + <string>context</string> <string>pay_sheet</string> + <string>ps_state</string> <string>_getitem_</string> <string>str</string> <string>pay_sheet_line</string> @@ -171,6 +269,16 @@ return printed\n <string>ps_destination_section</string> <string>None</string> <string>repr</string> + <string>True</string> + <string>service_variations</string> + <string>line_variations</string> + <string>variation</string> + <string>accounting_line</string> + <string>source</string> + <string>source_path</string> + <string>dest_sect</string> + <string>dest_sect_path</string> + <string>expected_source</string> </tuple> </value> </item> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_validateAllConfirmedPaySheetTransaction.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_validateAllConfirmedPaySheetTransaction.xml new file mode 100644 index 0000000000000000000000000000000000000000..1b9c06cfaae50c0f9c0ed55e60c34ddf51e3bcc3 --- /dev/null +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingModule_validateAllConfirmedPaySheetTransaction.xml @@ -0,0 +1,203 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">O/INCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +YEAR = \'2005\'\n +STATE_LIST = [ \'confirmed\'\n + #, \'cancelled\'\n + #, \'delivered\'\n + #, \'planned\'\n + , \'stopped\'\n + #, \'draft\'\n + ]\n +AUTO = False\n +\n +print """<html>\n +<head>\n +<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n +<style>\n +body, h1, h2 {\n + font-size: 70%;\n +}\n +</style>\n +</head>\n +<body>\n +<h1>Validate all Pay Sheet Transactions</h1>"""\n +\n +\n +workflow_tool = context.portal_workflow\n +\n +for pay_sheet in context.accounting_module.objectValues(portal_type = [\'Pay Sheet Transaction\']):\n + if pay_sheet.getSimulationState() in STATE_LIST:\n + if str(pay_sheet.getStartDate()).split(\'/\')[0] == YEAR:\n + print "<br/>"\n + print "<h2><a href=\'%s\'>%s - %s</a> [%s]</h2>" % ( pay_sheet.absolute_url()\n + , pay_sheet.getTitle()\n + , pay_sheet.getStartDate()\n + , pay_sheet.getSimulationState()\n + )\n + if AUTO == True:\n + workflow_tool.doActionFor(pay_sheet, \'stop_action\', wf_id=\'accounting_workflow\')\n + if pay_sheet.getSimulationState() == \'stopped\':\n + print "<font color=\'#0f0\'>Pay Sheet validated.</font><br/>"\n + else:\n + print "<font color=\'#f00\'>Pay Sheet not validated !</font><br/>"\n +\n +print "</body></html>"\n +return printed\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/nexedi/portal_skins/erp5_payroll/AccountingModule_validateAllConfirmedPaySheetTransaction</string> </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_print_</string> + <string>_print</string> + <string>YEAR</string> + <string>STATE_LIST</string> + <string>False</string> + <string>AUTO</string> + <string>_getattr_</string> + <string>context</string> + <string>workflow_tool</string> + <string>_getiter_</string> + <string>pay_sheet</string> + <string>_getitem_</string> + <string>str</string> + <string>True</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>AccountingModule_validateAllConfirmedPaySheetTransaction</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_buildAccountingLine.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_buildAccountingLine.xml new file mode 100644 index 0000000000000000000000000000000000000000..4f3368d39f16174dbef3b3fac394382b34329fa0 --- /dev/null +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_buildAccountingLine.xml @@ -0,0 +1,204 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">O/INCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +PRIORITY = 1\n +\n +pay_sheet = context\n +\n +# Delete Accounting Lines\n +for accounting_line in pay_sheet.objectValues(portal_type = [\'Pay Sheet Transaction Line\']):\n + pay_sheet.deleteContent(accounting_line.getId())\n +\n +applied_rule = context.getCausalityRelatedValue()\n +# Delete the applied rule if present\n +if applied_rule != None:\n + simulation_tool = context.portal_simulation\n + ar_id = applied_rule.getId()\n + ar_url = applied_rule.absolute_url()\n + simulation_tool.deleteObject(ar_id)\n +\n + for applied_rule in simulation_tool.objectValues():\n + if ar_id == applied_rule.getId():\n + return "Applied rule <a href=\'%s\'>%s</a> of <a href=\'\'>%s</a> paysheet not deleted" % (ar_url, ar_id, pay_sheet.absolute_url(), pay_sheet.getPath())\n +\n +previous_tag = pay_sheet.getPath() + \'_firstUpdateAppliedRule\'\n +expand_tag = pay_sheet.getPath() + \'_expand\'\n +\n +activate_kw = { \'tag\' : expand_tag\n + , \'priority\': PRIORITY\n + }\n +\n +pay_sheet.activate( tag = expand_tag\n + , after_tag = previous_tag\n + , priority = PRIORITY\n + ).updateAppliedRule( rule_id = \'default_invoice_rule\'\n + , activate_kw = activate_kw\n + )\n +\n +builder = pay_sheet.portal_deliveries.pay_sheet_transaction_builder\n +builder.activate( activity = \'SQLQueue\'\n + , after_tag = expand_tag\n + , priority = PRIORITY\n + ).build( explanation_uid = pay_sheet.getUid()\n + , activate_kw = activate_kw\n + )\n +\n +return None\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/nexedi/portal_skins/erp5_payroll/PaySheetTransaction_buildAccountingLine</string> </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>PRIORITY</string> +<string>context</string> + <string>pay_sheet</string> + <string>_getiter_</string> + <string>_getattr_</string> + <string>accounting_line</string> + <string>applied_rule</string> + <string>None</string> + <string>simulation_tool</string> + <string>ar_id</string> + <string>ar_url</string> + <string>previous_tag</string> + <string>expand_tag</string> + <string>activate_kw</string> + <string>builder</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PaySheetTransaction_buildAccountingLine</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList.xml index 6bd82668641128c5d9fa98ad90f2bc554d426df8..3a5dfd6990446dd9cb55a4d0b72c73e4be5ed9db 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList.xml @@ -45,6 +45,12 @@ <tuple/> </value> </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>action</string> </key> <value> <string>Base_edit</string> </value> @@ -139,7 +145,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Pay Sheet Transaction</string> </value> + <value> <string>Sale Invoice Transaction</string> </value> </item> <item> <key> <string>unicode_mode</string> </key> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox.xml index 9f20b11b4dde446f8ee8492b18f2965081420a65..3b6fa2c1bd6260d713a01f10155294225c508688 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox.xml @@ -524,12 +524,7 @@ <item> <key> <string>sort</string> </key> <value> - <list> - <tuple> - <string>id</string> - <string>id</string> - </tuple> - </list> + <list/> </value> </item> <item> @@ -541,12 +536,23 @@ <item> <key> <string>stat_columns</string> </key> <value> - <list/> + <list> + <tuple> + <string>source_debit</string> + <string>AccountingTransactionLine_statSourceDebit</string> + </tuple> + <tuple> + <string>source_credit</string> + <string>AccountingTransactionLine_statSourceCredit</string> + </tuple> + </list> </value> </item> <item> <key> <string>stat_method</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> </item> <item> <key> <string>title</string> </key> @@ -599,4 +605,23 @@ </dictionary> </pickle> </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>AccountingTransaction_searchInvoiceTransactionLines</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source.xml index f16e7e33971154762ea23b9ebeb4bdc7edf00c7a..6f3302cb3e1d939920beaae51a7cc03ecd582221 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source.xml @@ -281,7 +281,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python: cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_credit.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_credit.xml index 7d4f3d07dbe7ac963ee08db30822e9e46c730f6d..76bdcdba5715071dfdb0f5f7aac67162330869d0 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_credit.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_credit.xml @@ -203,7 +203,7 @@ </item> <item> <key> <string>extra</string> </key> - <value> <string>align=\'right\'</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>hidden</string> </key> diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_debit.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_debit.xml index f5937c86073fe57174b3cd39cdd7aac1a02d6149..db7f97f0e1e6e190ff25cf4421cef15c7439a481 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_debit.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_viewAccountingLineList/listbox_source_debit.xml @@ -203,7 +203,7 @@ </item> <item> <key> <string>extra</string> </key> - <value> <string>align=\'right\'</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>hidden</string> </key> diff --git a/bt5/erp5_payroll/bt/change_log b/bt5/erp5_payroll/bt/change_log index 3bdbeaf406c298327b4dcd74dd8369342d8a5951..75555e21adf9bfccbbb036615ed58fe424d5e12c 100644 --- a/bt5/erp5_payroll/bt/change_log +++ b/bt5/erp5_payroll/bt/change_log @@ -1,3 +1,7 @@ +2006-04-05 Kevin +* Add some python scripts that are helpfull when debugging payroll. +* Update PaySheetTransaction_viewAccountingLineList. + 2006-02-27 Kevin * Update AccountingTransactionModule_viewAnnualSalaryReport to show more paysheet conflicts by default. * Add AccountingModule_checkPaySheetConsistency, a usefull, but dirty, script to track bad destination and destination_section on Pay Sheet Lines. diff --git a/bt5/erp5_payroll/bt/template_action_path_list b/bt5/erp5_payroll/bt/template_action_path_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4e71d567aa44483041022f239fd10248d05aa802 100644 --- a/bt5/erp5_payroll/bt/template_action_path_list +++ b/bt5/erp5_payroll/bt/template_action_path_list @@ -0,0 +1,20 @@ +Pay Sheet Cell | history +Pay Sheet Cell | metadata +Pay Sheet Cell | print_pdf +Pay Sheet Cell | view +Pay Sheet Line | history +Pay Sheet Line | list +Pay Sheet Line | metadata +Pay Sheet Line | print_pdf +Pay Sheet Line | quantity +Pay Sheet Line | view +Pay Sheet Transaction Line | history +Pay Sheet Transaction Line | metadata +Pay Sheet Transaction Line | print_pdf +Pay Sheet Transaction Line | view +Pay Sheet Transaction | accounting_lines +Pay Sheet Transaction | calcul +Pay Sheet Transaction | history +Pay Sheet Transaction | metadata +Pay Sheet Transaction | print +Pay Sheet Transaction | view \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_payroll/bt/template_portal_type_allowed_content_type_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c4238c3a27def0697675ba4f6025c7a51cbb8848 100644 --- a/bt5/erp5_payroll/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_payroll/bt/template_portal_type_allowed_content_type_list @@ -0,0 +1,3 @@ +Pay Sheet Line | Pay Sheet Cell +Pay Sheet Transaction | Pay Sheet Line +Pay Sheet Transaction | Pay Sheet Transaction Line \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_portal_type_base_category_list b/bt5/erp5_payroll/bt/template_portal_type_base_category_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a87ad113750ac96b7ce9fe7013bfde21b248374c 100644 --- a/bt5/erp5_payroll/bt/template_portal_type_base_category_list +++ b/bt5/erp5_payroll/bt/template_portal_type_base_category_list @@ -0,0 +1,5 @@ +Pay Sheet Cell | product_line +Pay Sheet Cell | salary_range +Pay Sheet Cell | tax_category +Pay Sheet Line | salary_range +Pay Sheet Line | tax_category \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list b/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4b983f5fade5ceccb253f2fe14b38be78c9a01b8 100644 --- a/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list @@ -0,0 +1,9 @@ +Pay Sheet Cell | delivery_edit_workflow +Pay Sheet Cell | edit_workflow +Pay Sheet Line | delivery_edit_workflow +Pay Sheet Line | edit_workflow +Pay Sheet Transaction Line | delivery_edit_workflow +Pay Sheet Transaction Line | edit_workflow +Pay Sheet Transaction | accounting_workflow +Pay Sheet Transaction | delivery_edit_workflow +Pay Sheet Transaction | edit_workflow \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_update_business_template_workflow b/bt5/erp5_payroll/bt/template_update_business_template_workflow new file mode 100644 index 0000000000000000000000000000000000000000..c227083464fb9af8955c90d2924774ee50abb547 --- /dev/null +++ b/bt5/erp5_payroll/bt/template_update_business_template_workflow @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_update_tool b/bt5/erp5_payroll/bt/template_update_tool new file mode 100644 index 0000000000000000000000000000000000000000..c227083464fb9af8955c90d2924774ee50abb547 --- /dev/null +++ b/bt5/erp5_payroll/bt/template_update_tool @@ -0,0 +1 @@ +0 \ No newline at end of file