Fix bug related to proper alignment

This commit is contained in:
PCoder 2019-04-03 23:24:56 +02:00
parent 47422a99af
commit d00e84a4b6

View file

@ -1251,14 +1251,14 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
context['error'] = 'WrongIdError'
return context
# add context params from monthly hosting bill
context['period_start'] = obj.period_start
context['period_end'] = obj.period_end
context['paid_at'] = obj.paid_at
context['total_in_chf'] = obj.total_in_chf()
context['invoice_number'] = obj.invoice_number
context['discount_on_stripe'] = obj.discount_in_chf()
return context
# add context params from monthly hosting bill
context['period_start'] = obj.period_start
context['period_end'] = obj.period_end
context['paid_at'] = obj.paid_at
context['total_in_chf'] = obj.total_in_chf()
context['invoice_number'] = obj.invoice_number
context['discount_on_stripe'] = obj.discount_in_chf()
return context
else:
raise Http404