Skip to content

Commit

Permalink
update retainer time entries
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Jun 5, 2024
1 parent 4663eaa commit 43015c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/retainer_contract_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ def assignment_executed_income(_assignment, _start_date, _end_date)
def assignment_expected_income(_assignment, _start_date, _end_date)
0
end

def expected_hours(assignment, start_date, end_date, _include_paid_time_off: false)
statement_of_work_total_hours = assignment.requirement.statement_of_work.contract_model.expected_hours_per_period
statement_of_work_total_hours * assignment.coverage * months_in_period(start_date, end_date)
end
end

0 comments on commit 43015c0

Please sign in to comment.