Skip to content

Commit

Permalink
Updated E2014 and 2015 to be similar in structure to the CSV
Browse files Browse the repository at this point in the history
To keep consistent with the CSV. This structure is stripped away
though during the automated testing in #65
  • Loading branch information
jcadam14 committed Dec 5, 2023
1 parent 30b9439 commit 1f26af4
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions regtech_data_validator/phase_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,18 +638,12 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
id="E2014",
name="pricing_all.conditional_fieldset_conflict",
description=(
"When 'action taken' equals 3 (denied), "
"4 (withdrawn by applicant), or 5 "
"(incomplete), the following fields must"
" all equal 999 (not applicable): "
"'Interest rate type', 'MCA/sales-based: "
"additional cost for merchant cash advances"
" or other sales-based financing: NA flag', "
"'Prepayment penalty could be imposed', "
"'Prepayment penalty exists'). And the "
" following fields must all be blank: "
"'Total origination charges', 'Amount of "
"total broker fees', 'Initial annual charges'"
"When 'action taken' equals 3 (denied), 4 (withdrawn by applicant), or 5 (incomplete),\n\nthe"
" following fields must all equal 999 (not applicable):\n- 'Interest rate type'\n-"
" 'MCA/sales-based: additional cost for merchant cash advances or other sales-based financing:"
" NA flag'\n- 'Prepayment penalty could be imposed'\n- 'Prepayment penalty exists'\n\nand the"
" following fields must all be blank:\n- 'Total origination charges'\n- 'Amount of total broker"
" fees'\n- 'Initial annual charges'"
),
severity=Severity.ERROR,
groupby=[
Expand Down Expand Up @@ -677,15 +671,10 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
id="E2015",
name="pricing_charges.conditional_fieldset_conflict",
description=(
"When 'action taken' equals 1 (originated)"
" or 2 (approved but not accepted), the "
"following fields all must not be blank: "
"'Total origination charges', 'Amount of "
"total broker fees', 'Initial annual "
"charges'. And the following fields must "
"not equal 999 (not applicable): 'Prepayment "
"penalty could be imposed', 'Prepayment "
"penalty exists'"
"When 'action taken' equals 1 (originated) or 2 (approved but not accepted), the following"
" fields all must not be blank:\n- 'total origination charges'\n- 'amount of total broker"
" fees'\n- 'initial annual charges'\nAnd the following fields must not equal 999 (not"
" applicable):\n- 'prepayment penalty could be imposed'\n- 'prepayment penalty exists'"
),
severity=Severity.ERROR,
groupby=[
Expand Down

0 comments on commit 1f26af4

Please sign in to comment.