Commit f75631c1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: do not generate discount if the price is 0

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