Files
deepakdroi a7c4528e03 feat: implement smart transaction deduplication and resolution workflow (#92) (#93)
* feat: add transaction deduplication with side-by-side comparison modal

* feat: implement three-way duplicate resolution logic

- Add Row-Level check (Merchant/Total/Currency/Date) to Transaction model.
- Implement side-by-side comparison modal with Older/Newer/Both options.
- Update AI and CSV workflows to intercept duplicates.

Closes #92

* fix: include currency code and fallback in transaction deduplication check

Closes #92

* refactor(transactions): separate deduplication logic from creation model

- Extracted duplicate checking into a dedicated `findDuplicateTransaction` method in `models/transactions.ts`
- Restored `createTransaction` to a pure, atomic database insertion to remove unexpected side effects
- Updated all server actions (createTransactionAction, saveInvoice, saveFile, saveTransactions) to orchestrate the duplication check before calling the creation model

Addresses reviewer feedback to separate concerns and maintain clean model methods.
2026-04-17 12:05:20 +02:00
..
2025-05-07 15:01:25 +02:00
2025-04-03 14:36:16 +02:00
2025-05-03 10:23:13 +02:00
2025-07-23 14:30:46 +02:00
2025-05-03 10:23:13 +02:00
2025-08-02 21:28:47 +02:00