openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Able to approve entitlements of a cycle that is still not approved

Open anthonymarkQA opened this issue 1 year ago • 0 comments

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

  1. Go to SP-MIS QA and login as QA
  2. Click on programs, then select an existing program named "test2"
  3. create a new cycle under that program
  4. click "prepare entitlements"
  5. Instead of clicking "to approve" button, click entitlements tab.
  6. highlight the entitlements by ticking the checkboxes
  7. click on action button then select approve.
  8. A modal should appear. click approve.
  9. Notice that i am able to approve the entitlements even if the cycle is not approved yet.

Expected behavior

  1. Should only be able to approve entitlements if cycle is already approved.
  2. Should be applied to OpenSPP that uses program modules.
  3. 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

Image

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.

anthonymarkQA avatar Aug 20 '24 07:08 anthonymarkQA