baarkerlounger
116a1b12f4
CLDC-1217: Retirement soft validation ( #586 )
...
* Don't trigger soft validation if tenant prefers not to say
* Update gender content
* Fix spec description
2 years ago
Ted-U
970c9afcf7
Cldc 1217 retirement soft validation ( #570 )
...
* Interruption screen refactor
* Add test for retirement_age_for_person
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
* Rubocop
* update 22-23 form
* fix failures
* lint fixes
* remove whitespace
* remove commented code
* make spec file use translations instead of content
* update content
* lint fixes
* fix typo
* fix question wording
* fix failing spec
* add full stop
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
Co-authored-by: Dushan Despotovic <dushan@madetech.com>
2 years ago
baarkerlounger
a06a5f5896
Referral can be internal for homeless ( #561 )
2 years ago
Ted
780f0892c4
Fix other reason for leaving last settled validation
3 years ago
Paul Robert Lloyd
e51fede8e2
Use smart quotes
3 years ago
Stéphane Meny
b8d60a86ea
Import changes ( #470 )
3 years ago
kosiakkatrina
258626d5a9
Add local housing authority referral validation ( #456 )
...
* Add local housing authority referral validation
* Update validation message
3 years ago
kosiakkatrina
6c5391ad1c
Cldc 1065 soft validations ( #434 )
...
* change get_question form method to prioritise the routed to questions
* Add soft validation and interruption screen for basic rent
* get previous page that was routed to and display the same error for both soft validations
* Separate max and min error screens
* add a test for getting the previous page
* Update content and add more tests for previous page
3 years ago
kosiakkatrina
0d9520daed
Cldc 489 referral validation ( #427 )
...
* Only add errors if charges exist
* Add referral validations
* Switch order in if statement
* rubocop
* fix test
3 years ago
baarkerlounger
dec350e6f1
Relat data type ( #423 )
3 years ago
baarkerlounger
910f13d507
Household member validations ( #420 )
...
* Add missing ecstat validation
* Add compound validation errors to all involved fields
* Update ecstat values
* Update values in validations and tests
* Update rent rant values
* Add some helper methods for readability
3 years ago
kosiakkatrina
c2c49924a3
Cldc 491 rent and charges validations (part 1) ( #388 )
...
* move age validation tests to shared validation spec
* Add brent/tshortfall validation
* update period mappings
* Add scharge validation
* update num of weeks from period mapping
* fix test
* change period mappings in test
* Add tests for floats
* change error message content
* add supported housing scharge validation
* add other landlord validations
* refactor
* refactor validation and tests
* Add supcharg validations and refactor
* add total charge calculations
* move constants
* Fix tests and add missing validation messages
3 years ago
Dushan
e56830cb9c
CLDC-815-long-term-vision-validation ( #387 )
...
* add validation for condition_effects
* fixes
* review changes
* lint fixes
* update wrapper method
3 years ago
kosiakkatrina
ac8d41b4ba
Add reason and referral validations ( #376 )
...
* Add reason and referral validations
* extract method
3 years ago
kosiakkatrina
1cb5fd43b1
Add prevten validations ( #374 )
...
* Add prevten validations
* Fix indentation and extract a case_log method
* extract refuge method
3 years ago
kosiakkatrina
3488d96713
remove tenancy/referral validations ( #375 )
3 years ago
baarkerlounger
2ae94b01d7
Generically validate all numeric question min and maxes ( #362 )
...
* Generically validate all numeric question min and maxes
* Update error message
3 years ago
kosiakkatrina
526553d2cd
Update more reasonpref values and error message content ( #346 )
3 years ago
kosiakkatrina
87143fe13a
Change the numbering for the rest of homeless methods ( #342 )
3 years ago
kosiakkatrina
34ae256695
Update validation and db mapping for homeless ( #341 )
3 years ago
kosiakkatrina
e7f57315a5
Update referral validation numbers and clearing of the answers ( #339 )
...
* Update referral validation numbers and clearing of the answers
* refactor is_internal_transfer
3 years ago
baarkerlounger
a401cbba0f
Add tests
3 years ago
baarkerlounger
0f1f03aa8f
Refactor enums ( #321 )
...
* Remove enums
* Add some convenience methods to make validations more readable
* Gender chars instead of ints
* Remove incorrect API doc info for now
* More convenience methods
* Rename label from value method
* Wrapper hbrentshortfall
* Please the cop
3 years ago
kosiakkatrina
3f9cd65365
Household situation fixes ( #332 )
...
* content changes and prevloc validation
* add la validation to the property information section
* Fix the tests
3 years ago
Dushan
aea12947eb
CLDC-630: Household needs section ( #311 )
...
* household needs section change
* update enums
* fix specs
* spec fixes
* content updates to form
* fix failing spec
* remove hint text
* Update config/forms/2021_2022.json
Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com>
Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com>
3 years ago
kosiakkatrina
0a235dbc69
Household situation content ( #327 )
...
* update content
* add a different error message for homeless validation
3 years ago
kosiakkatrina
cd882d322f
add homelessness validation ( #319 )
3 years ago
kosiakkatrina
ab1a16fb58
Cldc 465 tenancy type validation ( #312 )
...
* Validate internal referrals and secure tenancy
* Fix referral validations and move referral validation from local_authority to household
* Move validation
* Add more error messages
* lint
* fix typo in test
* Check that the methods get called
* Fix lint
3 years ago
baarkerlounger
3b9c934279
Refactor validation specs ( #307 )
...
* Vacancy reason validations
* Rubocop
* Accessibility requirement specs
* Rename context
3 years ago
baarkerlounger
9d77a93859
Refactor validation specs ( #304 )
...
* Refactor other household member validation specs
* Remove dupes
* Tenancy type validation
* LA validations
* Benefits proportion validations
* Outstanding rent and shortfall validations
* Typo
* Net income hard validations
* First let vacancy reason validations
3 years ago
baarkerlounger
22e566e7ae
Refactor Reason for leaving last settled home validations ( #303 )
...
* Refactor other field validation
* Refactor reason for leaving last settled home validations
* Additional tests
* Remove dupe code
* Remove dupe validation
* Armed forces injured validations
* Armed forces
* Major repairs date validations
* Void date validations
3 years ago
baarkerlounger
ad8f99cabe
Refactor validation specs ( #297 )
...
* Unit tests
* Age validations
* Add todo
* Check all new records have correct validator
* Reasonable preference
* Pregnancy validations
* Spec
* Fix spec
3 years ago