Class: Ecom::Core::CrewTime
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Ecom::Core::CrewTime
- Defined in:
- app/models/ecom/core/crew_time.rb
Instance Method Summary collapse
Instance Method Details
#calculate_converted_hours ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/models/ecom/core/crew_time.rb', line 11 def calculate_converted_hours if overtime rate = OvertimeType.find(overtime_type_id).rate self.converted_hours = hours * rate else self.converted_hours = hours end end |