Browse Source

[FIX] fix swiss localization for iban not required.

IBAN number not required so it should not be checked if not provided.
pull/98/head
houssine 4 years ago
parent
commit
9452970ec5
  1. 11
      easy_my_coop_website/controllers/main.py

11
easy_my_coop_website/controllers/main.py

@ -329,12 +329,13 @@ class WebsiteSubscription(http.Controller):
return request.render(redirect, values)
iban = kwargs.get("iban")
valid = sub_req_obj.check_iban(iban)
if iban.strip():
valid = sub_req_obj.check_iban(iban)
if not valid:
values = self.fill_values(values, is_company, logged)
values["error_msg"] = _("You iban account number is not valid")
return request.render(redirect, values)
if not valid:
values = self.fill_values(values, is_company, logged)
values["error_msg"] = _("You iban account number is not valid")
return request.render(redirect, values)
# check the subscription's amount
max_amount = company.subscription_maximum_amount

Loading…
Cancel
Save