eChallan Calculator service is used to calculate the echallan amount based on the details present in echallan request. This module is designed in such a way that it can be used to serve echallan for different type of service.
Before you proceed with the configuration, make sure the following pre-requisites are met -
Java 8
Kafka server is up and running.
PSQL server is running and a database is created to store eChallan Calculator Application data.
Following services should be up and running:
egov-mdms
echallan-services
billing-service
echallan service internally call echallan-calculator to generate demand.
Based on the tax head and tax amount defined in echallan request, echallan calculator service creates the demand.
After Demand creation, it calls the billing service to generate the fees.
MDMS Config
Define the tax period in the below MDMS file for the business service which is allowed in echallan service.
https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/BillingService/TaxPeriod.json
Define the taxhead in the below MDMS file for the business service which is allowed in echallan service.
https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/BillingService/TaxHeadMaster.json
Define the action and role action mapping for the API’s in the below MDMS files.
Add MDMS configs required for eChallan Service and calculator and restart MDMS service.
Deploy the latest version of eChallan Service and calculator.
Add eChallan Service persister yaml path in persister configuration and restart persister service
Add Role-Action mapping for API’s.
echallan-calculator will be integrated with echallan-services. echallan-services internally invoke the echallan-calculator service to calculate and generate demand for the echallan request.
eChallan calculator application is used to calculate the eChallan Fees based on the data mentioned in echallan creation. Based on the tax amount mentioned in the echallan, demand is created. So because of eChallan calculator, the calculation and demand generation logic will be separated out from eChallan services. So in future, if calculation logic needs to modify then changes can be carried out for each implementation without modifying the eChallan services.
eChallan service application needs to call echallan-calculator/v1/_calculate API to calculate and generate the demand for the eChallan application.
TBD
Title
Link
API Swagger Contract
eChallan Service Document
Title
Link
echallan-calculator/v1/_calculate
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.