Invoice cancelling

This commit is contained in:
Martin Lensment 2015-04-27 11:15:09 +03:00
parent 56d7f9f2e2
commit a26ce110b2
17 changed files with 113 additions and 25 deletions

View file

@ -21,9 +21,15 @@
%tr
%td= link_to(x, [:admin, x])
%td= link_to(x.buyer_name, admin_registrar_path(x.buyer_id))
%td= l(x.due_date)
- if x.cancelled?
%td.text-grey= t('cancelled')
- else
%td= l(x.due_date)
- if x.binded?
%td= l(x.receipt_date)
- elsif x.cancelled?
%td.text-grey= t('cancelled')
- else
%td.text-danger= t('unpaid')
.row