...
Calculate water charge and taxes based on billing slab.
Calculate meter reading charge for water connection
Generate demand for penalty feature
Scheduler for generating the demand(for non metered connection)
Deployment Details
Deploy the latest version of ws-service and ws-calculator
Add water-persist.yml & water-meter.yml file in config folder in git and add that path in persister . (The file path is to be added in environment yaml file in param called
persist-yml-path
)
Configuration Details
MDMS Configuration
...
Code Block |
---|
{ "category": "PENALTY", "service": "WS", "name": "Penalty", "code": "10201", "isDebit": false, "isActualDemand": true, "order": "3", "isRequired": false, "IsBillamend": true }, { "category": "TAX", "service": "WS", "name": "Water adhoc penalty", "code": "WS_TIME_ADHOC_PENALTY", "isDebit": false, "isActualDemand": true, "order": "6", "isRequired": false, "IsBillamend": false }, |
ws Calculator penalty configuration:
...
Use case 1 : Fixed percentage on outstanding without penalty
Use case 2 : Fixed percentage on current month
Use case 3 : Fixed percentage on outstanding including penalty
Note : All above are applied to the running month only.
Use case 4 : Fixed percentage on outstanding applied for every month on the outstanding amount respectively (not implemented)
Tech configs:
Use case 1:
"type": "Fixed",
"subType": "outstandingWithoutPenalty"
Use case 2:
"type": "Fixed",
"subType": "currentMonth",
Use Case 3:
"type": "Fixed",
"subType": "outstanding",
We have Total 4 types of penalty in the system:
Fixed - Current month: This is the penalty will be applied on the current month amount based on the rate (%) given in the configuration.
Code Block |
---|
{
"tenantId": "pb",
"moduleName": "ws-services-calculation",
"Penalty": [
{
"type": "FIXED",
"subType": "currentMonth",
"rate": 10,
"amount":null,
"minAmount": null,
"applicableAfterDays": 10,
"flatAmount": null,
"fromFY": "2022-23",
"startingDay": "1/01/2022"
}
]
} |
Fixed - outstanding: This is the penalty applied on the total outstanding amount including previously applied penalties based on the rate (%) given in the configuration.
Code Block |
---|
{
"tenantId": "pb",
"moduleName": "ws-services-calculation",
"Penalty": [
{
"type": "FIXED",
"subType": " |
...
outstanding", "rate": 10, "amount":null, "minAmount": null, "applicableAfterDays": 10, "flatAmount": null, "fromFY": "2022-23", "startingDay": "1/01/2022" } ] } |
Fixed - outstandingoutstandingWithoutPenalty: This is the penalty applied on the total pending amount till the current month amount outstanding amount excluding previously applied penalties based on the rate (%) given in the configuration.
Code Block |
---|
{ "tenantId": "pb", "moduleName": "ws-services-calculation", "Penalty": [ { "type": "FIXED", "subType": "outstandingoutstandingWithoutPenalty", "rate": 10, "amount":null, "minAmount": null, "applicableAfterDays": 10, "flatAmount": null, "fromFY": "2022-23", "startingDay": "1/01/2022" } ] } |
...
Code Block |
---|
{ "tenantId": "pb", "moduleName": "ws-services-calculation", "Penalty": [ { "type": "FLAT", "subType": "currentMonth", "rate": 0null, "amount": 15, "minAmount": null, "applicableAfterDays": 10, "flatAmount": null, "fromFY": "2022-23", "startingDay": "1/01/2022" } ] } |
...
Code Block |
---|
{ "tenantId": "pb", "moduleName": "ws-services-calculation", "Penalty": [ { "type": "FLAT", "subType": "outstanding", "rate": 0null, "amount": 15, "minAmount": null, "applicableAfterDays": 10, "flatAmount": null, "fromFY": "2022-23", "startingDay": "1/01/2022" } ] } |
...