Deployment guidelines for cash registers for India
This article is a deployment guide that shows how to enable the requirements for Goods and Services Tax (GST) in the Dynamics 365 Commerce app's localization for India. For more information about the localization for India, see Goods and Services Tax (GST) integration for cash registers for India.
Warning
The steps described in this article are applicable only to the legacy implementation of the GST integration for India that is based on the Retail software development kit (SDK). Starting in Commerce version 10.0.34, the GST integration for India supports the new independent packaging and extension model and can be used with the Commerce SDK and the Store Commerce app. The functionality can be enabled in the Feature management workspace in Commerce headquarters. For more details, see the prerequisites for the GST integration for cash registers for India. If you are using Commerce version 10.0.33 or earlier and are migrating to Commerce version 10.0.34 or later, follow the steps in Migrate to Commerce version 10.0.34 or later.
This functionality consists of extensions for the Commerce runtime (CRT) and point of sale (POS). To use this functionality, modify the configuration of the CRT extensions. You must also modify and build the POS projects. We recommend that use you an unmodified Retail SDK to make the changes that are described in this article. We also recommend that you use a source control system such as Microsoft Visual Studio Online (VSO) where no files have been changed yet. For information about how to install and use the Retail SDK, see the Retail software development kit (SDK) architecture.
Prerequisites
Make sure that the Visual C++ Redistributable Packages are present on the machine that you're running GST calculations on. For Cloud POS, and for Modern POS in online mode, this machine is Commerce Scale Unit. For Modern POS in offline mode, it's the Modern POS machine itself. For information about how to download the packages, see Download the Visual C++ Redistributable Packages.
Development environment
To set up a development environment so that you can test and extend the functionality, complete the following procedures.
The CRT extension components
Find the extension configuration file for CRT:
- Commerce Scale Unit: The file is named commerceruntime.ext.config, and it's in the bin\ext folder under the Microsoft Internet Information Services (IIS) Commerce Scale Unit site location.
- Local CRT on Modern POS: The file is named CommerceRuntime.MPOSOffline.Ext.config, and it's under the local CRT client broker location.
Register the CRT change in the extension configuration file, as shown in the following example.
<add source="assembly" value="Microsoft.Dynamics.Commerce.Runtime.TaxRegistrationIdIndia" /> <add source="assembly" value="Microsoft.Dynamics.Commerce.Runtime.GenericTaxEngine" />
Important
Keep the order of the extensions as shown above.
Warning
Do not edit the commerceruntime.config and CommerceRuntime.MPOSOffline.config files. These files aren't intended for any customizations.
The Commerce Scale Unit extension components
- Open the web.config file in the root folder under the IIS Commerce Scale Unit site location.
- Register the extensions in the extensionComposition section of the configuration file.
<add source="assembly" value="Microsoft.Dynamics.Retail.RetailServer.TaxRegistrationIdIndia" />
The ClientBroker extension components
- Open RetailProxy.MPOSOffline.ext.config under the local CRT client broker location.
- Register the Proxy extensions in the extensionComposition section of the configuration file.
<add source="assembly" value="Microsoft.Dynamics.Commerce.RetailProxy.TaxRegistrationIdIndia" />
The Modern POS extension components
To enable the Tax Registration ID extension, follow these steps.
Open the solution at RetailSdk\POS\ModernPOS.sln, and make sure that it can be compiled without errors. Also make sure that Modern POS can be run from Microsoft Visual Studio using the Run command. (Modern POS must not be customized. You must enable User Account Control [UAC], and uninstall previously installed instances of Modern POS.)
Enable the extension in the POS.Extensions\extensions.json file by adding the following lines:
{ "baseUrl": "Microsoft/TaxRegistrationId.IN" }
Build the solution.
Run Modern POS and test the functionality.
The Cloud POS extension components
To enable the Tax Registration ID extension, follow these steps.
Open the solution at RetailSdk\POS\CloudPOS.sln, and make sure that it can be compiled without errors.
Enable the extension in POS.Extensions\extensions.json by adding the following lines:
{ "baseUrl": "Microsoft/TaxRegistrationId.IN" }
Build the solution.
Run Cloud POS and test the functionality.
Set up required parameters in Headquarters
For more information, see Goods and Services Tax (GST) integration for cash registers for India.
Production environment
Follow these steps to create deployable packages that contain components, and to apply the packages in a production environment.
In the commerceruntime.ext.config and CommerceRuntime.MPOSOffline.Ext.config configuration files under the RetailSdk\Assets folder, add the following lines to the composition section.
<add source="assembly" value="Microsoft.Dynamics.Commerce.Runtime.TaxRegistrationIdIndia" /> <add source="assembly" value="Microsoft.Dynamics.Commerce.Runtime.GenericTaxEngine" />
Important
Keep the order of the extensions as shown above.
In the RetailProxy.MPOSOffline.ext.config configuration file under the RetailSdk\Assets folder, add the following lines to the composition section.
<add source="assembly" value="Microsoft.Dynamics.Commerce.RetailProxy.TaxRegistrationIdIndia" />
Update the web configuration file. In the RetailSDK\Packages\RetailServer\Code\web.config file, add the following lines to the extensionComposition section.
<add source="assembly" value="Microsoft.Dynamics.Retail.RetailServer.TaxRegistrationIdIndia" />
Enable the Tax Registration ID POS extension by adding the following lines to the RetailSDK\POS\Extensions\extensions.json file:
{ "baseUrl": "Microsoft/TaxRegistrationId.IN" }
Run msbuild for the whole Retail SDK to create deployable packages.
Apply the packages via LCS or manually. For more information, see Create retail deployable packages.
Migrate to Commerce version 10.0.34 or later
The steps described in this section are required if you are using Commerce version 10.0.33 or earlier and are migrating to version 10.0.34 or later. Follow the steps below to correctly update your Commerce environment.
- Update Commerce headquarters.
- In the Feature management workspace, enable India-specific features and distribute the changes to channels.
- Update Commerce runtime and exclude the following legacy India-specific extensions:
- Microsoft.Dynamics.Commerce.Runtime.TaxRegistrationIdIndia
- Microsoft.Dynamics.Commerce.Runtime.GenericTaxEngine