diff --git a/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/print.xml b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/print.xml new file mode 100644 index 0000000000000000000000000000000000000000..4d2d47de1c0a6fc1f0f2d0e9368492c31d0daf6d --- /dev/null +++ b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/print.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>icon</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </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_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/view.xml b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..d83247525febccbf7f87200ba9f601dfb9d746d0 --- /dev/null +++ b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line/view.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>icon</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>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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/AccountTransferLine_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/print.xml b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/print.xml new file mode 100644 index 0000000000000000000000000000000000000000..4d2d47de1c0a6fc1f0f2d0e9368492c31d0daf6d --- /dev/null +++ b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/print.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>icon</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </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_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/view.xml b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..d83247525febccbf7f87200ba9f601dfb9d746d0 --- /dev/null +++ b/bt5/erp5_banking_check/ActionTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line/view.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>icon</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>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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/AccountTransferLine_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 626bf2c5c62a2636915e10db59607f6f46b9b35d..8f19bc747cfae2f86aef243ab72f0e20cc714907 100644 --- a/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -1,7 +1,8 @@ <allowed_content_type_list> <portal_type id="Check Deposit"> - <item>Banking Operation Line</item> <item>Check Operation Line</item> + <item>Outgoing Check Deposit Line</item> + <item>Incoming Check Deposit Line</item> </portal_type> <portal_type id="Check Deposit Module"> <item>Check Deposit</item> diff --git a/bt5/erp5_banking_check/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_banking_check/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml index 19f94ee53b91d7d62c987fa2a280b7edfa10ef42..eaaca68b5806141d5193b6b4766aeb860a898a0f 100644 --- a/bt5/erp5_banking_check/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml +++ b/bt5/erp5_banking_check/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml @@ -1,6 +1,7 @@ <hidden_content_type_list> <portal_type id="Check Deposit"> - <item>Banking Operation Line</item> + <item>Outgoing Check Deposit Line</item> + <item>Incoming Check Deposit Line</item> </portal_type> <portal_type id="Check Payment"> <item>Banking Operation Line</item> diff --git a/bt5/erp5_banking_check/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_banking_check/PortalTypePropertySheetTemplateItem/property_sheet_list.xml index 5eb43b5dce63cd635449fd85649cfe6eb1032570..73b21c5b2cfd19e9245862d461e834c52dd4e9c4 100644 --- a/bt5/erp5_banking_check/PortalTypePropertySheetTemplateItem/property_sheet_list.xml +++ b/bt5/erp5_banking_check/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -1,38 +1,50 @@ <property_sheet_list> <portal_type id="Check Deposit"> - <item>Price</item> <item>Amount</item> + <item>Price</item> </portal_type> <portal_type id="Check Payment"> - <item>Price</item> <item>ItemAggregation</item> + <item>Price</item> </portal_type> <portal_type id="Checkbook Delivery"> - <item>Amount</item> <item>Price</item> + <item>Amount</item> </portal_type> <portal_type id="Checkbook Reception"> <item>CheckbookReception</item> </portal_type> <portal_type id="Checkbook Usual Cash Transfer"> - <item>Price</item> <item>Amount</item> + <item>Price</item> </portal_type> <portal_type id="Checkbook Vault Transfer"> <item>Amount</item> <item>Price</item> </portal_type> + <portal_type id="Incoming Check Deposit Line"> + <item>Arrow</item> + <item>Amount</item> + <item>Task</item> + <item>Price</item> + </portal_type> + <portal_type id="Outgoing Check Deposit Line"> + <item>Amount</item> + <item>Price</item> + <item>Task</item> + <item>Arrow</item> + </portal_type> <portal_type id="Stop Payment"> - <item>StopPayment</item> <item>Price</item> + <item>StopPayment</item> <item>Amount</item> </portal_type> <portal_type id="Traveler Check Purchase"> - <item>Price</item> <item>Amount</item> + <item>Price</item> </portal_type> <portal_type id="Traveler Check Sale"> - <item>Amount</item> <item>Price</item> + <item>Amount</item> </portal_type> </property_sheet_list> \ No newline at end of file diff --git a/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line.xml b/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line.xml new file mode 100644 index 0000000000000000000000000000000000000000..91e97d4684657285e7e29cf84c1ef7ba0b0f7192 --- /dev/null +++ b/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Incoming%20Check%20Deposit%20Line.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>organisation_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>BAOBAB Check Deposit Line</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>An line of a banking operation for position management.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addBankingOperationLine</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>accounting_movement</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Incoming Check Deposit Line</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string>CheckDepositLine_init</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line.xml b/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line.xml new file mode 100644 index 0000000000000000000000000000000000000000..ca217a62c379fd9dd53f7a467d18cdc1aa262e29 --- /dev/null +++ b/bt5/erp5_banking_check/PortalTypeTemplateItem/portal_types/Outgoing%20Check%20Deposit%20Line.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>organisation_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>BAOBAB Check Deposit Line</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>An line of a banking operation for position management.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addBankingOperationLine</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>accounting_movement</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Outgoing Check Deposit Line</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string>CheckDepositLine_init</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDepositLine_init.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDepositLine_init.xml new file mode 100644 index 0000000000000000000000000000000000000000..f7e8baa09fe9e6f9ab759119309a1a24422ee65e --- /dev/null +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDepositLine_init.xml @@ -0,0 +1,151 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </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>context.edit(quantity_unit = \'unit\',\n + source = \'account_module/bank_account\',\n + destination = \'account_module/bank_account\',\n + resource = \'currency_module/%s\' % context.Baobab_getPortalReferenceCurrencyID(),)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>*args, **kw</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>args</string> + <string>kw</string> + <string>_getattr_</string> +<string>context</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>CheckDepositLine_init</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/IncomingCheckDepositLine_getBaobabSourcePayment.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/IncomingCheckDepositLine_getBaobabSourcePayment.xml new file mode 100644 index 0000000000000000000000000000000000000000..dccecc30ddd4312b406965678dfb53c82dfda9e9 --- /dev/null +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/IncomingCheckDepositLine_getBaobabSourcePayment.xml @@ -0,0 +1,147 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </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>return None\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>*args, **kw</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>args</string> + <string>kw</string> + <string>None</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>IncomingCheckDepositLine_getBaobabSourcePayment</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/OutgoingCheckDepositLine_getBaobabDestinationPayment.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/OutgoingCheckDepositLine_getBaobabDestinationPayment.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e679ae0b402f8a2e7c47dfc35a3683d5bb5237f --- /dev/null +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/OutgoingCheckDepositLine_getBaobabDestinationPayment.xml @@ -0,0 +1,147 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </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>return None\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>*args, **kw</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>args</string> + <string>kw</string> + <string>None</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>OutgoingCheckDepositLine_getBaobabDestinationPayment</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/createCheckDepositLine.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/createCheckDepositLine.xml new file mode 100644 index 0000000000000000000000000000000000000000..4aec0847904b4a5b67210597e7a08ec5a3d6e336 --- /dev/null +++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/createCheckDepositLine.xml @@ -0,0 +1,191 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </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>transaction = state_change[\'object\']\n +\n +# for outgoing line, must recreate them all because their number can have change\n +out_line_list = transaction.contentValues(filter = {\'portal_type\' : \'Outgoing Check Deposit Line\'})\n +if len(out_line_list) != 0:\n + id_list = [x.getId() for x in out_line_list]\n + transaction.manage_delObjects(id_list)\n + \n +# one for each source/check operation line\n +for check_operation_line in transaction.contentValues(filter = {\'portal_type\' : \'Check Operation Line\'}):\n + source_bank_account = check_operation_line.getSourcePaymentValue()\n + # immediate reindex is required to make this operation atomic.\n + transaction.newContent(portal_type = \'Outgoing Check Deposit Line\',\n + source_credit = check_operation_line.getPrice(),\n + source_payment_value = source_bank_account,)\n + # this prevents multiple transactions from being committed at the same time for this bank account.\n + source_bank_account.serialize()\n +\n +# for the incoming line, create it if needed and update it\n +in_line_list = transaction.contentValues(filter = {\'portal_type\' : \'Incoming Check Deposit Line\'})\n +if len(in_line_list) == 0:\n + transaction.newContent(portal_type = \'Incoming Check Deposit Line\',)\n + in_line_list = transaction.contentValues(filter = {\'portal_type\' : \'Incoming Check Deposit Line\'})\n +\n +line = in_line_list[0]\n +line.setSourceCredit(transaction.getSourceTotalAssetPrice())\n +line.setDestinationPaymentValue(transaction.getDestinationPaymentValue())\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple/> + </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>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getitem_</string> + <string>transaction</string> + <string>_getattr_</string> + <string>out_line_list</string> + <string>len</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>x</string> + <string>id_list</string> + <string>check_operation_line</string> + <string>source_bank_account</string> + <string>in_line_list</string> + <string>line</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>createCheckDepositLine</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/updateBankingOperation.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/updateBankingOperation.xml index 1333e32f2b18856ad762b56b3b0d003283f4c0e8..937a8a72672b7f53fa88a53af9facc95427f1986 100644 --- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/updateBankingOperation.xml +++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/updateBankingOperation.xml @@ -71,6 +71,7 @@ banking_operation_line_list = transaction.contentValues(filter = {\'portal_type\ if len(banking_operation_line_list) != 0:\n id_list = [x.getId() for x in banking_operation_line_list]\n transaction.manage_delObjects(id_list)\n +# one for each source\n for check_operation_line in transaction.contentValues(filter = {\'portal_type\' : \'Check Operation Line\'}):\n source_bank_account = check_operation_line.getSourcePaymentValue()\n # immediate reindex is required to make this operation atomic.\n diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml index ef05121562c83b8b2fd7b7a5b6fd4ff3f31f76aa..a1d806488a23f08fddc9331b7c896674fde28096 100644 --- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml +++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml @@ -138,22 +138,6 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' start_date=check_operation_line.getIssueDate(),\n stop_date=check_operation_line.getStopDate(),\n check_nb=check_operation_line.getAggregateFreeText())\n -\n -# \n -# if \'compte\' in check_operation_line.getAggregateResourceTitle():\n -# interval = getIntervalBetweenDates(check_operation_line.getStartDate(), check_operation_line.getStopDate())\n -# if interval[\'year\'] >= 3:\n -# if interval[\'month\'] > 0 or interval["day"] > 0:\n -# msg = Message(domain=\'ui\', message="Check $check is more than 3 years old.",\n -# mapping={"check" : check_operation_line.getAggregateFreeText()})\n -# raise ValidationFailed, (msg,)\n -# elif \'virement\' in check_operation_line.getAggregateResourceTitle():\n -# interval = getIntervalBetweenDates(check_operation_line.getStartDate(), check_operation_line.getStopDate())\n -# if interval[\'month\'] >= 3:\n -# if interval["day"] > 0:\n -# msg = Message(domain=\'ui\', message="Check $check is more than 3 month old.",\n -# mapping={"check" : check_operation_line.getAggregateFreeText()})\n -# raise ValidationFailed, (msg,)\n \n \n # Test if the account balance is sufficient.\n @@ -176,7 +160,7 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' check_operation_line.edit(aggregate=check.getRelativeUrl())\n \n if transaction.getSimulationState() == "draft":\n - context.updateBankingOperation(state_change)\n + context.createCheckDepositLine(state_change)\n ]]></string> </value> diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/transitions/accept_action.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/transitions/accept_action.xml index 4e846f6c5eb6a0abfb9af024476e06d9f802f97f..1fc19b428c33b516bd3015107a348941b37f20b2 100644 --- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/transitions/accept_action.xml +++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/transitions/accept_action.xml @@ -57,7 +57,7 @@ </item> <item> <key> <string>script_name</string> </key> - <value> <string></string> </value> + <value> <string>createCheckDepositLine</string> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision index 5ca234cb538117d188296311c2d9abaf364c847c..d35d5f782448e98ccbcb1fa8e162c079cc627e52 100644 --- a/bt5/erp5_banking_check/bt/revision +++ b/bt5/erp5_banking_check/bt/revision @@ -1 +1 @@ -345 \ No newline at end of file +347 \ No newline at end of file diff --git a/bt5/erp5_banking_check/bt/template_action_path_list b/bt5/erp5_banking_check/bt/template_action_path_list index 0b2fa3550c236da281204b6de01aa12f26119b39..1dcfd74b32cb7d76f155f4b3628139effdb1ec8c 100644 --- a/bt5/erp5_banking_check/bt/template_action_path_list +++ b/bt5/erp5_banking_check/bt/template_action_path_list @@ -30,6 +30,10 @@ Checkbook Vault Transfer Module | view Checkbook Vault Transfer | fastinput Checkbook Vault Transfer | print_pdf Checkbook Vault Transfer | view +Incoming Check Deposit Line | print +Incoming Check Deposit Line | view +Outgoing Check Deposit Line | print +Outgoing Check Deposit Line | view Stop Payment Module | print Stop Payment Module | view Stop Payment | accounting_view diff --git a/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list index 0c08d028e63ade908f85317b20c40b79481e5f2e..f962ef9627aa585633c75cca64723fe82c75e566 100644 --- a/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list @@ -1,6 +1,7 @@ Check Deposit Module | Check Deposit -Check Deposit | Banking Operation Line Check Deposit | Check Operation Line +Check Deposit | Incoming Check Deposit Line +Check Deposit | Outgoing Check Deposit Line Check Payment Module | Check Payment Check Payment | Banking Operation Line Check Payment | Cash Delivery Line diff --git a/bt5/erp5_banking_check/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_banking_check/bt/template_portal_type_hidden_content_type_list index 877ea56ad4fd155015edf15353953786a1b2d7e1..3d5eae233a3b4c0cfea5660022b9ba40243dfd55 100644 --- a/bt5/erp5_banking_check/bt/template_portal_type_hidden_content_type_list +++ b/bt5/erp5_banking_check/bt/template_portal_type_hidden_content_type_list @@ -1,4 +1,5 @@ -Check Deposit | Banking Operation Line +Check Deposit | Incoming Check Deposit Line +Check Deposit | Outgoing Check Deposit Line Check Payment | Banking Operation Line Check Payment | Cash Delivery Line Checkbook Delivery | Checkbook Delivery Line diff --git a/bt5/erp5_banking_check/bt/template_portal_type_id_list b/bt5/erp5_banking_check/bt/template_portal_type_id_list index f2ad5d223df6eecd8d2b80e1fb5fe043a1661fb7..8816a2cb0fd75b48b0f29ea1378529a9dfcf2aa5 100644 --- a/bt5/erp5_banking_check/bt/template_portal_type_id_list +++ b/bt5/erp5_banking_check/bt/template_portal_type_id_list @@ -12,6 +12,8 @@ Checkbook Usual Cash Transfer Checkbook Usual Cash Transfer Module Checkbook Vault Transfer Checkbook Vault Transfer Module +Incoming Check Deposit Line +Outgoing Check Deposit Line Stop Payment Stop Payment Module Traveler Check Purchase diff --git a/bt5/erp5_banking_check/bt/template_portal_type_property_sheet_list b/bt5/erp5_banking_check/bt/template_portal_type_property_sheet_list index 39d9026a32223c7b2d5e522ab94218b94161e735..ebe7f6e34b0d69094d7192401279882823290a4f 100644 --- a/bt5/erp5_banking_check/bt/template_portal_type_property_sheet_list +++ b/bt5/erp5_banking_check/bt/template_portal_type_property_sheet_list @@ -9,6 +9,14 @@ Checkbook Usual Cash Transfer | Amount Checkbook Usual Cash Transfer | Price Checkbook Vault Transfer | Amount Checkbook Vault Transfer | Price +Incoming Check Deposit Line | Amount +Incoming Check Deposit Line | Arrow +Incoming Check Deposit Line | Price +Incoming Check Deposit Line | Task +Outgoing Check Deposit Line | Amount +Outgoing Check Deposit Line | Arrow +Outgoing Check Deposit Line | Price +Outgoing Check Deposit Line | Task Stop Payment | Amount Stop Payment | Price Stop Payment | StopPayment