Color invoice list rows based on due status (refs: #b4b365)

What remains is to remove the hardcoding of 30 days.  This should be moved
to the config and Customer model (and then also be used in the template).
This commit is contained in:
Paul van Tilburg 2013-06-16 23:29:33 +02:00
parent dfd189d341
commit d359b76209

View file

@ -2238,7 +2238,9 @@ module StopTime::Views
end
tbody do
invoices.each do |invoice|
tr do
due_class = invoice.past_due? ? "warning" : ""
due_class = "error" if invoice.way_past_due?
tr(:class => due_class) do
td do
a invoice.number,
:href => R(CustomersNInvoicesX,