Class TimesheetRow
In: app/models/timesheet_row.rb
Parent: ActiveRecord::Base
File:timesheet_row.rb
(C):Hipposoft 2008, 2009
Purpose:Describe the behaviour of TimesheetRow objects. See below for more details.

          07-Jan-2008 (ADH): Created.

Methods

row_sum  

Constants

DAY_ORDER = [ 1, 2, 3, 4, 5, 6, 0 ]   Day number order within a row - Monday to Sunday,
FIRST_DAY = DAY_ORDER[ 0 ]
LAST_DAY = DAY_ORDER[ 6 ]
DAY_NAMES = Date::DAYNAMES

Public Instance methods

Return the sum of hours in work packets on this row.

[Source]

    # File app/models/timesheet_row.rb, line 49
49:   def row_sum()
50:     return self.work_packets.sum( :worked_hours )
51:   end

[Validate]