Skip to content

Commit

Permalink
add missing number
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcam committed Aug 25, 2023
1 parent ce8fab5 commit 3860431
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/services/usage_report_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def cross_referral_from_primero_cases
data[:adult_male_without_disability] = data[:adult_male] - data[:adult_male_with_disability]
data[:child_female_without_disability] = data[:child_female] - data[:child_female_with_disability]
data[:child_male_without_disability] = data[:child_male] - data[:child_male_with_disability]
data[:other] = data[:total] - data[:adult_female] - data[:adult_male] - data[:child_male] - data[:child_female]

data
end
Expand Down Expand Up @@ -87,6 +88,8 @@ def cross_referral_to_primero_cases
data[:adult_male_without_disability] = data[:adult_male] - data[:adult_male_with_disability]
data[:child_female_without_disability] = data[:child_female] - data[:child_female_with_disability]
data[:child_male_without_disability] = data[:child_male] - data[:child_male_with_disability]
data[:other] = data[:total] - data[:adult_female] - data[:adult_male] - data[:child_male] - data[:child_female]

data
end

Expand Down Expand Up @@ -117,6 +120,8 @@ def cross_referral_cases
data[:adult_male_without_disability] = data[:adult_male] - data[:adult_male_with_disability]
data[:child_female_without_disability] = data[:child_female] - data[:child_female_with_disability]
data[:child_male_without_disability] = data[:child_male] - data[:child_male_with_disability]
data[:other] = data[:total] - data[:adult_female] - data[:adult_male] - data[:child_male] - data[:child_female]

data
end

Expand Down

0 comments on commit 3860431

Please sign in to comment.