(feat) O3-5413: Add REFUND_REQUESTED and REFUNDED bill statuses#108
(feat) O3-5413: Add REFUND_REQUESTED and REFUNDED bill statuses#108UjjawalPrabhat wants to merge 4 commits intoopenmrs:mainfrom
Conversation
|
@NethmiRodrigo @wikumChamith @ibacher Could you please review this PR? |
|
@UjjawalPrabhat thank you for the work done, the changes LGTM, but if you don't mind, For when rejecting a refund request (REFUND_REQUESTED → PAID), consider clearing the refund request metadata for clarity. (Optional but could make the system cleaner when cleared) |
NethmiRodrigo
left a comment
There was a problem hiding this comment.
Thanks @UjjawalPrabhat, but can we have a separate endpoint to handle refunds ?
The whole point of recording that metadata is to have this record for reporting or auditing purposes so clearing it would be bad |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #108 +/- ##
============================================
- Coverage 26.73% 26.51% -0.22%
- Complexity 487 489 +2
============================================
Files 190 191 +1
Lines 4309 4359 +50
Branches 486 493 +7
============================================
+ Hits 1152 1156 +4
- Misses 3056 3102 +46
Partials 101 101 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
This PR adds backend support for the frontend to enable refund requests and approval for paid bills.
REFUND_REQUESTEDandREFUNDEDtoBillStatusenumPAID → REFUND_REQUESTEDandREFUND_REQUESTED → REFUNDEDstatus transitions, enforcingREFUND_MONEYprivilege for issuing refundssynchronizeBillStatus()from overwriting refund statuses during payment recalculationRelated Issue
O3-5413