Repository navigation
Reconcile invoices against the ledger - #83
Merged
Merged
Conversation
Closes #78 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
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.
Closes #78
Stacked on #82: review and merge that first. After #82 merges, retarget this PR to
mainbefore merging it. #75 and #76 were merged into their stacked bases and never reachedmain, which is what #81 had to fix.Adds a Reconciliation page that answers "does the provider's final bill match what was imported?". It holds no charges and changes none.
What it does
invoice_evidencetable (schema v11), apart fromfct_charge. A CSV with one bad line is refused whole, and so is one naming an unknown account. Re-entering the same reference for the same month and account replaces the earlier entry.How each status is decided
Worth a look in review
Testing
Run locally on Windows against this branch:
cargo test: 617 passed, 2 ignored, on the run before the last commit's import-only change, after which thereconciltests were re-run. New tests cover consolidated payer and linked accounts, revised bills against a snapshot, partial exports, credit and tax scenarios, CSV validation and the seeded demo states.cargo clippy --all-targets -- -D warningsandcargo fmt --check: clean.cargo +nightly-2026-07-28 check --lib --target wasm32-unknown-unknown: passes. This is a type-check, not the fullbuild-web.sh.CI has not run on this PR. The workflow only runs for PRs into
main, so it starts once this is retargeted. Wait for it before merging.Not tested in a real window. Nothing here has been clicked. Please check on desktop, using demo data:
🤖 Generated with Claude Code