Commit 440f365b authored by Aurel's avatar Aurel

2006-08-7 aurel

* fix wf script in foreign cash reception and fix security in wf for usual cash incident

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9100 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00070b7e
......@@ -74,14 +74,14 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
object = state_change.object\n
\n
if not \'encaisse_des_devises\' in object.getDestination():\n
msg = Message(domain="ui", msg="Wrong Destination Selected.")\n
msg = Message(domain="ui", message="Wrong Destination Selected.")\n
raise validationFailed, (msg,)\n
\n
object_price = object.getSourceTotalAssetPrice()\n
line_price = object.getTotalPrice(deliveryLineType=\'Cash Delivery Line\')\n
\n
if object_price != line_price:\n
msg = Message(domain="ui", msg="Amount differs between document and lines.")\n
msg = Message(domain="ui", message="Amount differs between document and lines.")\n
raise validationFailed, (msg,)\n
</string> </value>
</item>
......@@ -91,6 +91,12 @@ if object_price != line_price:\n
<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/foreign_cash_reception_workflow/scripts/checkConsistency</string> </value>
......@@ -161,4 +167,25 @@ if object_price != line_price:\n
</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,6 +76,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -85,6 +86,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -94,6 +96,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -103,6 +106,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......
2006-08-7 aurel
* fix wf script in foreign cash reception
2006-07-25 aurel
* add usual cash incident module
......
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