Fix calc discount

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent bd6aea011a
commit 5d8111c92f
  1. 2
      apps/payment/models.py

@ -188,7 +188,7 @@ class SchoolPayment(Payment):
month_price_sum = aggregate.get('month_price__sum', 0) * weekday_count // all_weekday_count
else:
month_price_sum = aggregate.get('month_price__sum', 0)
if month_price_sum > config.SERVICE_DISCOUNT_MIN_AMOUNT:
if month_price_sum >= config.SERVICE_DISCOUNT_MIN_AMOUNT:
discount = config.SERVICE_DISCOUNT
else:
discount = 0

Loading…
Cancel
Save