This repository holds the files of the openIMIS Frontend Worker Voucher module. It is dedicated to be bootstrap development of openimis-fe_js modules, providing an empty (yet deployable) module.
Please refer to openimis-fe_js to see how to build and and deploy (in developement or server mode).
The module is built with rollup.
In development mode, you can use npm link
and npm start
to continuously scan for changes and automatically update your development server.
Workers and Vouchers ('worker.MainMenu') - it is displayed if "isWorker" variable is set to true.
Workers ('menu.workers') - workers list, it is displayed if "isWorker" variable is set to true.
Voucher List ('menu.voucherList') - vouchers list, it is displayed if user has 204001
right
Voucher Acquirement ('menu.voucherAcquirement') - voucher acquirement form, it is displayed if user has 204001
right
Voucher Assignment ('menu.voucherAssignment') - voucher assignment form, it is displayed if user has 204001
right
Administration ('admin.mainMenu') - it is displayed by default, main entry of admin module
Voucher Price Management ('menu.priceManagement') - voucher price management page, it is displayed if user has 205001
right
core.Router
: registeringvoucher/vouchers
,voucher/vouchers/voucher
,voucher/acquirement
,voucher/assignment
,voucher/price
routes in openIMIS client-side router
--- None ---
WORKER_VOUCHER_MUTATION
, mutates and changes the state of worker voucherWORKER_VOUCHER_ACQUIRE_GENERIC_VOUCHER
, handles the process of acquiring a generic voucher for workerWORKER_VOUCHER_ACQUIRE_SPECIFIC_VOUCHER
, handles the process of acquiring a specific voucher for workerWORKER_VOUCHER_ASSIGN_VOUCHERS
, handles the assignment of one or more vouchers to workersWORKER_VOUCHER_WORKER_VOUCHERS
, fetches all worker vouchers associated with a particular employerWORKER_VOUCHER_GET_WORKER_VOUCHER
, fetches information about a specific worker voucherWORKER_VOUCHER_VOUCHER_PRICES
, fetches the voucher pricesWORKER_VOUCHER_MANAGE_VOUCHER_PRICE
, manages and updates the price of worker vouchers for specific time periodWORKER_VOUCHER_DELETE_VOUCHER_PRICE
, deletes the price of a worker voucher within the context of a specific time frame
--- None ---
state.core.user
, to access user info (rights,...)
isWorker
: Specifies whether the individual should be classified and managed as a worker or a standard insuree. In Moldova, the Insuree entity is also used to represent workers. When set to true, the system displays 'Workers and Vouchers' instead of the default 'Insurees and Policies', aligning the interface with the specific needs of worker representation. Default: false.genericVoucherEnabled
: Specifies whether the system should enable the use of generic vouchers for the individual. When set to true, the system provides additional functionalities for handling generic vouchers, aligning the interface with the specific needs of voucher management. Default: false.