Skip to content

Commit

Permalink
Initial version of LA weights as module
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Dec 16, 2024
1 parent 45dad47 commit 4ff92a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/LegalAidCalculations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,13 @@ function calc_legal_aid!(
if lasys.uc_limit_type == uc_max_income
# remove passport based on either uc
# earnings or assessed net income
ucinc = lasys.uc_use_earnings ? bres.uc.earned_income : onela.net_income
ucinc = if lasys.uc_use_earnings == assessed_net_income
onela.net_income
elseif lasys.uc_use_earnings == tapered_uc_earnings
bres.uc.earned_income
elseif lasys.uc_use_earnings == full_uc_earnings
bres.uc.untapered_earnings
end
if ucinc > lasys.uc_limit
onela.passported = false
end
Expand Down

0 comments on commit 4ff92a7

Please sign in to comment.