Commit 913b9ca5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: comment

parent a4a4be02
from erp5.component.module.DateUtils import getClosestDate, addToDate from erp5.component.module.DateUtils import getClosestDate
from zExceptions import Unauthorized from zExceptions import Unauthorized
if REQUEST is not None: if REQUEST is not None:
...@@ -64,6 +64,9 @@ current_date = getClosestDate(target_date=next_open_sale_order.getCreationDate() ...@@ -64,6 +64,9 @@ current_date = getClosestDate(target_date=next_open_sale_order.getCreationDate()
# XXX Compensation # XXX Compensation
open_sale_order.OpenSaleOrder_archiveIfUnusedItem(check_unused_item=False) open_sale_order.OpenSaleOrder_archiveIfUnusedItem(check_unused_item=False)
# 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)#, activate_kw=activate_kw) open_order_movement.OpenSaleOrderCell_createDiscountSalePackingList(current_date)#, activate_kw=activate_kw)
# Change Subscripted Item user if needed # Change Subscripted Item user if needed
......
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