Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPT 2121/expand topup functionality #3527

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jan 22, 2025

WIP

@rjlynch rjlynch force-pushed the CAPT-2121/expand-topup-functionality branch 2 times, most recently from 4a5c587 to e7986ec Compare January 23, 2025 14:33
We'll be making topups availble on all polices so we don't want any
policy specific logic in the topup.
There was a bug in the previous payroll logic that couldn't handle the
following scenario

* Claimant paid for a claim (Claim A) in Jan payroll
* Claimant paid a topup on Claim A in Feb payroll
* Claimant paid for a claim (Claim B) in Feb payroll

In that scenario the claimant would receive the topup payment twice as
both Claim A and Claim B have the same payment and so when we joined
claims to payments and left joined payments to topup both rows would
have a topup, causing the coalesce to pick the topup amount.
@rjlynch rjlynch force-pushed the CAPT-2121/expand-topup-functionality branch from e7986ec to 6dec200 Compare January 23, 2025 15:18
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.

1 participant