Commit 5d0bfd44 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: do not generate discount if the price is 0

parent 9f6aa78b
......@@ -122,7 +122,7 @@ open_sale_order.validate()
#######################################################
# Discount
unused_day_count = current_date - start_date
if 0 < unused_day_count:
if (subscription_request.getPrice() != 0) and (0 < unused_day_count):
# If the open order starts before today,
# generate a discount to the user on his next invoice
......
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