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

Bugfix run pool cf order #197

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Bugfix run pool cf order #197

merged 2 commits into from
Aug 6, 2024

Conversation

yellowbean
Copy link
Owner

wrong argument order was passed into patchCumulativeToPoolRun

@yellowbean yellowbean merged commit 6aca08f into master Aug 6, 2024
2 checks passed
@@ -298,7 +298,8 @@ data PoolTypeWrap = LPool (DB.PoolType AB.Loan)
type RunPoolTypeRtn = Map.Map PoolId (CF.CashFlowFrame, Map.Map CutoffFields Balance)

patchCumulativeToPoolRun :: RunPoolTypeRtn -> RunPoolTypeRtn
patchCumulativeToPoolRun = Map.map (\(CF.CashFlowFrame _ txns,stats) -> (CF.CashFlowFrame (0,Lib.toDate "19000101",Nothing) (CF.patchCumulative (0,0,0,0,0,0) txns []),stats))
patchCumulativeToPoolRun = Map.map
(\(CF.CashFlowFrame _ txns,stats) -> (CF.CashFlowFrame (0,Lib.toDate "19000101",Nothing) (CF.patchCumulative (0,0,0,0,0,0) [] txns),stats))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

txns should be on last argument to function patchCumulative

@yellowbean yellowbean deleted the BUGFIX_runPool_CF_order branch October 20, 2024 09:10
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