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:
parent
dfd189d341
commit
d359b76209
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue