Commit 2ac18285 authored by Aurel's avatar Aurel

* commit new modification on cash balance regulation made by Tall

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ffaef8b
...@@ -351,10 +351,6 @@ ...@@ -351,10 +351,6 @@
<string>source_logical_path</string> <string>source_logical_path</string>
<string>Vault</string> <string>Vault</string>
</tuple> </tuple>
<tuple>
<string>price</string>
<string>Amount</string>
</tuple>
<tuple> <tuple>
<string>description</string> <string>description</string>
<string>Description</string> <string>Description</string>
...@@ -412,10 +408,6 @@ ...@@ -412,10 +408,6 @@
<string>delivery.start_date</string> <string>delivery.start_date</string>
<string>start_date</string> <string>start_date</string>
</tuple> </tuple>
<tuple>
<string>price</string>
<string>price</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_price</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>
<item>
<key> <string>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</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>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</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>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</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> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>29</int> </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>end</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>align=right</string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Montant en erreur</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.Integer_toString(int(here.getPrice()))</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.Delivery_getVaultItemList(current_url=here.getSource(), vault_type=(\'site/surface\', \'site/caveau\'))</string> </value> <value> <string>python:here.Delivery_getVaultItemList(current_url=here.getSource(), vault_type=(\'site/surface\', \'site/caveau\'), all=1)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -70,8 +70,7 @@ ...@@ -70,8 +70,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n <value> <string>request = context.REQUEST\n
\n \n
currency = context.Baobab_getPortalReferenceCurrencyID()\n currency = context.getResourceId()\n
\n
vcurrency = context.getResource()\n vcurrency = context.getResource()\n
\n \n
if vcurrency is None :\n if vcurrency is None :\n
...@@ -84,20 +83,22 @@ if vcurrency is None :\n ...@@ -84,20 +83,22 @@ if vcurrency is None :\n
if currency != \'XOF\':\n if currency != \'XOF\':\n
cashStatus = [\'not_defined\']\n cashStatus = [\'not_defined\']\n
emissionLetter = [\'not_defined\']\n emissionLetter = [\'not_defined\']\n
variation = \'not_defined\'\n variation = [\'not_defined\']\n
\n else:\n
cashStatus = [\'valid\', \'cancelled\', \'to_sort\', \'new_emitted\']\n
emissionLetter = None\n
variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
\n \n
cash_detail_dict= { \'line_portal_type\' : \'Incoming Cash Balance Regulation Line\' # The portal type that the fastinput will create\n cash_detail_dict= { \'line_portal_type\' : \'Incoming Cash Balance Regulation Line\' # The portal type that the fastinput will create\n
, \'operation_currency\' : currency # The operation currently\n , \'operation_currency\' : currency # The operation currently\n
, \'cash_status_list\' : [\'valid\', \'cancelled\', \'to_sort\', \'new_emitted\'] # List of possible cashStatus or None if all\n , \'cash_status_list\' : cashStatus # List of possible cashStatus or None if all\n
, \'emission_letter_list\' : None # List of possible emissionLetter or None if all\n , \'emission_letter_list\' : emissionLetter # List of possible emissionLetter or None if all\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1) # List of possible variation or None if all\n , \'variation_list\' : variation # List of possible variation or None if all\n
, \'currency_cash_portal_type\': None # \'Coin\' or \'Banknote\' or None if both\n , \'currency_cash_portal_type\': None # \'Coin\' or \'Banknote\' or None if both\n
, \'read_only\' : True # If true, the fastinput will not allow change\n , \'read_only\' : False # If true, the fastinput will not allow change\n
, \'column_base_category\' : \'variation\' # possible values : \'variation\', \'cashStatus\', \'emissionLetter\'\n , \'column_base_category\' : \'variation\' # possible values : \'variation\', \'cashStatus\', \'emissionLetter\'\n
}\n }\n
\n \n
\n
return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
, cash_detail_dict = cash_detail_dict\n , cash_detail_dict = cash_detail_dict\n
, destination = context.getObject().absolute_url())\n , destination = context.getObject().absolute_url())\n
...@@ -109,6 +110,12 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -109,6 +110,12 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/CashBalanceRegulation_viewIncomingLineFastInputDialog</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/CashBalanceRegulation_viewIncomingLineFastInputDialog</string> </value>
...@@ -157,7 +164,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -157,7 +164,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<string>cashStatus</string> <string>cashStatus</string>
<string>emissionLetter</string> <string>emissionLetter</string>
<string>variation</string> <string>variation</string>
<string>True</string> <string>False</string>
<string>cash_detail_dict</string> <string>cash_detail_dict</string>
</tuple> </tuple>
</value> </value>
...@@ -186,4 +193,25 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -186,4 +193,25 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getTotalPrice(delivery_line_type=\'Incoming Cash Balance Regulation Line\')</string> </value> <value> <string>python: here.getTotalPrice(deliveryLineType=\'Incoming Cash Balance Regulation Line\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>equest = context.REQUEST\n <value> <string>request = context.REQUEST\n
\n
currency = context.Baobab_getPortalReferenceCurrencyID()\n
\n \n
currency = context.getResourceId()\n
vcurrency = context.getResource()\n vcurrency = context.getResource()\n
\n
if vcurrency is None :\n if vcurrency is None :\n
redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n
, \'view\'\n , \'view\'\n
...@@ -82,18 +82,23 @@ if vcurrency is None :\n ...@@ -82,18 +82,23 @@ if vcurrency is None :\n
\n \n
\n \n
if currency != \'XOF\':\n if currency != \'XOF\':\n
cashStatus = [\'not_defined\']\n cashStatus = [\'not_defined\',]\n
emissionLetter = [\'not_defined\']\n emissionLetter = [\'not_defined\',]\n
variation = \'not_defined\'\n variation = [\'not_defined\',]\n
else:\n
cashStatus = [\'valid\', \'cancelled\', \'to_sort\', \'new_emitted\']\n
emissionLetter = None\n
variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
\n
\n \n
\n \n
cash_detail_dict= { \'line_portal_type\' : \'Outgoing Cash Balance Regulation Line\' # The portal type that the fastinput will create\n cash_detail_dict= { \'line_portal_type\' : \'Outgoing Cash Balance Regulation Line\' # The portal type that the fastinput will create\n
, \'operation_currency\' : currency # The operation currently\n , \'operation_currency\' : currency # The operation currently\n
, \'cash_status_list\' : [\'valid\', \'cancelled\', \'to_sort\', \'new_emitted\'] # List of possible cashStatus or None if all\n , \'cash_status_list\' : cashStatus # List of possible cashStatus or None if all\n
, \'emission_letter_list\' : None # List of possible emissionLetter or None if all\n , \'emission_letter_list\' : emissionLetter # List of possible emissionLetter or None if all\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1) # List of possible variation or None if all\n , \'variation_list\' : variation # List of possible variation or None if all\n
, \'currency_cash_portal_type\': None # \'Coin\' or \'Banknote\' or None if both\n , \'currency_cash_portal_type\': None # \'Coin\' or \'Banknote\' or None if both\n
, \'read_only\' : True # If true, the fastinput will not allow change\n , \'read_only\' : False # If true, the fastinput will not allow change\n
, \'column_base_category\' : \'variation\' # possible values : \'variation\', \'cashStatus\', \'emissionLetter\'\n , \'column_base_category\' : \'variation\' # possible values : \'variation\', \'cashStatus\', \'emissionLetter\'\n
}\n }\n
\n \n
...@@ -109,6 +114,12 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -109,6 +114,12 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/CashBalanceRegulation_viewOutgoingLineFastInputDialog</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/CashBalanceRegulation_viewOutgoingLineFastInputDialog</string> </value>
...@@ -149,16 +160,15 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -149,16 +160,15 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>equest</string> <string>request</string>
<string>currency</string> <string>currency</string>
<string>vcurrency</string> <string>vcurrency</string>
<string>None</string> <string>None</string>
<string>redirect_url</string> <string>redirect_url</string>
<string>request</string>
<string>cashStatus</string> <string>cashStatus</string>
<string>emissionLetter</string> <string>emissionLetter</string>
<string>variation</string> <string>variation</string>
<string>True</string> <string>False</string>
<string>cash_detail_dict</string> <string>cash_detail_dict</string>
</tuple> </tuple>
</value> </value>
...@@ -187,4 +197,25 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -187,4 +197,25 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getTotalPrice(delivery_line_type=\'Outgoing Cash Balance Regulation Line\')</string> </value> <value> <string>python: here.getTotalPrice(deliveryLineType=\'Outgoing Cash Balance Regulation Line\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?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>
<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
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_workflow/cash_balance_regulation_workflow/scripts/validateSourceAndDestination</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change, **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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</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>validateSourceAndDestination</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -76,13 +76,18 @@ transaction = state_change.object\n ...@@ -76,13 +76,18 @@ transaction = state_change.object\n
caisse = transaction.getSource()\n caisse = transaction.getSource()\n
\n \n
resource_one = transaction.CashDelivery_checkCounterInventory(source = caisse, portal_type=\'Incoming Cash Balance Regulation Line\')\n resource_one = transaction.CashDelivery_checkCounterInventory(source = caisse, portal_type=\'Incoming Cash Balance Regulation Line\')\n
resource_two = transaction.CashDelivery_checkCounterInventory(source = caisse, portal_type=\'Outgoing Cash Balance Regulation Line\',\n resource_two = transaction.CashDelivery_checkCounterInventory(source = caisse, portal_type=\'Outgoing Cash Balance Regulation Line\', same_source=1)\n
same_source=1)\n #resource_two = transaction.CashDelivery_checkCounterInventory(source = caisse, portal_type=\'Outgoing Cash Balance Regulation Line\')\n
\n
#context.log(\'resource_one\', resource_one)\n
#context.log(\'resource_two\', resource_two)\n
\n \n
# Get total_price.\n # Get total_price.\n
incoming_total = transaction.getTotalPrice(delivery_line_type=\'Incoming Cash Balance Regulation Line\')\n incoming_total = transaction.getTotalPrice(deliveryLineType=\'Incoming Cash Balance Regulation Line\')\n
outgoing_total = transaction.getTotalPrice(delivery_line_type=\'Outgoing Cash Balance Regulation Line\')\n outgoing_total = transaction.getTotalPrice(deliveryLineType=\'Outgoing Cash Balance Regulation Line\')\n
\n \n
#context.log(\'incoming_total\', incoming_total)\n
#context.log(\'outgoing_total\', outgoing_total)\n
\n \n
if resource_one == 2:\n if resource_one == 2:\n
msg = Message(domain="ui", message="No resource.")\n msg = Message(domain="ui", message="No resource.")\n
...@@ -106,6 +111,12 @@ if incoming_total != outgoing_total:\n ...@@ -106,6 +111,12 @@ if incoming_total != outgoing_total:\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_workflow/cash_balance_regulation_workflow/scripts/validateVaultBalance</string> </value> <value> <string>Script (Python):/baobab/portal_workflow/cash_balance_regulation_workflow/scripts/validateVaultBalance</string> </value>
...@@ -184,4 +195,25 @@ if incoming_total != outgoing_total:\n ...@@ -184,4 +195,25 @@ if incoming_total != outgoing_total:\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
<key> <string>transitions</string> </key> <key> <string>transitions</string> </key>
<value> <value>
<tuple> <tuple>
<string>cancel</string>
<string>cancel_action</string>
<string>deliver</string> <string>deliver</string>
<string>deliver_action</string> <string>deliver_action</string>
<string>reject</string>
<string>reject_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -79,18 +79,16 @@ ...@@ -79,18 +79,16 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Auditor</string>
<string>Author</string>
<string>DestinationAssignee</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>Add portal content</string> </key> <key> <string>Add portal content</string> </key>
<value> <value>
<list/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -107,11 +105,7 @@ ...@@ -107,11 +105,7 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Auditor</string>
<string>Author</string>
<string>DestinationAssignee</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
<tuple> <tuple>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
<tuple> <tuple>
<string>Manager</string> <string>Manager</string>
<string>Assignor</string> <string>Assignor</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string></string> </value> <value> <string>validateVaultBalance</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -90,7 +90,6 @@ ...@@ -90,7 +90,6 @@
<value> <value>
<tuple> <tuple>
<string>Assignor</string> <string>Assignor</string>
<string>Owner</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string></string> </value> <value> <string>validateSourceAndDestination</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>reject</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>draft</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Reject</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Reject</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=reject_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>reject</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>reject_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Reject Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -30,24 +30,24 @@ ...@@ -30,24 +30,24 @@
</item> </item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <string>Monnaies effectu\xc3\xa9es (%(count)s)</string> </value> <value> <string>Cash Balance Regulation To Confirm (%(count)s)</string> </value>
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
Base_viewWorklist?simulation_state=confirmed&reset=1&portal_type=Cash Exchange&reset=1 Base_viewWorklist?simulation_state=confirmed&reset=1&portal_type=Cash Balance Regulation&reset=1
]]></string> </value> ]]></string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Echanges de billets et monnaies effectu\xc3\xa9es</string> </value> <value> <string>Cashs Balance Regulation To Confirm</string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -57,13 +57,37 @@ Base_viewWorklist?simulation_state=confirmed&reset=1&portal_type=Cash Exchange&r ...@@ -57,13 +57,37 @@ Base_viewWorklist?simulation_state=confirmed&reset=1&portal_type=Cash Exchange&r
<item> <item>
<key> <string>var_matches</string> </key> <key> <string>var_matches</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
......
...@@ -30,24 +30,24 @@ ...@@ -30,24 +30,24 @@
</item> </item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <string>drafts de monnaies \xc3\xa0 valider (%(count)s)</string> </value> <value> <string>Draft to validate (%(count)s)</string> </value>
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
Base_viewWorklist?simulation_state=draft&portal_type=Cash Exchange&reset=1 Base_viewWorklist?simulation_state=draft&portal_type=Cash Balance Regulation&reset=1
]]></string> </value> ]]></string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string>Drafts to Validate</string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -57,13 +57,37 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash Exchange&reset=1 ...@@ -57,13 +57,37 @@ Base_viewWorklist?simulation_state=draft&portal_type=Cash Exchange&reset=1
<item> <item>
<key> <string>var_matches</string> </key> <key> <string>var_matches</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
......
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