# if we want to always activate a discount as soon as an open order is archived (outside subscription change request)
# it is needed to call OpenSaleOrderCell_createDiscountSalePackingList is an interaction workflow
# with more extra checks.
open_order_movement.OpenSaleOrderCell_createDiscountSalePackingList(current_date,'transfer discount from %s to %s'%(open_sale_order.getReference(),next_open_sale_order.getReference()))#, activate_kw=activate_kw)
open_order_cell.OpenSaleOrderCell_createDiscountSalePackingList(current_date,"first invoice discount for %s"%open_sale_order.getReference(),activate_kw=activate_kw)