Commit ab728eae authored by Aurel's avatar Aurel

fix some workflow script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 971b3d34
......@@ -73,12 +73,12 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
txn = state_change[\'object\']\n
in_list = txn.searchFolder(portal_type=\'Incoming Cash Incident Line\')\n
out_list = txn.searchFolder(portal_type=\'Outgoing Cash Incident Line\')\n
in_list = txn.searchFolder(portal_type=\'Incoming Account Incident Line\')\n
out_list = txn.searchFolder(portal_type=\'Outgoing Account Incident Line\')\n
\n
price = txn.getSourceTotalAssetPrice()\n
in_price = txn.getTotalPrice(deliveryLineType=\'Incoming Cash Incident Line\')\n
out_price = txn.getTotalPrice(deliveryLineType=\'Outgoing Cash Incident Line\')\n
in_price = txn.getTotalPrice(deliveryLineType=\'Incoming Account Incident Line\')\n
out_price = txn.getTotalPrice(deliveryLineType=\'Outgoing Account Incident Line\')\n
\n
if len(in_list) != 0 and len(out_list) != 0:\n
msg = Message(domain = "ui", message="You can\'t have excess and deficit on the document.")\n
......
......@@ -73,12 +73,12 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
txn = state_change[\'object\']\n
in_list = txn.searchFolder(portal_type=\'Incoming Cash Incident Line\')\n
out_list = txn.searchFolder(portal_type=\'Outgoing Cash Incident Line\')\n
in_list = txn.searchFolder(portal_type=\'Incoming Cash Sorting Incident Line\')\n
out_list = txn.searchFolder(portal_type=\'Outgoing Cash Sorting Incident Line\')\n
\n
price = txn.getSourceTotalAssetPrice()\n
in_price = txn.getTotalPrice(deliveryLineType=\'Incoming Cash Incident Line\')\n
out_price = txn.getTotalPrice(deliveryLineType=\'Outgoing Cash Incident Line\')\n
in_price = txn.getTotalPrice(deliveryLineType=\'Incoming Cash Sorting Incident Line\')\n
out_price = txn.getTotalPrice(deliveryLineType=\'Outgoing Cash Sorting Incident Line\')\n
\n
if len(in_list) != 0 and len(out_list) != 0:\n
msg = Message(domain = "ui", message="You can\'t have excess and deficit on the document.")\n
......
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