Class: Ecom::Core::CrewOvertime

Inherits:
ApplicationRecord show all
Defined in:
app/models/ecom/core/crew_overtime.rb

Instance Method Summary collapse

Instance Method Details

#calculate_converted_hoursObject



15
16
17
18
# File 'app/models/ecom/core/crew_overtime.rb', line 15

def calculate_converted_hours
  rate = OvertimeType.find(overtime_type_id).rate
  self.converted_hours = hours * rate
end