Sort invoices in descending order by number by default

This commit is contained in:
Paul van Tilburg 2014-02-07 21:22:20 +01:00
parent 407126d9a6
commit cb14b99f89
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ module StopTime::Models
has_many :time_entries, :through => :tasks
belongs_to :customer
belongs_to :company_info
default_scope order('number DESC')
# Returns a time and cost summary of the contained tasks (Hash of
# Task to Array).