mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Feature: Add "amount type" configuration column for CSV imports (#1947)
* Rough draft * Schema conflict update * Implement signage * Update system tests * Lint fixes
This commit is contained in:
parent
8cf077f28d
commit
c88fe2e3b2
21 changed files with 366 additions and 83 deletions
|
@ -48,6 +48,12 @@ class TransactionImport < Import
|
|||
base
|
||||
end
|
||||
|
||||
def selectable_amount_type_values
|
||||
return [] if entity_type_col_label.nil?
|
||||
|
||||
csv_rows.map { |row| row[entity_type_col_label] }.uniq
|
||||
end
|
||||
|
||||
def csv_template
|
||||
template = <<-CSV
|
||||
date*,amount*,name,currency,category,tags,account,notes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue