Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ app/models/form_profiles/va_0976.rb @department-of-veterans-affairs/govcio-vfep-
app/models/form_profiles/va_2122.rb @department-of-veterans-affairs/accredited-representative-crew @department-of-veterans-affairs/backend-review-group
app/models/form_profiles/va_2122a.rb @department-of-veterans-affairs/accredited-representative-crew @department-of-veterans-affairs/backend-review-group
app/models/form_profiles/va_212680.rb @department-of-veterans-affairs/benefits-optimization-aquia @department-of-veterans-affairs/backend-review-group
app/models/form_profiles/va_686c674v2.rb @department-of-veterans-affairs/benefits-dependents-management @department-of-veterans-affairs/backend-review-group
app/models/form_submission_attempt.rb @department-of-veterans-affairs/platform-va-product-forms @department-of-veterans-affairs/disability-benefits @department-of-veterans-affairs/backend-review-group
app/models/form_submission.rb @department-of-veterans-affairs/platform-va-product-forms @department-of-veterans-affairs/disability-benefits @department-of-veterans-affairs/backend-review-group
app/models/form1010_ezr_attachment.rb @department-of-veterans-affairs/vfs-authenticated-experience-backend @department-of-veterans-affairs/backend-review-group
Expand Down
4 changes: 2 additions & 2 deletions app/models/form_profiles/va_686c674v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def is_in_receipt_of_pension # rubocop:disable Naming/PredicatePrefix
end
end

# @return [Integer] the net worth limit for pension, default is 159240 as of 2025
# @return [Integer] the net worth limit for pension, default is 163,699 as of 2026
# Default will be cached in future enhancement
def net_worth_limit
awards_pension[:net_worth_limit] || 159240 # rubocop:disable Style/NumericLiterals
awards_pension[:net_worth_limit] || 163699 # rubocop:disable Style/NumericLiterals
end

# @return [Hash] the awards pension data from BID service or an empty hash if the request fails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def is_in_receipt_of_pension # rubocop:disable Naming/PredicatePrefix
end
end

# @return [Integer] the net worth limit for pension, default is 159,240 as of 2025
# @return [Integer] the net worth limit for pension, default is 163,699 as of 2026
# Default will be cached in future enhancement
def net_worth_limit
awards_pension[:net_worth_limit] || 159_240
awards_pension[:net_worth_limit] || 163_699
end

# @return [Hash] the awards pension data from BID service or an empty hash if the request fails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.non_prefill_data
'veteranSsnLastFour' => '1863',
'veteranVaFileNumberLastFour' => '1863',
'isInReceiptOfPension' => -1,
'netWorthLimit' => 159_240
'netWorthLimit' => 163_699
}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def expect_prefilled(form_id)
'veteranSsnLastFour' => '1863',
'veteranVaFileNumberLastFour' => '1863',
'isInReceiptOfPension' => -1,
'netWorthLimit' => 159240 # rubocop:disable Style/NumericLiterals
'netWorthLimit' => 163699 # rubocop:disable Style/NumericLiterals
},
'veteranInformation' => {
'fullName' => {
Expand Down Expand Up @@ -293,7 +293,7 @@ def expect_prefilled(form_id)
prefilled_data = described_class.for(form_id: '686C-674-V2', user:).prefill[:form_data]

expect(prefilled_data['nonPrefill']['isInReceiptOfPension']).to eq(-1)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(159_240)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(163_699)
end
end
end
Expand Down Expand Up @@ -444,7 +444,7 @@ def expect_prefilled(form_id)
prefilled_data = described_class.for(form_id: '686C-674-V2', user:).prefill[:form_data]

expect(prefilled_data['nonPrefill']['isInReceiptOfPension']).to eq(-1)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(159_240)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(163_699)
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions spec/models/form_profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
'veteranSsnLastFour' => '1863',
'veteranVaFileNumberLastFour' => '1863',
'isInReceiptOfPension' => -1,
'netWorthLimit' => 159240 # rubocop:disable Style/NumericLiterals
'netWorthLimit' => 163699 # rubocop:disable Style/NumericLiterals
},
'veteranInformation' => {
'fullName' => {
Expand Down Expand Up @@ -1672,7 +1672,7 @@ def expect_prefilled(form_id)
'veteranSsnLastFour' => '1863',
'veteranVaFileNumberLastFour' => '1863',
'isInReceiptOfPension' => -1,
'netWorthLimit' => 159240 # rubocop:disable Style/NumericLiterals
'netWorthLimit' => 163699 # rubocop:disable Style/NumericLiterals
},
'veteranInformation' => {
'fullName' => {
Expand Down Expand Up @@ -1770,7 +1770,7 @@ def expect_prefilled(form_id)
)

expect(prefilled_data['nonPrefill']['isInReceiptOfPension']).to eq(-1)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(159240) # rubocop:disable Style/NumericLiterals
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(163699) # rubocop:disable Style/NumericLiterals
end
end
end
Expand Down Expand Up @@ -1966,7 +1966,7 @@ def expect_prefilled(form_id)
)

expect(prefilled_data['nonPrefill']['isInReceiptOfPension']).to eq(-1)
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(159240) # rubocop:disable Style/NumericLiterals
expect(prefilled_data['nonPrefill']['netWorthLimit']).to eq(163699) # rubocop:disable Style/NumericLiterals
end
end
end
Expand Down
Loading