feat: add bank reconciliation feature#6
Conversation
- Add BankStatement and BankTransaction models with migrations - Add BankStatementParser service to parse CSV files - Add ReconciliationMatcher service to match transactions to payments - Add BankStatementsController with upload, index, show actions - Add BankTransactionsController with confirm/reject/rematch actions - Add views for uploading statements and reviewing matches - Add routes and i18n translations
|
Merge conflicts resolved. Resolved merge conflicts across 4 files ( |
|
Merge conflicts resolved. Both gems were preserved when resolving a merge conflict in |
- Add config/routes.rb to Metrics/BlockLength rubocop exclude list - Normalize config/locales/en.yml: sort bank_statements/bank_transactions keys alphabetically - Add BankStatementPolicy and BankTransactionPolicy (admin-only, inherit ApplicationPolicy) - Add authorize/policy_scope calls to BankStatements and BankTransactions controllers - Add sign_in_admin before hook to bank request specs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
CI failures addressed. Three issues were fixed after an initial push:
|
|
Merge conflicts resolved. The |
Summary
Add bank statement reconciliation to match transactions from CSV uploads with existing payments.
New Models
BankStatement: Stores uploaded CSV file with status (pending/processed)BankTransaction: Individual rows from CSV with matching statusNew Services
BankStatementParser: Parses CSV, creates transactionsReconciliationMatcher: Matches by date (±3 days), amount, and referenceNew UI
Testing