Commit 32f39165 authored by Sebastien Robin's avatar Sebastien Robin

added monetary destruction line and cells in order to implement what is called "dematerialization"

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 13868852
<?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>metadata</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</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>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>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -16,46 +16,69 @@ ...@@ -16,46 +16,69 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>action</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>category</string> </key>
<value> <value> <string>object_view</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>default_value</string> </key> <key> <string>condition</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>If set to yes then assigned to worklist</string> </value> <value> <string></string> </value>
</item>
<item>
<key> <string>for_catalog</string> </key>
<value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>for_status</string> </key> <key> <string>icon</string> </key>
<value> <int>1</int> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>simulation_assigned</string> </value> <value> <string>view</string> </value>
</item> </item>
<item> <item>
<key> <string>info_guard</string> </key> <key> <string>permissions</string> </key>
<value> <value>
<none/> <tuple>
<string>View</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>update_always</string> </key> <key> <string>priority</string> </key>
<value> <int>0</int> </value> <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>
<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}/DeliveryCell_view</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?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>metadata</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</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>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>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -16,46 +16,69 @@ ...@@ -16,46 +16,69 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>action</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>category</string> </key>
<value> <value> <string>object_print</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>default_value</string> </key> <key> <string>condition</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>If set to yes then assigned to worklist</string> </value> <value> <string></string> </value>
</item>
<item>
<key> <string>for_catalog</string> </key>
<value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>for_status</string> </key> <key> <string>icon</string> </key>
<value> <int>1</int> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>simulation_assigned</string> </value> <value> <string>print</string> </value>
</item> </item>
<item> <item>
<key> <string>info_guard</string> </key> <key> <string>permissions</string> </key>
<value> <value>
<none/> <tuple>
<string>View</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>update_always</string> </key> <key> <string>priority</string> </key>
<value> <int>0</int> </value> <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}/Base_printPdf</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?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>
<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}/CashDeliveryLine_view</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -107,7 +107,10 @@ ...@@ -107,7 +107,10 @@
<item>Internal Money Deposit</item> <item>Internal Money Deposit</item>
</portal_type> </portal_type>
<portal_type id="Monetary Destruction"> <portal_type id="Monetary Destruction">
<item>Cash Delivery Line</item> <item>Monetary Destruction Line</item>
</portal_type>
<portal_type id="Monetary Destruction Line">
<item>Monetary Destruction Cell</item>
</portal_type> </portal_type>
<portal_type id="Monetary Destruction Module"> <portal_type id="Monetary Destruction Module">
<item>Monetary Destruction</item> <item>Monetary Destruction</item>
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
<portal_type id="Internal Money Deposit"> <portal_type id="Internal Money Deposit">
<item>external_software</item> <item>external_software</item>
</portal_type> </portal_type>
<portal_type id="Monetary Destruction Cell">
<item>variation</item>
</portal_type>
<portal_type id="Monetary Recall Cell"> <portal_type id="Monetary Recall Cell">
<item>variation</item> <item>variation</item>
</portal_type> </portal_type>
......
...@@ -69,7 +69,10 @@ ...@@ -69,7 +69,10 @@
<item>Banking Operation Line</item> <item>Banking Operation Line</item>
</portal_type> </portal_type>
<portal_type id="Monetary Destruction"> <portal_type id="Monetary Destruction">
<item>Cash Delivery Line</item> <item>Monetary Destruction Line</item>
</portal_type>
<portal_type id="Monetary Destruction Line">
<item>Monetary Destruction Cell</item>
</portal_type> </portal_type>
<portal_type id="Monetary Issue"> <portal_type id="Monetary Issue">
<item>Monetary Issue Container</item> <item>Monetary Issue Container</item>
......
...@@ -82,6 +82,12 @@ ...@@ -82,6 +82,12 @@
<item>Price</item> <item>Price</item>
<item>Task</item> <item>Task</item>
</portal_type> </portal_type>
<portal_type id="Monetary Destruction Cell">
<item>Cash Delivery Line</item>
</portal_type>
<portal_type id="Monetary Destruction Line">
<item>Cash Delivery Line</item>
</portal_type>
<portal_type id="Monetary Issue"> <portal_type id="Monetary Issue">
<item>Price</item> <item>Price</item>
<item>Amount</item> <item>Amount</item>
......
<?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>order_line_icon.gif</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5Banking Cash Delivery Cell</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Une ligne tarifaire.</string> </value>
</item>
<item>
<key> <string>factory</string> </key>
<value> <string>addCashDeliveryCell</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>delivery_movement</string>
<string>order_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>Monetary Destruction Cell</string> </value>
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></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>
<?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>document.gif</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5Banking Cash Delivery Line</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string> A DeliveryLine object allows to implement lines in\n
Deliveries (packing list, order, invoice, etc.)\n
\n
It may include a price (for insurance, for customs, for invoices,\n
for orders)\n
</string> </value>
</item>
<item>
<key> <string>factory</string> </key>
<value> <string>addCashDeliveryLine</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>delivery_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>Monetary Destruction Line</string> </value>
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></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>
...@@ -103,6 +103,10 @@ ...@@ -103,6 +103,10 @@
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>permission</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>property_sheet_list</string> </key> <key> <string>property_sheet_list</string> </key>
<value> <value>
......
<?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>variation = context.getVariationText()\n
result = variation.replace(\'retired\', \'new_not_emitted\')\n
return result\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, **kwd</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>kwd</string>
<string>_getattr_</string>
<string>context</string>
<string>variation</string>
<string>result</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>MonetaryDestructionCell_getBaobabDestinationVariationText</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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># By default, the destination of a monetary destruction must\n
# be None in order to destroy ressources\n
destination = None\n
\n
if context.getParentValue().isDematerialization() \\\n
and context.getSource() is not None \\\n
and context.getSourceSection() is not None:\n
# We must in this case set the destination to a particular vault\n
site = context.Baobab_getVaultSite(context.getSource())\n
site_relative_url = site.getRelativeUrl()\n
section_id = context.getSourceSectionId()\n
destination = "%s/%s/%s" % (site_relative_url,\n
"caveau/serre/encaisse_des_billets_neufs_non_emis_en_transit_allant_a",\n
section_id)\n
return destination\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>
<string>destination</string>
<string>_getattr_</string>
<string>context</string>
<string>site</string>
<string>site_relative_url</string>
<string>section_id</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>MonetaryDestructionLine_getBaobabDestination</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
<string>my_source</string> <string>my_source</string>
<string>my_source_section</string> <string>my_source_section</string>
<string>my_source_total_asset_price</string> <string>my_source_total_asset_price</string>
<string>my_dematerialization</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -448,17 +448,21 @@ ...@@ -448,17 +448,21 @@
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>Cash Delivery Line</string> <string>Monetary Destruction Line</string>
<string>Cash Delivery Line</string> <string>Monetary Destruction Line</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Cash Delivery Cell</string> <string>Monetary Destruction Cell</string>
<string>Cash Delivery Cell</string> <string>Monetary Destruction Cell</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -489,7 +493,7 @@ ...@@ -489,7 +493,7 @@
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string>monetary_destruction_selection</string> </value> <value> <string>monetary_destruction_lin_eselection</string> </value>
</item> </item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
...@@ -532,11 +536,8 @@ ...@@ -532,11 +536,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Method" module="Products.Formulator.MethodField"/>
<string>Products.Formulator.MethodField</string> <tuple/>
<string>Method</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="CheckBoxField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_dematerialization</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Is Dematerialization</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -98,7 +98,7 @@ else:\n ...@@ -98,7 +98,7 @@ else:\n
variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
\n \n
#, \'emission_letter_list\' : emission_letter A REMETTRE APRES LES TESTS\n #, \'emission_letter_list\' : emission_letter A REMETTRE APRES LES TESTS\n
cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n cash_detail_dict = {\'line_portal_type\' : \'Monetary Destruction Line\'\n
, \'operation_currency\' : currency\n , \'operation_currency\' : currency\n
, \'cash_status_list\' : cash_status\n , \'cash_status_list\' : cash_status\n
, \'emission_letter_list\' : emission_letter\n , \'emission_letter_list\' : emission_letter\n
......
...@@ -63,11 +63,8 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset ...@@ -63,11 +63,8 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Guard" module="Products.DCWorkflow.Guard"/>
<string>Products.DCWorkflow.Guard</string> <tuple/>
<string>Guard</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -87,17 +84,14 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset ...@@ -87,17 +84,14 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PersistentMapping" module="Persistence.mapping"/>
<string>Persistence</string> <tuple/>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_container</string> </key> <key> <string>data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item> <item>
...@@ -116,14 +110,6 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset ...@@ -116,14 +110,6 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash To Currency Sale&reset
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>simulation_assigned</string> </key>
<value>
<tuple>
<string>Cash To Currency Sale</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>simulation_state</string> </key> <key> <string>simulation_state</string> </key>
<value> <value>
......
...@@ -73,7 +73,7 @@ from Products.ERP5Type.Message import Message\n ...@@ -73,7 +73,7 @@ from Products.ERP5Type.Message import Message\n
transaction = state_change[\'object\']\n transaction = state_change[\'object\']\n
\n \n
vault = transaction.getSource()\n vault = transaction.getSource()\n
resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Cash Delivery Line\')\n resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Monetary Destruction Line\')\n
\n \n
source_object = context.portal_categories.getCategoryValue(vault)\n source_object = context.portal_categories.getCategoryValue(vault)\n
\n \n
...@@ -95,7 +95,7 @@ if \'encaisse_des_externes\' in vault:\n ...@@ -95,7 +95,7 @@ if \'encaisse_des_externes\' in vault:\n
\n \n
# Get price and total_price.\n # Get price and total_price.\n
amount = transaction.getSourceTotalAssetPrice()\n amount = transaction.getSourceTotalAssetPrice()\n
total_price = transaction.getTotalPrice(portal_type=[\'Cash Delivery Line\',\'Cash Delivery Cell\'],fast=0)\n total_price = transaction.getTotalPrice(portal_type=[\'Monetary Destruction Line\',\'Monetary Destruction Cell\'],fast=0)\n
\n \n
if resource == 2:\n if resource == 2:\n
msg = Message(domain="ui", message="No Resource.")\n msg = Message(domain="ui", message="No Resource.")\n
...@@ -106,6 +106,21 @@ elif amount != total_price:\n ...@@ -106,6 +106,21 @@ elif amount != total_price:\n
elif resource <> 0 :\n elif resource <> 0 :\n
msg = Message(domain="ui", message="Insufficient Balance.")\n msg = Message(domain="ui", message="Insufficient Balance.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n
# In case of dematerialization, we must have only coins\n
if transaction.isDematerialization():\n
for line in transaction.objectValues(portal_type=\'Cash Delivery Line\'):\n
if line.getResourceValue().getPortalType() != \'Coin\':\n
msg = Message(domain="ui", message="Sorry, dematerializatio is possible only with coins.")\n
raise ValidationFailed, (msg,)\n
# Also we must make sure that the source_section is defined\n
source_section = transation.getSourceSection()\n
if source_section is None:\n
msg = Message(domain="ui", message="Sorry, dematerializatio is possible only if the external agency is defined.")\n
raise ValidationFailed, (msg,)\n
if not \'encaisse_des_billets_retires_de_la_circulation\' in vault:\n
msg = Message(domain="ui", message="Invalid source.")\n
raise ValidationFailed, (msg,)\n
]]></string> </value> ]]></string> </value>
...@@ -167,6 +182,9 @@ elif resource <> 0 :\n ...@@ -167,6 +182,9 @@ elif resource <> 0 :\n
<string>None</string> <string>None</string>
<string>amount</string> <string>amount</string>
<string>total_price</string> <string>total_price</string>
<string>_getiter_</string>
<string>line</string>
<string>transation</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
444 447
\ No newline at end of file \ No newline at end of file
...@@ -146,6 +146,11 @@ Internal Money Deposit | history ...@@ -146,6 +146,11 @@ Internal Money Deposit | history
Internal Money Deposit | metadata Internal Money Deposit | metadata
Internal Money Deposit | print Internal Money Deposit | print
Internal Money Deposit | view Internal Money Deposit | view
Monetary Destruction Cell | metadata
Monetary Destruction Cell | view
Monetary Destruction Line | metadata
Monetary Destruction Line | print
Monetary Destruction Line | view
Monetary Destruction Module | list_ui Monetary Destruction Module | list_ui
Monetary Destruction Module | sort_on Monetary Destruction Module | sort_on
Monetary Destruction Module | view Monetary Destruction Module | view
......
...@@ -39,8 +39,9 @@ Incoming Mutilated Banknote Line | Cash Delivery Cell ...@@ -39,8 +39,9 @@ Incoming Mutilated Banknote Line | Cash Delivery Cell
Internal Money Deposit Module | Internal Money Deposit Internal Money Deposit Module | Internal Money Deposit
Internal Money Deposit | Banking Operation Line Internal Money Deposit | Banking Operation Line
Internal Money Deposit | Cash Delivery Line Internal Money Deposit | Cash Delivery Line
Monetary Destruction Line | Monetary Destruction Cell
Monetary Destruction Module | Monetary Destruction Monetary Destruction Module | Monetary Destruction
Monetary Destruction | Cash Delivery Line Monetary Destruction | Monetary Destruction Line
Monetary Issue Container | Container Line Monetary Issue Container | Container Line
Monetary Issue Line | Cash Delivery Cell Monetary Issue Line | Cash Delivery Cell
Monetary Issue Module | Monetary Issue Monetary Issue Module | Monetary Issue
......
...@@ -10,6 +10,7 @@ Container Line | emission_letter ...@@ -10,6 +10,7 @@ Container Line | emission_letter
Container Line | variation Container Line | variation
Foreign Cash Reception | currency_exchange_type Foreign Cash Reception | currency_exchange_type
Internal Money Deposit | external_software Internal Money Deposit | external_software
Monetary Destruction Cell | variation
Monetary Recall Cell | variation Monetary Recall Cell | variation
Money Deposit | external_software Money Deposit | external_software
Money Deposit | source_trade Money Deposit | source_trade
......
...@@ -27,7 +27,8 @@ Incoming Cash To Currency Sale Line | Cash Delivery Cell ...@@ -27,7 +27,8 @@ Incoming Cash To Currency Sale Line | Cash Delivery Cell
Incoming Classification Survey Line | Cash Delivery Cell Incoming Classification Survey Line | Cash Delivery Cell
Internal Money Deposit | Banking Operation Line Internal Money Deposit | Banking Operation Line
Internal Money Deposit | Cash Delivery Line Internal Money Deposit | Cash Delivery Line
Monetary Destruction | Cash Delivery Line Monetary Destruction Line | Monetary Destruction Cell
Monetary Destruction | Monetary Destruction Line
Monetary Issue Container | Container Line Monetary Issue Container | Container Line
Monetary Issue | Monetary Issue Container Monetary Issue | Monetary Issue Container
Monetary Issue | Monetary Issue Line Monetary Issue | Monetary Issue Line
......
...@@ -33,6 +33,8 @@ Incoming Mutilated Banknote Line ...@@ -33,6 +33,8 @@ Incoming Mutilated Banknote Line
Internal Money Deposit Internal Money Deposit
Internal Money Deposit Module Internal Money Deposit Module
Monetary Destruction Monetary Destruction
Monetary Destruction Cell
Monetary Destruction Line
Monetary Destruction Module Monetary Destruction Module
Monetary Issue Monetary Issue
Monetary Issue Container Monetary Issue Container
......
...@@ -37,6 +37,8 @@ Internal Money Deposit | Arrow ...@@ -37,6 +37,8 @@ Internal Money Deposit | Arrow
Internal Money Deposit | InternalMoney Internal Money Deposit | InternalMoney
Internal Money Deposit | Price Internal Money Deposit | Price
Internal Money Deposit | Task Internal Money Deposit | Task
Monetary Destruction Cell | Cash Delivery Line
Monetary Destruction Line | Cash Delivery Line
Monetary Destruction | Account Monetary Destruction | Account
Monetary Destruction | Amount Monetary Destruction | Amount
Monetary Destruction | Price Monetary Destruction | Price
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment