@openimis/fe-policyholder
v1.5.1
Published
openIMIS Frontend PolicyHolder module
Downloads
203
Keywords
Readme
openIMIS Frontend Policy Holder reference module
This repository holds the files of the openIMIS Frontend Policy Holder reference module. It is dedicated to be deployed as a module of openimis-fe_js.
Main Menu Contributions
None
Other Contributions
core.Router
: registeringpolicyHolders
,policyHolders/policyHolder
routes in openIMIS client-side routerinsuree.MainMenu
:Policy Holders (
menu.policyHolders
translation key)invoice.SubjectAndThirdpartyPicker
: providing Policy Holder picker for Invoice module
Available Contribution Points
policyHolder.TabPanel.label
ability to extend Policy Holder tab panel with a labelpolicyHolder.TabPanel.panel
ability to extend Policy Holder tab panel with a panel displayed on click on an appropriate labelpolicyHolder.PolicyHolderInsuree.calculation
placeholder forCalculation
module contributions
Published Components
policyHolder.ConfigBasedPicker
, generic picker, which can display options from JSON objectpolicyHolder.LegalFormPicker
, picker for Legal Form (from JSON stored in the module configuration)policyHolder.ActivityCodePicker
, picker for Activity Code (from JSON stored in the module configuration)policyHolder.PolicyHolderPicker
, picker for Policy HolderpolicyHolder.PolicyHolderInsureePicker
, picker for Policy Holder InsureepolicyHolder.PolicyHolderContributionPlanBundlePicker
, picker for Policy Holder Contribution Plan Bundle
Dispatched Redux Actions
POLICYHOLDER_POLICYHOLDERS_{REQ|RESP|ERR}
, fetching Policy Holders (as triggered by the searcher)POLICYHOLDER_POLICYHOLDER_{REQ|RESP|ERR}
, fetching Policy HolderPOLICYHOLDER_POLICYHOLDER_CLEAR
, clearing Policy Holder when unmounting formPOLICYHOLDER_POLICYHOLDERINSUREES_{REQ|RESP|ERR}
, fetching Policy Holder Insurees (as triggered by the searcher)POLICYHOLDER_PICKERPOLICYHOLDERINSUREES_{REQ|RESP|ERR}
, fetching Policy Holder Insurees for Policy Holder Insurees PickerPOLICYHOLDER_POLICYHOLDERCONTRIBUTIONPLANBUNDLES_{REQ|RESP|ERR}
, fetching Policy Holder Contribution Plan Bundles (as triggered by the searcher)POLICYHOLDER_PICKERPOLICYHOLDERCONTRIBUTIONPLANBUNDLES_{REQ|RESP|ERR}
, fetching Policy Holder Contribution Plan Bundles for Policy Holder Contribution Plan Bundle PickerPOLICYHOLDER_CODE_FIELDS_VALIDATION_{REQ|RESP|ERR}
, validating Policy Holder code fieldPOLICYHOLDER_CODE_FIELDS_VALIDATION_CLEAR
, clearing validation state of Policy Holder codePOLICYHOLDER_CODE_FIELDS_VALIDATION_SET_VALID
, setting Policy Holder code as a valid onePOLICYHOLDER_MUTATION_{REQ|ERR}
, sending a mutationPOLICYHOLDER_CREATE_POLICYHOLDER_RESP
, receiving a result of create Policy Holder mutationPOLICYHOLDER_UPDATE_POLICYHOLDER_RESP
, receiving a result of update Policy Holder mutationPOLICYHOLDER_DELETE_POLICYHOLDER_RESP
, receiving a result of delete Policy Holder mutationPOLICYHOLDER_CREATE_POLICYHOLDERINSUREE_RESP
, receiving a result of create Policy Holder Insuree mutationPOLICYHOLDER_UPDATE_POLICYHOLDERINSUREE_RESP
, receiving a result of update Policy Holder Insuree mutationPOLICYHOLDER_DELETE_POLICYHOLDERINSUREE_RESP
, receiving a result of delete Policy Holder Insuree mutationPOLICYHOLDER_REPLACE_POLICYHOLDERINSUREE_RESP
, receiving a result of replace Policy Holder Insuree mutationPOLICYHOLDER_CREATE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP
, receiving a result of create Policy Holder Contribution Plan Bundle mutationPOLICYHOLDER_UPDATE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP
, receiving a result of update Policy Holder Contribution Plan Bundle mutationPOLICYHOLDER_DELETE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP
, receiving a result of delete Policy Holder Contribution Plan Bundle mutationPOLICYHOLDER_REPLACE_POLICYHOLDERCONTRIBUTIONPLANBUNDLE_RESP
, receiving a result of replace Policy Holder Contribution Plan Bundle mutation
Other Modules Listened Redux Actions
None
Other Modules Redux State Bindings
state.core.user
, to access user info (rights,...)state.insuree
, retrieving Insurees when creating Policy Holder Insureestate.contributionPlan
, retrieving Contribution Plan Bundles when creating Policy Holder Contribution Plan Bundle
Configurations Options
policyHolderFilter.rowsPerPageOptions
: pagination page size options in PolicyHolderSearcher component (Default:[10, 20, 50, 100]
)policyHolderFilter.defaultPageSize
: pagination pre-selected page size options in PolicyHolderSearcher component (Default:10
)policyHolderFilter.legalFormOptions
: options for LegalFormPicker component (Default:[{ "value": "1", "label": { "en": "Personal Company", "fr": "Persone physique" } }, { "value": "2", "label": { "en": "Limited Risk Company", "fr": "Société à risque limité" } }, { "value": "3", "label": { "en": "Association", "fr": "Association" } }, { "value": "4", "label": { "en": "Government", "fr": "Gouvernement" } }, { "value": "5", "label": { "en": "Union", "fr":"Syndicat" } }]
)
policyHolderFilter.activityCodeOptions
: options for ActivityCodePicker component (Default:[{ "value": "1", "label": { "en": "Retail", "fr": "Vente au détails" } }, { "value": "2", "label": { "en": "Industry", "fr": "Industrie" } }, { "value": "3", "label": { "en": "Building", "fr": "Construction" } }, { "value": "4", "label": { "en": "Sailing", "fr": "Maritime" } }, { "value": "5", "label": { "en": "Services", "fr":"Services" } }]
)
policyHolderForm.phoneValidation
: Phone field validation (regex + error message when regex does not match) (Default:"phoneValidation": { "regex": /^[0-9]*$/, "regexMsg": { "en": "Invalid phone number", "fr": "Numéro de téléphone invalide" } }
)
policyHolderForm.faxValidation
: Fax field validation (regex + error message when regex does not match) (Default:"faxValidation", { "regex": /^[0-9]{8,9}$/, "regexMsg": { "en": "Invalid fax number", "fr": "Numéro de fax invalide" } }
)
policyHolderForm.paymentReferenceValidation
: PaymentReference field validation (regex + error message when regex does not match) (Default:"paymentReferenceValidation", { "regex": /.+/, "regexMsg": { "en": "Invalid payment reference", "fr": "Référence de payement invalide" } }
)
policyHolderForm.accountancyAccountValidation
: AccountancyAccount field validation (regex + error message when regex does not match) (Default:"accountancyAccountValidation", { "regex": /.+/, "regexMsg": { "en": "Invalid accountancy account", "fr": "Numéro de compte comptable invalide" } }
)