Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Allow users to select a child benefit stop date in years up to 2013 #140

Merged
merged 2 commits into from
Jun 15, 2016

Conversation

leenagupte
Copy link
Contributor

Trello Story: https://trello.com/c/dbyKP467/168-child-benefit-tax-calculator-change-stop-date-in-question-2-to-4-years-in-the-past

Motivation

A user can calculate their Child Benefit tax back to 7Jan 2013 in tax year 2012/13, as a consequence the Stop date should also include 2013 in the drop down boxes.
As the box is optional, if an end date isn't included, the calculator would calculate for a whole year, which isn't appropriate if the payments stopped during the year.

Dates are added to both selectors determining how many years to include (back and forward) starting from the current year.

Changed the stop year drop-down to include years up to four years ago.

Factcheck

Child benefit tax calculator

Expected Changes

URL on GOV.UK

  • Stop date should display years from 2013

screen shot 2016-05-31 at 18 30 37

Before

screen shot 2016-05-31 at 18 31 33

After

screen shot 2016-06-01 at 11 52 36

The child benefit start and stop dates are dynamically created lists.
Changed the child benefit stop date to populate years upto four years in the past.
@pmanrubia
Copy link
Contributor

LGTM

1 similar comment
@sistephens
Copy link

LGTM

@leenagupte leenagupte merged commit f198bd1 into master Jun 15, 2016
pmanrubia added a commit that referenced this pull request Aug 16, 2016
@pmanrubia pmanrubia mentioned this pull request Aug 16, 2016
pmanrubia added a commit that referenced this pull request Aug 16, 2016
@thomasleese thomasleese deleted the add-2013-to-stop-year branch April 18, 2018 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants