diff --git a/stoptime.rb b/stoptime.rb index fba20c3..75b6b89 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -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,