Corrected detection of an empty list of invoices.
This commit is contained in:
parent
b2ce309d5f
commit
11627e85fc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue