Commit 4e047ccc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

update causality state after building payment transactions.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32712 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d4d1555
...@@ -60,6 +60,13 @@ payment_transaction = context\n ...@@ -60,6 +60,13 @@ payment_transaction = context\n
# initialize accounting_workflow to planned state\n # initialize accounting_workflow to planned state\n
if payment_transaction.getSimulationState() == "draft":\n if payment_transaction.getSimulationState() == "draft":\n
payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n
\n
# First set the payment transaction in the building state on the causality workflow\n
payment_transaction.startBuilding()\n
\n
# Then an activity should put the causality state in diverged or solved\n
payment_transaction.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
1108 1109
\ No newline at end of file \ No newline at end of file
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