Commit 75deba4c authored by Łukasz Nowak's avatar Łukasz Nowak

Initialise causality state only when needed.

parent c0b85c9e
......@@ -58,8 +58,9 @@ payment_transaction = context\n
if payment_transaction.getSimulationState() == "draft":\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
if payment_transaction.getCausalityState() == "draft":\n
# First set the payment transaction in the building state on the causality workflow\n
payment_transaction.startBuilding()\n
\n
# update casuality from movements\n
causality_list = payment_transaction.getCausalityList()\n
......
469
\ No newline at end of file
470
\ 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