Class: Ecom::Core::CrewOvertime
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Ecom::Core::CrewOvertime
- Defined in:
- app/models/ecom/core/crew_overtime.rb
Instance Method Summary collapse
Instance Method Details
#calculate_hours ⇒ Object
15 16 17 18 |
# File 'app/models/ecom/core/crew_overtime.rb', line 15 def calculate_hours rate = OvertimeType.find(overtime_type_id).rate self.hours = raw_hours * rate end |