This document describes the OpenSPP Auto-Update Entitlements module within the OpenSPP platform. This module enhances the management of entitlement lifecycles by automatically updating entitlement states when program cycles end. This automation streamlines benefit administration and provides a more accurate view of benefit utilization.
The OpenSPP Auto-Update Entitlements module primarily focuses on:
- Automating Entitlement State Transitions: Automatically updates the status of entitlements at the end of a program cycle based on their redemption status.
- Improving Data Accuracy: Provides a more accurate reflection of entitlement utilization by automatically transitioning entitlements to appropriate states (e.g., "Partially Redeemed/Paid to Beneficiary", "Redeemed/Paid to Beneficiary").
- Reducing Manual Effort: Eliminates the need for manual updates of entitlement states, freeing up program administrators to focus on other tasks.
- OpenSPP Entitlement Transactions:
- Heavily relies on this module to access transaction histories associated with entitlements.
- Uses transaction data to determine the redemption status of entitlements and trigger appropriate state updates.
- g2p_programs:
- Integrates with the core program management module to access program cycle data.
- Leverages cycle end dates to initiate the automatic update process for entitlements associated with the ending cycle.
- OpenSPP Programs:
- Builds upon the OpenSPP Programs module's functionality for managing both cash and in-kind entitlements.
- Extends entitlement models and views to accommodate the automatic state update logic.
- Cycle End State Check: When a program cycle is marked as ended, the module automatically analyzes the transaction history of each associated entitlement.
- Entitlement State Logic: Based on transaction data, the module
applies the following logic to update entitlement states:
- Partially Redeemed/Paid to Beneficiary: If an entitlement has transactions but still has a remaining balance, its state changes to "Partially Redeemed/Paid to Beneficiary".
- Redeemed/Paid to Beneficiary: If an entitlement has been fully redeemed with no remaining balance, its state transitions to "Redeemed/Paid to Beneficiary".
- Unredeemed: If an entitlement has no associated transactions, its state remains unchanged.
- UI Enhancements:
- Modifies the cycle view to automatically mark a cycle as expired when its end date is in the past.
- Extends entitlement views to display the calculated
entitlement_balance
based on the associated transaction history.
The OpenSPP Auto-Update Entitlements module improves the accuracy and efficiency of entitlement management in OpenSPP. By automating state transitions based on actual benefit utilization, it provides program administrators with a more reliable view of program operations while reducing manual administrative tasks.
Important
This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. More details on development status
Table of contents
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
- OpenSPP.org
Current maintainers:
This module is part of the OpenSPP/openspp-modules project on GitHub.
You are welcome to contribute.