Hide fees on changing payment method when no fees are taken

This commit is contained in:
Raphael Michel
2019-07-25 11:47:23 +02:00
parent 4857cfad6e
commit 2dd75ea252
2 changed files with 4 additions and 1 deletions

View File

@@ -581,6 +581,7 @@ class OrderPayChangeMethod(EventViewMixin, OrderDetailMixin, TemplateView):
ctx = super().get_context_data(**kwargs)
ctx['order'] = self.order
ctx['providers'] = self.provider_forms
ctx['show_fees'] = any(p['fee_diff'] for p in self.provider_forms)
return ctx
def get_confirm_url(self, payment):