kosiakkatrina
bf8587e9fb
Add care home charges validation ( #682 )
2 years ago
Stéphane Meny
4fa32a1619
CLDC-1304: Export changes needed by CDS ( #650 )
2 years ago
Stéphane Meny
4d96381dd7
CLDC-1285: Setting pregnancy to yes is allowed if a tenant's age is unknown ( #638 )
2 years ago
baarkerlounger
d406acd136
Remove organisation LAs since validation is no longer required ( #637 )
2 years ago
kosiakkatrina
88fec8e5ab
Cldc 1223 pregnancy soft validations ( #602 )
...
* update hard validation limits for pregnancy age, remove hard validation if there are no females at all
* Add soft validations for pregnancy
* make the error message consistent
* Only check the values for the members with details known in the household
* Show interruption screen when resident details are updated
* Route back to check answers after an interruption screen and back to previous page if no is selected on the interruption screen
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* update validation messages
* fix a test
* fix a typo
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
2 years ago
baarkerlounger
490ebee4f6
Enable better other field validation labels
2 years ago
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
baarkerlounger
9f738b53e5
CLDC-1224: Tenancy type and tenancy length ( #578 )
...
* Fix value mapping for tenancy type 22/23
* Update secure helper
* Null safe
* Spec update
* Update mandatory
* Use helper
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
Dushan
26c0107779
add check to prevent error on hhmemb if joint is nil ( #560 )
...
* add failing spec
* add check to prevent error on hhmemb if joint is nil
2 years ago
Dushan
69bdfb2e5b
CLDC-744-joint-tenancy-validation ( #549 )
...
* add joint tenancy validation
* fix validation and spec
* improvements
* updates
* lint fixes
* fix typo
* change message displayed on hhmemb page
2 years ago
Ted
780f0892c4
Fix other reason for leaving last settled validation
3 years ago
Paul Robert Lloyd
e2b36ddae5
Include full stops in hint text
3 years ago
Paul Robert Lloyd
e51fede8e2
Use smart quotes
3 years ago
Stéphane Meny
2643e707ae
Update hbrentshortfall values and import corrections ( #514 )
3 years ago
kosiakkatrina
06adfbaf6d
remove la_known ( #505 )
...
* remove la_known
* lint
3 years ago
baarkerlounger
13cbb13d8c
Postcode format
3 years ago
baarkerlounger
f4de4e35a3
Add error to postcode for LA validation
3 years ago
Stéphane Meny
217ce62a82
Reduce differences between imported values and saved values ( #486 )
...
* Compare imported values and saved values
* Remove London validations
* 2021-2022 form fixes
* Code review changes
3 years ago
baarkerlounger
e6e2c00abd
Add validation
3 years ago
baarkerlounger
4ef43c8738
Add validation
3 years ago
baarkerlounger
829e199478
Move LA validation to LA validation file
3 years ago
Stéphane Meny
b8d60a86ea
Import changes ( #470 )
3 years ago
kosiakkatrina
2b9cb6f257
Fix financial validation ( #465 )
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
kosiakkatrina
c43e730254
Cldc 657 full postcodes ( #421 )
...
* Rename full postcode columns
* Normalise the postcodes
* Fix test
3 years ago
Dushan
b72eb9f3fc
CLDC-667 newprop derived variable ( #426 )
...
* Update keys of rsnvac for first lets
Making it match with what is in the data dictionary. It was a wuick enough
fix to be included in this branch since it pairs well with the newprop derived
variable implementation
* add newprop derived variable and tests
* fixes
* use ternary statement for newprop derivation
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
612b29122b
Cldc 491 rent and charges validations ( #411 )
...
* Add rent ranges table and basic hard range validation
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* Add import rent ranges rake task
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* Update the rent range validation to validate all related fields and check for the correct collection year
* Add ranges data
* add error messages
* Add readme step
* extract get collection year method
* rename method
* create instead of find and create laRentRange record
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
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
8d861f4d20
CLDC-812 rent type validation ( #391 )
...
* intermediate_rent_product_name validation
* add wrapper method
* include in case log
* review changes
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
baarkerlounger
b9a5ac80c3
Update london postcode validation error message
3 years ago
baarkerlounger
ea6122fe99
CLDC-663: Weekly total shortfall derived variable ( #385 )
...
* Update HB value mappings
* Derive Weekly shortfall value
* Reset weekly total shortfall when not applicable
3 years ago
baarkerlounger
02cb31947e
Compare as float ( #384 )
3 years ago
baarkerlounger
7d3a31d4cd
CLDC-902: London location validation ( #378 )
...
* Also add london borough error message to postcode field
* Rubocop
* Test timeout rescue
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
kosiakkatrina
8ac58aed3a
Add max beds validation ( #337 )
3 years ago
baarkerlounger
a401cbba0f
Add tests
3 years ago