Commit 14520384 authored by Łukasz Nowak's avatar Łukasz Nowak

Recreate new planned invoice while confirming current one.

parent 834162aa
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible\n isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible\n
if context.getSimulationState() == \'planned\' and context.getStartDate() < this_month and isTransitionPossible(context, \'confirm\'):\n if context.getSimulationState() == \'planned\' and context.getStartDate() < this_month and isTransitionPossible(context, \'confirm\'):\n
context.confirm()\n context.confirm()\n
# as user will not have any invoice in planned state create new one, a bit later, in order to have current state reindexed\n
context.getDestinationValue().activate(after_path_and_method_id=(context.getPath, (\'recursiveImmediateReindexObject\', \'immediateReindexObject\'))).fixConsistency()\n
]]></string> </value> ]]></string> </value>
......
780 781
\ 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