Class: RedmineRate::Hooks::PluginTimesheetViewsTimesheetTimeEntryHook

Inherits:
Redmine::Hook::ViewListener
  • Object
show all
Includes:
TimesheetHookHelper
Defined in:
lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook.rb

Instance Method Summary collapse

Methods included from TimesheetHookHelper

#cost_item, #td_cell

Instance Method Details

#plugin_timesheet_views_timesheet_time_entry(context = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook.rb', line 6

def plugin_timesheet_views_timesheet_time_entry(context={})
  cost = cost_item(context[:time_entry])
  if cost
    td_cell(number_to_currency(cost))
  else
    td_cell(' ')
  end

end