Skip to content

hmrc/income-tax-subscription-frontend

Repository files navigation

Apache-2.0 license Build Status Download

Income Tax Subscription Frontend

This is a Scala/Play frontend web UI that provides screens for an existing SA Individual to voluntarily subscribe to report their income from one or more of

  • Single Sole-Trader (self-employed) business
  • UK Property income
  • Overseas Property income

...on a quarterly basis and move away from the yearly Self-Assessment Tax Return.

  1. Quick start
  2. Persistence

Quick start

Prerequisites

How to start

Run the service with ITSA_SUBSC_ALL:

./scripts/start

Run the service with mininal downstreams:

./scripts/start --minimal

How to use

There are two main flows:

  • Agent sign up
  • Individual sign up

See Route files for more information.

Local

Staging

Requires HMRC VPN

Notes on behaviour

In Local and Staging, a stubbing system is used for recording user data. This prevents the display of the success page at report-quarterly/income-and-expenses/sign-up/client/confirmation as the stubs service will not persist, then provide an mtd itsa ref enrolment.

To work around this, visit the report-quarterly/income-and-expenses/sign-up/test-only/update-enrolments page, submit, then return to the confirmation page.

How to test

Persistence

Data is stored as key/value in Mongo DB. See json reads/writes implementations (especially tests) for details.

To connect to the mongo db provided by docker (recommended) please use

docker exec -it mongo-db mongosh

Various commands are available. Start with show dbs to see which databases are populated. Eg

  • show dbs
  • use
  • show tables
  • db[''].countDocuments()
  • db[''].find()
  • exit

License.

This code is open source software licensed under the Apache 2.0 License