diff --git a/src/customer/models.py b/src/customer/models.py index 9fcf8f2..f3b488b 100644 --- a/src/customer/models.py +++ b/src/customer/models.py @@ -653,11 +653,11 @@ class License(models.Model): @property def account_status(self): - if self.status in [0, 1, 4]: - if self.status in [0, 4]: - return 'Счет не оплачен' - else: - return 'Счет оплачен' + if self.status in [0, 4]: + return 'Счет не оплачен' + else: + return 'Счет оплачен' + @property def account_sub_status(self): diff --git a/templates/customer/profile/orders_list.html b/templates/customer/profile/orders_list.html index 281cbd1..bb8a221 100644 --- a/templates/customer/profile/orders_list.html +++ b/templates/customer/profile/orders_list.html @@ -43,8 +43,12 @@ {% if object.type %}
+ {% if object.pay_sum == 0 %} + + {% else %}

{{ object.account_status }} {% if object.paid_date %}{{ object.paid_date }}{% endif %}

{% if object.paid_date %}Выдана лицензия № {{ object.id }}{% else %}{{ object.account_sub_status }}{% endif %}

+ {% endif %}
{% else %}