Fix bug related to proper alignment
This commit is contained in:
parent
47422a99af
commit
d00e84a4b6
1 changed files with 8 additions and 8 deletions
|
@ -1251,14 +1251,14 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
|
||||||
context['error'] = 'WrongIdError'
|
context['error'] = 'WrongIdError'
|
||||||
return context
|
return context
|
||||||
|
|
||||||
# add context params from monthly hosting bill
|
# add context params from monthly hosting bill
|
||||||
context['period_start'] = obj.period_start
|
context['period_start'] = obj.period_start
|
||||||
context['period_end'] = obj.period_end
|
context['period_end'] = obj.period_end
|
||||||
context['paid_at'] = obj.paid_at
|
context['paid_at'] = obj.paid_at
|
||||||
context['total_in_chf'] = obj.total_in_chf()
|
context['total_in_chf'] = obj.total_in_chf()
|
||||||
context['invoice_number'] = obj.invoice_number
|
context['invoice_number'] = obj.invoice_number
|
||||||
context['discount_on_stripe'] = obj.discount_in_chf()
|
context['discount_on_stripe'] = obj.discount_in_chf()
|
||||||
return context
|
return context
|
||||||
else:
|
else:
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue