Skip to content

fe-contract 1.5.2

Install from the command line:
Learn more about npm packages
$ npm install @openimis/fe-contract@1.5.2
Install via package.json:
"@openimis/fe-contract": "1.5.2"

About this version

openIMIS Frontend Contract module

This repository holds the files of the openIMIS Frontend Contract reference module. It is dedicated to be deployed as a module of openimis-fe_js.

License: AGPL v3

Main Menu Contributions

None

Other Contributions

  • core.Router: registering contracts, contracts/contract route in openIMIS client-side router

  • invoice.MainMenu:

    Contracts (menu.contracts translation key)

  • invoice.SubjectAndThirdpartyPicker: providing Contract picker for Invoice module

Available Contribution Points

  • contract.TabPanel.label ability to extend Contract tab panel with a label
  • contract.TabPanel.panel ability to extend Contract tab panel with a panel displayed on click on an appropriate label
  • contract.ContractDetails.calculation placeholder for Calculation module contributions

Published Components

  • contract.ContractPicker, picker for Contract
  • contract.ContractStatePicker, picker for Contract State

Dispatched Redux Actions

  • CONTRACT_CONTRACTS_{REQ|RESP|ERR}, fetching Contracts (as triggered by the searcher)
  • CONTRACT_CONTRACT_{REQ|RESP|ERR}, fetching Contract
  • CONTRACT_CONTRACTDETAILS_{REQ|RESP|ERR}, fetching Contract Details (as triggered by the searcher)
  • CONTRACT_MUTATION_{REQ|ERR}, sending a mutation
  • CONTRACT_CREATE_CONTRACT_RESP, receiving a result of create Contract mutation
  • CONTRACT_UPDATE_CONTRACT_RESP, receiving a result of update Contract mutation
  • CONTRACT_DELETE_CONTRACT_RESP, receiving a result of delete Contract mutation
  • CONTRACT_SUBMIT_CONTRACT_RESP, receiving a result of submit Contract mutation
  • CONTRACT_APPROVE_CONTRACT_RESP, receiving a result of approve Contract mutation
  • CONTRACT_APPROVE_CONTRACT_BULK_RESP, receiving a result of approve Contract bulk mutation
  • CONTRACT_COUNTER_CONTRACT_RESP, receiving a result of counter Contract mutation
  • CONTRACT_COUNTER_CONTRACT_BULK_RESP, receiving a result of counter Contract bulk mutation
  • CONTRACT_AMEND_CONTRACT_RESP, receiving a result of amend Contract mutation
  • CONTRACT_CREATE_CONTRACTDETAILS_RESP, receiving a result of create Contract Details mutation
  • CONTRACT_UPDATE_CONTRACTDETAILS_RESP, receiving a result of update Contract Details mutation
  • CONTRACT_DELETE_CONTRACTDETAILS_RESP, receiving a result of delete Contract Details mutation

Other Modules Listened Redux Actions

None

Other Modules Redux State Bindings

  • state.core.user, to access user info (rights,...)
  • state.policyHolder, to retrieve Policy Holders and Policy Holder Insurees for their respective pickers

Configurations Options

  • contractForm.updatable: list of states of an updatable Contract (Default: [1,2,11])
  • contractForm.approvable: list of states of an approvable Contract (Default: [4])
  • contractFilter.contractStateOptions: options for ContractStatePicker component (Default:
    [{
        "value": "1",
        "label": {
            "fr": "Demande d'information",
            "en": "Request for information"
        }
    }, {
        "value": "2",
        "label": {
            "fr": "Brouillon",
            "en": "Draft"
        }
    }, {
        "value": "3",
        "label": {
            "fr": "Offre",
            "en": "Offer"
        }
    }, {
        "value": "4",
        "label": {
            "fr": "En negociation",
            "en": "Negotiable"
        }
    }, {
        "value": "5",
        "label": {
            "fr": "Apprové",
            "en": "Executable"
        }
    }, {
        "value": "6",
        "label": {
            "fr": "Addendum",
            "en": "Addendum"
        }
    }, {
        "value": "7",
        "label": {
            "fr": "En cours",
            "en": "Effective"
        }
    }, {
        "value": "8",
        "label": {
            "fr": "Appliqué",
            "en": "Executed"
        }
    }, {
        "value": "9",
        "label": {
            "fr": "Suspendu",
            "en": "Disputed"
        }
    }, {
        "value": "10",
        "label": {
            "fr": "Terminé",
            "en": "Terminated"
        }
    }, {
        "value": "11",
        "label": {
            "fr": "Révision demandé",
            "en": "Counter"
        }
    }]

)

Details


Assets

  • fe-contract-1.5.2.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0