openspp-modules
openspp-modules copied to clipboard
Able to approve entitlements of a cycle that is still not approved
Describe the bug I am able to approve the entitlements within a cycle even though the cycle is still not approved. (Kindly review this ticket carefully if it is indeed an issue or not.) To Reproduce
- Go to SP-MIS QA and login as QA
- Click on programs, then select an existing program named "test2"
- create a new cycle under that program
- click "prepare entitlements"
- Instead of clicking "to approve" button, click entitlements tab.
- highlight the entitlements by ticking the checkboxes
- click on action button then select approve.
- A modal should appear. click approve.
- Notice that i am able to approve the entitlements even if the cycle is not approved yet.
Expected behavior
- Should only be able to approve entitlements if cycle is already approved.
- Should be applied to OpenSPP that uses program modules.
- NOTE: if auto approve entitlements is enabled, approving a cycle should automatically set its entitlements to approved if possible.(if funds are enough etc..)
Screenshots
Additional context
🔔 Note: This ticket should address common considerations without including country-specific content. Please ensure all references are generic and applicable across various contexts.