Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 3.72 KB

README.md

File metadata and controls

56 lines (37 loc) · 3.72 KB

openIMIS Frontend Worker Voucher module

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.

License: AGPL v3 Total alerts

Main Menu Contributions

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

Other Contributions

  • core.Router: registering voucher/vouchers, voucher/vouchers/voucher, voucher/acquirement, voucher/assignment, voucher/price routes in openIMIS client-side router

Available Contribution Points

--- None ---

Dispatched Redux Actions

  • WORKER_VOUCHER_MUTATION, mutates and changes the state of worker voucher
  • WORKER_VOUCHER_ACQUIRE_GENERIC_VOUCHER, handles the process of acquiring a generic voucher for worker
  • WORKER_VOUCHER_ACQUIRE_SPECIFIC_VOUCHER, handles the process of acquiring a specific voucher for worker
  • WORKER_VOUCHER_ASSIGN_VOUCHERS, handles the assignment of one or more vouchers to workers
  • WORKER_VOUCHER_WORKER_VOUCHERS, fetches all worker vouchers associated with a particular employer
  • WORKER_VOUCHER_GET_WORKER_VOUCHER, fetches information about a specific worker voucher
  • WORKER_VOUCHER_VOUCHER_PRICES, fetches the voucher prices
  • WORKER_VOUCHER_MANAGE_VOUCHER_PRICE, manages and updates the price of worker vouchers for specific time period
  • WORKER_VOUCHER_DELETE_VOUCHER_PRICE, deletes the price of a worker voucher within the context of a specific time frame

Other Modules Listened Redux Actions

--- None ---

Other Modules Redux State Bindings

  • state.core.user, to access user info (rights,...)

Configurations Options

  • 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.