This document summarizes the openIMIS features provided by the Contrinutions and Payments module.

The module features are, among others, used within the scope of Beneficiary Enrollment

Highlights of the database scheme:

Questions:

Business logic and data access layer

Main files in the legacy are:

Mostly CRUD logic, some easy validations, 3 calls to usp detailed below.

→ Will migrate “as-is”

Policy (status) update on contribution payment received

Once payment(s) is (are) received and cover the expected contribution(s) amount (and  the policy value), policy status changes and become either (based on tblIMISDefaults.ActivationOption ‘legacy’ parameter):

Note: from the policy form/searcher, users also probably need to be able to ‘interactively’ switch from ‘Ready’ to ‘Active’ (missing mutation in policy module ?).

→ We’ll add into the policy module a listener on “savePayment” so that on payment save, if the payment match the contribution we’ll be able to update (if needed) the contribution status.

Logic in Stored Procedures

IN SCOPE as relative to contribution/payment and used

Those are the only procedures in the scope. All others (concerning extracts and reports or standalone ones not used by the web servers) are going to be Out of scope.

Screens

We’re mostly following the existing structure with two divergences:

List contributions

As is - see: Find Contribution

Update: selecting a specific contribution will lead to contribution details (not to family screen as now). We’ll add a direct link to familiy (as exists already in other table) but it won’t be the “main” activity on click.

Contribution details


As is - see: Contribution Page

On screen validations

  1. a) If the Contribution paid matches the price of the policy:

  2. b) If the contribution paid is lower than the price of the policy:

  3. c) If the contribution is higher than the price of the policy:

Payment list

New screen. Missing from existing screens, to add as an item below contribution. Same logic as other search/list screens.

Search based on

Will include buttons to show/edit/add new payment - which is not possible in the legacy.

Payment can (but /must/ not) be linked to a specific contribution on creation - as part of the “edit” part or as a separated action “match to contribution”

Payment detail

Missing from existing screens.

Out of scope