Pay button in PT configuration from mdms
The pay button is config in the mdms on basis of the login as employee, citizen or not login
the pay button is on the various screen
search screen pay button is there
the pt details screen
Technical Implementation Details:
the paybuttonconfig
is stored in the state and get it from there using
const disablepaybutton = get(
state.screenConfiguration.preparedFinalObject,
"paybuttonconfig",
{}
)
for the different login used it for the pay button
MDMS:
Mdms file found in
https://github.com/eNagarsewaU/ukd-mdms-data/blob/DEV_V1/data/uk/tenant/paybuttonconfig.json
here if the value is true means button will be not visible.
{ "tenantId": "uk", "moduleName": "tenant", "paybuttonconfig":[ { "citizen": true, "employee": false, "open" : true } ]}
for eg, in above JSON the citizen is set true means for the citizen the pay button is not enable or the citizen will not able to the tax with citizen login