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-23 21:29:51 +02:00
2025-04-24 19:46:56 +02:00
2025-08-02 22:00:59 +02:00
2025-04-10 11:58:28 +02:00
2026-03-12 16:07:55 +01:00
2025-05-23 14:59:12 +02:00
2025-05-03 10:23:13 +02:00
2025-05-07 14:53:13 +02:00
2025-04-03 13:07:54 +02:00