Skip to content

Commit

Permalink
Add 'Temporary trade' option no-returns-reason page (#1223)
Browse files Browse the repository at this point in the history
* Add 'Temporary trade' option no-returns-reason page

https://eaflood.atlassian.net/browse/WATER-4612

During a previous PR - ['Change 'Transfer licence' reason for 'No returns needed' journey'](#1217) -
the 'Temporary trade' option was missed and was not added to the 'Why no returns required?' page.

This PR is focused on adding the 'Temporary trade' option to the 'Why no returns required?' page.
  • Loading branch information
rvsiyad authored Aug 1, 2024
1 parent 7f12a88 commit 3bf5ef7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/lib/static-lookups.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const returnRequirementReasons = {
'change-to-special-agreement': 'Change to special agreement',
'error-correction': 'Error correction',
'extension-of-licence-validity': 'Limited extension of licence validity (LEV)',
'licence-conditions-do-not-require-returns': 'Licence conditions do not require returns',
'major-change': 'Major change',
'minor-change': 'Minor change',
'name-or-address-change': 'Licence holder name or address change',
Expand All @@ -47,8 +48,8 @@ const returnRequirementReasons = {
'returns-exception': 'Returns exception',
'succession-or-transfer-of-licence': 'Succession or transfer of licence',
'succession-to-remainder-licence-or-licence-apportionment': 'Succession to remainder licence or licence apportionment',
'transfer-and-now-chargeable': 'Licence transferred and now chargeable',
'licence-conditions-do-not-require-returns': 'Licence conditions do not require returns'
'temporary-trade': 'Temporary trade',
'transfer-and-now-chargeable': 'Licence transferred and now chargeable'
}

const sources = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const Joi = require('joi')

const VALID_VALUES = [
'abstraction-below-100-cubic-metres-per-day',
'licence-conditions-do-not-require-returns',
'returns-exception',
'licence-conditions-do-not-require-returns'
'temporary-trade'
]

/**
Expand Down
11 changes: 8 additions & 3 deletions app/views/return-requirements/no-returns-required.njk
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,20 @@
value: 'abstraction-below-100-cubic-metres-per-day',
checked: reason == 'abstraction-below-100-cubic-metres-per-day'
},
{
text: 'Licence conditions do not require returns',
value: 'licence-conditions-do-not-require-returns',
checked: reason == 'licence-conditions-do-not-require-returns'
},
{
text: 'Returns exception',
value: 'returns-exception',
checked: reason == 'returns-exception'
},
{
text: 'Licence conditions do not require returns',
value: 'licence-conditions-do-not-require-returns',
checked: reason == 'licence-conditions-do-not-require-returns'
text: 'Temporary trade',
value: 'temporary-trade',
checked: reason == 'temporary-trade'
}
]
}) }}
Expand Down

0 comments on commit 3bf5ef7

Please sign in to comment.