From 88b390204e662148c9a57d87af81c72c06051223 Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Mon, 17 Jul 2017 19:38:51 +0300 Subject: [PATCH] fix --- src/customer/utils.py | 2 +- templates/robokassa/error.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/customer/utils.py b/src/customer/utils.py index e477181..1bcca3c 100644 --- a/src/customer/utils.py +++ b/src/customer/utils.py @@ -162,7 +162,7 @@ def get_display_message_for_bonus(day_count): def create_bonus_license(lic): - if check_confirm_bonus_to_user(lic.company.get_first_user()) and lic.term >= 12: + if check_confirm_bonus_to_user(lic.company.get_first_user()) != -1 and lic.term >= 12: bonus_term = 0 if lic.term == 12: bonus_term = 2 diff --git a/templates/robokassa/error.html b/templates/robokassa/error.html index f56f09d..740aeea 100644 --- a/templates/robokassa/error.html +++ b/templates/robokassa/error.html @@ -4,8 +4,7 @@ {% block content %}
-

Возникли проблемы с оплатой

-

Что-то пошло не так и оплатить лицензию не получилось :(

+

Ошибка при оплате

Ссылку на оплату, историю всех расчётов и купленных лицензий всегда можно найти на странице Лицензии и расчёты.