Commit 938c519f authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: expand the open order one last time, to no miss any period

parent da0dbb42
......@@ -39,4 +39,8 @@ for open_order_line in open_sale_order.contentValues(
now = DateTime()
open_sale_order.edit(stop_date=now)
open_sale_order.archive(comment='No item in used anymore')
# Expand the open order one last time, to no miss any period
open_sale_order.activate().OpenOrder_updateSimulation()
return open_sale_order
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