Corrected detection of an empty list of invoices.

This commit is contained in:
Paul van Tilburg 2011-11-10 13:08:17 +01:00
parent b2ce309d5f
commit 11627e85fc
1 changed files with 1 additions and 1 deletions

View File

@ -1051,7 +1051,7 @@ module StopTime::Views
def invoices
h2 "Invoices"
if @invoices.empty?
if @invoices.values.flatten.empty?
p do
text "Found none! You can create one by "
a "selecting a customer", :href => R(Customers)