Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.
This article is a deployment guide that shows how to enable the requirements for Goods and Services Tax (GST) in the Microsoft 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 apply 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. You can enable the functionality 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're 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. Use an unmodified Retail SDK to make the changes that are described in this article. Also, use a source control system such as Microsoft Visual Studio Online (VSO) where no files are 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. You can find it 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. You can find it 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 in the preceding list.
Warning
Don't 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 compiles without errors. Also make sure that you can run Modern POS from Microsoft Visual Studio by using the Run command. (Don't customize Modern POS. 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 compiles 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 in the preceding list.
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
If you're using Commerce version 10.0.33 or earlier and want to migrate to version 10.0.34 or later, complete the steps in this section. Follow the steps 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