Skip to content

Commit

Permalink
Merge pull request #3292 from raft-tech/3278-validation-logic
Browse files Browse the repository at this point in the history
Revise Validation Logic for TANF Active Case Items 27, 29, 26AIII, and 32D
  • Loading branch information
elipe17 authored Dec 9, 2024
2 parents 5a09073 + c7778e5 commit 6767fc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/ssp/m2.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
startIndex=48,
endIndex=49,
required=False,
validators=[category2.isGreaterThan(0)]
validators=[category2.isGreaterThan(0, inclusive=True)]
),
Field(
item="32E",
Expand Down
10 changes: 2 additions & 8 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t1.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
result_field_name="WORK_REQ_SANCTION",
result_function=category3.isOneOf((1, 2)),
),
category3.ifThenAlso(
condition_field_name="SANC_REDUCTION_AMT",
condition_function=category3.isGreaterThan(0),
result_field_name="FAMILY_SANC_ADULT",
result_function=category3.isOneOf((1, 2)),
),
category3.ifThenAlso(
condition_field_name="SANC_REDUCTION_AMT",
condition_function=category3.isGreaterThan(0),
Expand Down Expand Up @@ -635,7 +629,7 @@
endIndex=114,
required=False,
validators=[
category2.isOneOf(["9", " "]),
category2.isOneOf(["9", "0", " "]),
category2.isAlphaNumeric(),
],
),
Expand All @@ -658,7 +652,7 @@
endIndex=117,
required=False,
validators=[
category2.isOneOf([1, 2]),
category2.isOneOf([0, 1, 2]),
],
),
Field(
Expand Down

0 comments on commit 6767fc5

Please sign in to comment.