This is a Scala/Play Framework microservice that provides a UI to search a database of MTD VAT Software Providers. Having suitable software to submit VAT returns is a requirement of MTD VAT.
The list of software providers is loaded from the SoftwareProviders.json
file. To add new providers, update this file and the TestSoftwareProviders.json
file then run the tests.
To run all the dependent services and start software choices frontend, you can either use sm --start SOFTWARE_CHOICES_ALL -r
or sm2 --start SOFTWARE_CHOICES_ALL -r
if you are using sm2.
Alternatively, if you want to start the service individually, you can either use sm --start SOFTWARE_CHOICES_FRONTEND -r
or sm2 --start SOFTWARE_CHOICES_FRONTEND -r
if you are using sm2.
Prior to starting the service locally, make sure the instance running in service manager is stopped. This can be done by running either sm --stop SOFTWARE_CHOICES_FRONTEND
, or sm2 --stop SOFTWARE_CHOICES_FRONTEND
if you are using sm2.
- Clone this repository into the development environment on your machine.
- Open a terminal and navigate to the folder you cloned the service into.
- Run either
./run.sh
orsbt "run 9590" -Dapplication.router=testOnlyDoNotUseInAppConf.Routes
to start the service locally. - Ensure all dependent services are started, using the
SOFTWARE_CHOICES_ALL
service manager profile. - In a browser, navigate to
http://localhost:9590/making-tax-digital-software
.
This service can be used by both JavaScript users and non-Javascript users. If you want to test the service with no JavaScript enabled, disable it in your browser site settings and reload the page.
Each feature flag controls the corresponding functionality on the UI, as shown below:
business
: Businessesagent
: Agentsaccounting
: VAT record keepingspreadsheets
: BridgingviewReturn
: View submitted VAT returnsviewLiabilities
: Check what VAT you oweviewPayments
: View VAT payment historycognitive
: Cognitive impairmentsvisual
: Blindness or impaired visionhearing
: Deafness or impaired hearingmotor
: Motor or physical difficultiesfree
: Free versionwelsh
: Welsh
The service has two feature switches:
- To show the software provider details section for each software provider.
- Enable Welsh language
To set the feature switches, navigate to http://localhost:9590/making-tax-digital-software/test-only/feature-switch
.
To run the tests, run sbt test
.
This code is open source software licensed under the Apache 2.0 License.