Commit a538cde8 authored by Aurel's avatar Aurel

change way to check counter date is opened

add reject on all workflow
some other changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14963 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af0e5127
...@@ -115,6 +115,10 @@ ...@@ -115,6 +115,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>
......
...@@ -78,7 +78,7 @@ if vcurrency is None :\n ...@@ -78,7 +78,7 @@ if vcurrency is None :\n
return request.RESPONSE.redirect( redirect_url )\n return request.RESPONSE.redirect( redirect_url )\n
\n \n
if currency != \'XOF\':\n if currency != \'XOF\':\n
cashStatus = [\'not_defined\']\n cashStatus = [\'valid\']\n
emissionLetter = [\'not_defined\']\n emissionLetter = [\'not_defined\']\n
variation = [\'not_defined\']\n variation = [\'not_defined\']\n
else:\n else:\n
......
...@@ -79,7 +79,7 @@ if vcurrency is None :\n ...@@ -79,7 +79,7 @@ if vcurrency is None :\n
\n \n
\n \n
if currency != \'XOF\':\n if currency != \'XOF\':\n
cashStatus = [\'not_defined\',]\n cashStatus = [\'valid\',]\n
emissionLetter = [\'not_defined\',]\n emissionLetter = [\'not_defined\',]\n
variation = [\'not_defined\',]\n variation = [\'not_defined\',]\n
else:\n else:\n
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<value> <string>cash_detail_dict = {\'line_portal_type\' : \'Incoming Cash Sorting Line\'\n <value> <string>cash_detail_dict = {\'line_portal_type\' : \'Incoming Cash Sorting Line\'\n
, \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n , \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n
, \'cash_status_list\' : [\'to_sort\',]\n , \'cash_status_list\' : [\'to_sort\',]\n
, \'emission_letter_list\' : [\'not_defined\',]\n , \'emission_letter_list\' : [\'not_defined\',\'mixed\']\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n , \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
, \'currency_cash_portal_type\': None\n , \'currency_cash_portal_type\': None\n
, \'read_only\' : False\n , \'read_only\' : False\n
......
...@@ -67,10 +67,10 @@ ...@@ -67,10 +67,10 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>cash_detail_dict = {\'line_portal_type\' : \'Outgoing Cash Sorting Line\'\n <value> <string>cash_detail_dict = {\'line_portal_type\' : \'Outgoing Cash Sorting Line\'\n
, \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n , \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n
, \'cash_status_list\' : [\'valid\', \'cancelled\', \'to_sort\', \'mixed\']\n , \'cash_status_list\' : [\'valid\', \'cancelled\', \'to_sort\', \'mutilated\']\n
, \'emission_letter_list\' : None\n , \'emission_letter_list\' : None\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1)\n , \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
, \'currency_cash_portal_type\': \'Banknote\'\n , \'currency_cash_portal_type\': None\n
, \'read_only\' : False\n , \'read_only\' : False\n
, \'column_base_category\' : \'variation\'\n , \'column_base_category\' : \'variation\'\n
}\n }\n
......
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
<string>Description</string> <string>Description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Simulation_state</string> <string>translated_simulation_state_title</string>
<string>State</string> <string>State</string>
</tuple> </tuple>
</list> </list>
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
<string>Description</string> <string>Description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Simulation_state</string> <string>translated_simulation_state_title</string>
<string>State</string> <string>State</string>
</tuple> </tuple>
</list> </list>
......
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
<value> <value>
<list> <list>
<string>my_start_date</string> <string>my_start_date</string>
<string>my_stop_date</string>
<string>my_description</string> <string>my_description</string>
</list> </list>
</value> </value>
......
...@@ -76,19 +76,32 @@ cash_status = context.getCashStatus()\n ...@@ -76,19 +76,32 @@ cash_status = context.getCashStatus()\n
# possible cash status : cancelled, to_sort, valid\n # possible cash status : cancelled, to_sort, valid\n
emission_letter = context.getEmissionLetter()\n emission_letter = context.getEmissionLetter()\n
\n \n
if cash_status == "to_sort" and emission_letter == "not_defined":\n resource_portal_type = context.getResourceValue().getPortalType()\n
# banknote letter \'not defined\' / a trier -> caisse source\n if resource_portal_type == \'Banknote\':\n
return context.getSource()\n if cash_status == "to_sort" and emission_letter == "not_defined":\n
elif emission_letter != site_letter:\n # banknote letter \'not defined\' / a trier -> caisse source\n
# external banknote -> caisse auxiliaire / encaisse externe\n source = context.getSource()\n
# banknote letter \'mixed\' -> caisse auxiliaire / encaisse externe\n if not \'ventilation\' in source:\n
return \'%s/caveau/auxiliaire/encaisse_des_externes\' %(site,)\n return \'%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies\' %(site,)\n
elif cash_status in ("cancelled", "to_sort"):\n else:\n
# banknote \'cancelled\' oo \'to_sort\'from same country -> caisse auxiliaire / billets et monnaies\n return \'%s/caveau/auxiliaire/%s\' %(site, \'/\'.join(source.split(\'/\')[-2:]))\n
return \'%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies\' %(site,)\n elif emission_letter != site_letter:\n
elif cash_status == "valid":\n # external banknote -> caisse auxiliaire / encaisse externe\n
# banknote \'valid\' from same country -> caisse de reserve / billets et monnaies\n # banknote letter \'mixed\' -> caisse auxiliaire / encaisse externe\n
return \'%s/caveau/reserve/encaisse_des_billets_et_monnaies\' %(site,)\n return \'%s/caveau/auxiliaire/encaisse_des_externes\' %(site,)\n
elif cash_status in ("cancelled", "to_sort"):\n
# banknote \'cancelled\' or \'to_sort\'from same country -> caisse auxiliaire / billets et monnaies\n
return \'%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies\' %(site,)\n
elif cash_status == "valid":\n
# banknote \'valid\' from same country -> caisse de reserve / billets et monnaies\n
return \'%s/caveau/reserve/encaisse_des_billets_et_monnaies\' %(site,)\n
else:\n
# Coin\n
if cash_status == "valid":\n
return \'%s/caveau/reserve/encaisse_des_billets_et_monnaies\' %(site,)\n
else:\n
return \'%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies\' %(site,)\n
\n
\n \n
\n \n
# if emission_letter!=\'not_defined\' and not (emission_letter in site_letter):\n # if emission_letter!=\'not_defined\' and not (emission_letter in site_letter):\n
...@@ -173,6 +186,8 @@ elif cash_status == "valid":\n ...@@ -173,6 +186,8 @@ elif cash_status == "valid":\n
<string>site</string> <string>site</string>
<string>cash_status</string> <string>cash_status</string>
<string>emission_letter</string> <string>emission_letter</string>
<string>resource_portal_type</string>
<string>source</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -273,18 +273,15 @@ ...@@ -273,18 +273,15 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<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/caveau/auxiliaire\',\'site/caveau/reserve\',))</string> </value> <value> <string>python: here.Base_sortItemList(here.Delivery_getVaultItemList(current_url=here.getSource(), vault_type=(\'site/caveau/auxiliaire\',\'site/caveau/reserve\',))+here.Delivery_getVaultItemList(vault_type=(\'site/caveau/auxiliaire/encaisse_des_externes\',),leaf_node=0,strict_membership=1)[1:], keep_first=1)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -91,9 +91,7 @@ source = baobab_source\n ...@@ -91,9 +91,7 @@ source = baobab_source\n
source_object = context.portal_categories.getCategoryValue(source)\n source_object = context.portal_categories.getCategoryValue(source)\n
\n \n
# check again that we are in the good accounting date\n # check again that we are in the good accounting date\n
if not transaction.Baobab_checkCounterDateOpen(site=source_object, date=date):\n transaction.Baobab_checkCounterDateOpen(site=source_object, date=date)\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n \n
\n \n
vault = "%s/surface/caisse_courante/encaisse_des_billets_et_monnaies" %(transaction.getSource(),)\n vault = "%s/surface/caisse_courante/encaisse_des_billets_et_monnaies" %(transaction.getSource(),)\n
...@@ -227,11 +225,11 @@ if debit:\n ...@@ -227,11 +225,11 @@ if debit:\n
<string>site</string> <string>site</string>
<string>site_value</string> <string>site_value</string>
<string>source_object</string> <string>source_object</string>
<string>msg</string>
<string>vault</string> <string>vault</string>
<string>price</string> <string>price</string>
<string>in_price</string> <string>in_price</string>
<string>out_price</string> <string>out_price</string>
<string>msg</string>
<string>resource</string> <string>resource</string>
<string>bank_account</string> <string>bank_account</string>
<string>exchange_rate_list</string> <string>exchange_rate_list</string>
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>scripts</string> </value> <value> <string>scripts</string> </value>
......
...@@ -83,12 +83,6 @@ transaction.Base_checkBaobabSourceAndDestination()\n ...@@ -83,12 +83,6 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value> <value> <string>state_change, **kw</string> </value>
......
...@@ -74,9 +74,7 @@ caisse = transaction.getSource()\n ...@@ -74,9 +74,7 @@ caisse = transaction.getSource()\n
\n \n
\n \n
# check again that we are in the good accounting date\n # check again that we are in the good accounting date\n
if not transaction.Baobab_checkCounterDateOpen(site=caisse, date=transaction.getStartDate()):\n transaction.Baobab_checkCounterDateOpen(site=caisse, date=transaction.getStartDate())\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n \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
...@@ -129,12 +127,6 @@ if incoming_total != outgoing_total:\n ...@@ -129,12 +127,6 @@ if incoming_total != outgoing_total:\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change</string> </value> <value> <string>state_change</string> </value>
...@@ -172,12 +164,12 @@ if incoming_total != outgoing_total:\n ...@@ -172,12 +164,12 @@ if incoming_total != outgoing_total:\n
<string>transaction</string> <string>transaction</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>caisse</string> <string>caisse</string>
<string>msg</string>
<string>resource_one</string> <string>resource_one</string>
<string>resource_two</string> <string>resource_two</string>
<string>amount</string> <string>amount</string>
<string>incoming_total</string> <string>incoming_total</string>
<string>outgoing_total</string> <string>outgoing_total</string>
<string>msg</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>states</string> </value> <value> <string>states</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -45,8 +39,6 @@ ...@@ -45,8 +39,6 @@
<tuple> <tuple>
<string>deliver</string> <string>deliver</string>
<string>deliver_action</string> <string>deliver_action</string>
<string>draft</string>
<string>draft_action</string>
<string>reject</string> <string>reject</string>
<string>reject_action</string> <string>reject_action</string>
</tuple> </tuple>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Documents in draft state should never be accounted and should only be visible by their ownner</string> </value> <value> <string>Documents in draft state should never be accounted and should only be visible by their ownner</string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>rejected</string> </value>
</item>
<item>
<key> <string>permission_roles</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>cancel</string>
<string>cancel_action</string>
<string>confirm</string>
<string>confirm_action</string>
<string>delete</string>
<string>delete_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Access contents information</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>Add portal content</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>View</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>transitions</string> </value> <value> <string>transitions</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -73,11 +67,8 @@ ...@@ -73,11 +67,8 @@
<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>
...@@ -88,6 +79,7 @@ ...@@ -88,6 +79,7 @@
<tuple> <tuple>
<string>Manager</string> <string>Manager</string>
<string>Assignor</string> <string>Assignor</string>
<string>Assignee</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</item> </item>
<item> <item>
<key> <string>new_state_id</string> </key> <key> <string>new_state_id</string> </key>
<value> <string>draft</string> </value> <value> <string>rejected</string> </value>
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<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>
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>variables</string> </value> <value> <string>variables</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>default_expr</string> </key>
<value> <value>
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>worklists</string> </value> <value> <string>worklists</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>global</string> </value> <value> <string>global</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>global</string> </value> <value> <string>global</string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/>
<tuple/>
</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>global</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Rejected Cash Balance Regulation (%(count)s)</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string encoding="cdata"><![CDATA[
Base_viewWorklist?simulation_state=confirmed&rejected=1&portal_type=Cash Balance Regulation&reset=1
]]></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Rejected Cash Balance Regulation</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>rejected</string> </value>
</item>
<item>
<key> <string>var_matches</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</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>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>portal_type</string> </key>
<value>
<tuple>
<string>Cash Balance Regulation</string>
</tuple>
</value>
</item>
<item>
<key> <string>simulation_state</string> </key>
<value>
<tuple>
<string>rejected</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -82,10 +82,7 @@ caisse_outgoing = counter_site + encaisse_billets_et_monnaies_sortante\n ...@@ -82,10 +82,7 @@ caisse_outgoing = counter_site + encaisse_billets_et_monnaies_sortante\n
transaction.Baobab_checkSameUserVault(counter_site)\n transaction.Baobab_checkSameUserVault(counter_site)\n
\n \n
# check again that we are in the good accounting date\n # check again that we are in the good accounting date\n
if not transaction.Baobab_checkCounterDateOpen(site=caisse_outgoing, date=transaction.getStartDate()):\n transaction.Baobab_checkCounterDateOpen(site=caisse_outgoing, date=transaction.getStartDate())\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
# use of the constraint : Test cash status line\n # use of the constraint : Test cash status line\n
#vliste = transaction.checkConsistency()\n #vliste = transaction.checkConsistency()\n
#transaction.log(\'vliste\', vliste)\n #transaction.log(\'vliste\', vliste)\n
...@@ -180,11 +177,11 @@ if amount_total != outgoing_total:\n ...@@ -180,11 +177,11 @@ if amount_total != outgoing_total:\n
<string>counter_site</string> <string>counter_site</string>
<string>caisse_incoming</string> <string>caisse_incoming</string>
<string>caisse_outgoing</string> <string>caisse_outgoing</string>
<string>msg</string>
<string>resource_two</string> <string>resource_two</string>
<string>incoming_total</string> <string>incoming_total</string>
<string>outgoing_total</string> <string>outgoing_total</string>
<string>amount_total</string> <string>amount_total</string>
<string>msg</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -78,9 +78,7 @@ out_list = txn.objectValues(portal_type=\'Outgoing Cash Incident Line\')\n ...@@ -78,9 +78,7 @@ out_list = txn.objectValues(portal_type=\'Outgoing Cash Incident Line\')\n
# check that we are in the good accounting date\n # check that we are in the good accounting date\n
vault = txn.getSource()\n vault = txn.getSource()\n
\n \n
if not txn.Baobab_checkCounterDateOpen(site=vault, date=txn.getStartDate()):\n txn.Baobab_checkCounterDateOpen(site=vault, date=txn.getStartDate())\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n \n
\n \n
\n \n
...@@ -161,11 +159,11 @@ if out_price != 0:\n ...@@ -161,11 +159,11 @@ if out_price != 0:\n
<string>in_list</string> <string>in_list</string>
<string>out_list</string> <string>out_list</string>
<string>vault</string> <string>vault</string>
<string>msg</string>
<string>price</string> <string>price</string>
<string>in_price</string> <string>in_price</string>
<string>out_price</string> <string>out_price</string>
<string>len</string> <string>len</string>
<string>msg</string>
<string>resource</string> <string>resource</string>
</tuple> </tuple>
</value> </value>
......
...@@ -83,12 +83,6 @@ transaction.Base_checkBaobabSourceAndDestination()\n ...@@ -83,12 +83,6 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value> <value> <string>state_change, **kw</string> </value>
......
...@@ -16,15 +16,29 @@ ...@@ -16,15 +16,29 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>description</string> </key>
<value> <value> <string></string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>cancelled</string> </value> <value> <string>cancelled</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string>Cancelled</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<tuple> <tuple>
<string>deliver</string> <string>deliver</string>
<string>deliver_action</string> <string>deliver_action</string>
<string>draft</string> <string>reject</string>
<string>draft_action</string> <string>reject_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>rejected</string> </value>
</item>
<item>
<key> <string>permission_roles</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Rejected</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>cancel</string>
<string>cancel_action</string>
<string>confirm</string>
<string>confirm_action</string>
<string>delete</string>
<string>delete_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Access contents information</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>Add portal content</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>View</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -44,7 +38,7 @@ ...@@ -44,7 +38,7 @@
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <none/>
</value> </value>
</item> </item>
<item> <item>
...@@ -70,25 +64,4 @@ ...@@ -70,25 +64,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Manager</string>
<string>Assignor</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -85,6 +79,7 @@ ...@@ -85,6 +79,7 @@
<tuple> <tuple>
<string>Manager</string> <string>Manager</string>
<string>Assignor</string> <string>Assignor</string>
<string>Assignee</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
...@@ -15,12 +15,6 @@ ...@@ -15,12 +15,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</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>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>draft</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>
</ZopeData>
...@@ -43,11 +43,11 @@ ...@@ -43,11 +43,11 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>draft</string> </value> <value> <string>reject</string> </value>
</item> </item>
<item> <item>
<key> <string>new_state_id</string> </key> <key> <string>new_state_id</string> </key>
<value> <string>draft</string> </value> <value> <string>rejected</string> </value>
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
......
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?field_my_workflow_action=draft_action</string> </value> <value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?field_my_workflow_action=reject_action</string> </value>
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <string>draft</string> </value> <value> <string>reject</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>draft_action</string> </value> <value> <string>reject_action</string> </value>
</item> </item>
<item> <item>
<key> <string>new_state_id</string> </key> <key> <string>new_state_id</string> </key>
......
...@@ -73,9 +73,7 @@ transaction = state_change[\'object\']\n ...@@ -73,9 +73,7 @@ transaction = state_change[\'object\']\n
vaultDestination = transaction.getDestination()\n vaultDestination = transaction.getDestination()\n
\n \n
# check again that we are in the good accounting date in site destination\n # check again that we are in the good accounting date in site destination\n
if not transaction.Baobab_checkCounterDateOpen(site=vaultDestination, date=transaction.getStopDate()):\n transaction.Baobab_checkCounterDateOpen(site=vaultDestination, date=transaction.getStopDate())\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -134,7 +132,6 @@ if not transaction.Baobab_checkCounterDateOpen(site=vaultDestination, date=trans ...@@ -134,7 +132,6 @@ if not transaction.Baobab_checkCounterDateOpen(site=vaultDestination, date=trans
<string>transaction</string> <string>transaction</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>vaultDestination</string> <string>vaultDestination</string>
<string>msg</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
This diff is collapsed.
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