Repository navigation
feat(inbox): read the open-item suggestion and settle the item it names - #552
Merged
Merged
Conversation
…nd settles it The inbox reads the open-item suggestion: it gets a badge and a filter, taking its account takes the suggestion so the item is settled, and another account asks the reviewer to say the line is a separate transaction.
Contributor
|
Change classification: normal — platform or application code changed. A normal change carries a documented automated review on this pull request before merge, in place of a second human approver. The |
Member
Author
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 20s —— View job Review: open-item suggestion in the inboxVerdict: looks good. One small nit, a few non-blocking questions. I read the full diff and the surrounding modal and list code. I did not run the tests or the build. What works
Nit
Non-blocking questions
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The inbox now reads the open-item suggestion the API puts on a bank line that pays an open bill or invoice exactly. Before this, such a line showed as having no suggestion, and approving it with the suggested account posted to payables or receivables without settling the item.
Changes
ledger/inbox/content.tsx,lib/ledger/suggestions.ts): an "Open item" badge and filter; these lines can be ticked for a batch approve like any other suggested line.ledger/inbox/EventBlockDetailModal.tsx):not_a_settlementwhen it is ticked.Deploy Notes
Needs RoboSystems API v1.22.3 or later, which adds the open-item suggestion and refuses another account for such a line without
not_a_settlement. Against an older API the change is inert: no line carries the suggestion.Testing
npm run test: 1,231 passed across 135 files. Format check, lint and typecheck clean.accept_suggestion; another account is held until the box is ticked, then sendsnot_a_settlement.npm run build, and no browser check against a live API.🤖 Generated with Claude Code