Add transaction dedup support for CSV imports (#304)

* Support dedup for transaction also for CSV

* Fix to exclude CSV importing duplicates

* Guard nil account
This commit is contained in:
soky srm
2025-11-10 12:09:22 +01:00
committed by GitHub
parent 3611413829
commit f882484bba
4 changed files with 317 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
class Import < ApplicationRecord
MaxRowCountExceededError = Class.new(StandardError)
MappingError = Class.new(StandardError)
TYPES = %w[TransactionImport TradeImport AccountImport MintImport].freeze
SIGNAGE_CONVENTIONS = %w[inflows_positive inflows_negative]