Commit 6d28c696 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

in post builder script of invoice builder, call builder anyway if the invoice is already confirmed.

parent 6fc176be
...@@ -121,6 +121,9 @@ if not invoice.hasTitle() and related_packing_list.hasTitle():\n ...@@ -121,6 +121,9 @@ if not invoice.hasTitle() and related_packing_list.hasTitle():\n
# initialize accounting_workflow to confirmed state\n # initialize accounting_workflow to confirmed state\n
if invoice.getSimulationState() == \'draft\':\n if invoice.getSimulationState() == \'draft\':\n
invoice.confirm(comment=translateString(\'Initialised by Delivery Builder.\'),)\n invoice.confirm(comment=translateString(\'Initialised by Delivery Builder.\'),)\n
else:\n
# call builder just same as after script of \'confirm\' transition\n
invoice.Delivery_expandAndBuild()\n
\n \n
# First set the invoice in the building state on the causality workflow\n # First set the invoice in the building state on the causality workflow\n
invoice.startBuilding()\n invoice.startBuilding()\n
......
372 373
\ 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