Skip to content

WEB-1494: Fix returned check retrieval and visibility - #156

Merged
IOhacker merged 1 commit into
openMF:developfrom
AnvayKharb:fix/WEB-1494-returned-check-retrieval
Nov 30, 2026
Merged

IOhacker merged 1 commit into
openMF:developfrom
AnvayKharb:fix/WEB-1494-returned-check-retrieval

Conversation

@AnvayKharb

Copy link
Copy Markdown
Member

No description provided.

- Expose the persisted origin_type on returned-check search and detail
  responses so clients can show loan-payment returns without offering
  them for savings settlement (the existing server-side rejection stays).
- Trim customerName and checkNumber search filters server-side; date,
  teller and currency semantics are unchanged.
- Fix returned-check settlement against PostgreSQL: resolve the cashier
  office from its teller (Fineract's cashier mapper leaves it empty, so
  every settlement failed with office.mismatch), parse transactionDate
  with the request dateFormat/locale instead of binding a string to the
  txn_date column, and populate the required created_date.
- Cover the search SQL against the real migrations (filters, office
  hierarchy, pagination, no writes, duplicate-return constraint) and the
  HTTP lifecycle against Fineract: loan-check return, search, rejected
  loan settlement, savings settlement, receipt, idempotent replay and
  rejected second payment.

No savings-deposit check return producer exists in the plugin; savings
returned checks must still be recorded by the clearing workflow.
@AnvayKharb
AnvayKharb requested a review from a team November 30, 2026 10:56
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@IOhacker
IOhacker merged commit 12a33d4 into openMF:develop Nov 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants