Ivlev Denis 8 years ago
parent 94460f967d
commit bcd553d5fd
  1. 2
      apps/payment/views.py

@ -219,7 +219,7 @@ class PaymentwallCallbackView(View):
else: else:
month = 0 if now().day >= 1 and now().day <= 10 else 1 month = 0 if now().day >= 1 and now().day <= 10 else 1
date_start = self.add_months(sourcedate=now().replace(hour=0, minute=0, day=1), months=month) date_start = self.add_months(sourcedate=now().replace(hour=0, minute=0, day=1), months=month)
date_end = arrow.get(date_start).shift(months=1) - datetime.timedelta(minutes=1).datetime date_end = arrow.get(date_start).shift(months=1, minutes=-1).datetime
payment.date_start = date_start payment.date_start = date_start
payment.date_end = date_end payment.date_end = date_end
if product_type_name == 'course': if product_type_name == 'course':

Loading…
Cancel
Save