Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Pspcl iFix Adapter is a java standalone application, which will be running as cron job to fetch the bills and payments from PSPCL system and reconcile the same. And finally publish them to iFix core system.

Version

Current version : 1.0.0

Prerequisites

Before you proceed with the configuration, make sure the following pre-requisites are met.

  • Java 8

  • Postgres DB should be up and running

Features

pspcl-ifix-adapter fetches the pspcl bills and payments from PSPCL system based on account number that is mapped in MDMS (can be found in https://github.com/misdwss/mdms-mgramseva/blob/QA/data/pb/pspcl-integration/accountNumberGpMapping.json ). Once will get the bills and payments, below steps are there to reconcile and publish to the iFix Core system.

  1. Sort the pspcl bills and payments results based on 'BILL_ISSUE_DATE' and 'TXNDATE' respectively.

  2. Get the latest that is 0th index bill and payment result And check - is it reconciled already or not ?

  3. if reconciled already stop the reconciliation.

  4. if not reconciled , calculate the current bill (since in the pspcl bill result, we are getting all the accumulated bills together). And this calculated bill will become the 'actual current bill' of the current month.

    1. Calculated bill = (Curr_Bill - Last_Bill + Last_Payment).

    2. Curr_Bill : This is the pspcl bill that we get in the sorted 0th index pspcl bill result.

    3. Last_Bill : Will get this bill based 'DATE_READING_PREV' date.

    4. Last_Payment : Will pick up the record from the payment detail table with 'TXNDATE' as range from 'DATE_READING_PREV' & 'Current time'. And then finally sort and take the latest payment TXNDATE as Last_Payment record.

  5. Save a copy of pspcl bill (note that , in this bill , we are not saving the calculated bill ) and payment in DB.

  6. Publish the bill and payment as event type 'Demand' and 'Receipt' respectively with calculated actual bill and payment amount to the iFix Core system.

  7. Log the success or failure fiscal events to the DB.

Environment

Below are the list of environment variables :

Key

Value

Description

pspcl.fetch.bill.url

pspcl.fetch.payment.url

ifix.host

egov.mdms.host

keycloak.host

keycloak.credentials.clientid

keycloak.credentials.clientsecret

fiscal.event.tenantId

demand.coaCode

receipt.coaCode

fiscal.event.receiver

aspect.enabled

Configurations and Setup

Update all the configuration in the dev.yaml, qa.yml, prod.yaml file.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.