diff --git a/postgres/ynab-import.go b/postgres/ynab-import.go index 8aa512b..fd5f173 100644 --- a/postgres/ynab-import.go +++ b/postgres/ynab-import.go @@ -116,7 +116,9 @@ type Transfer struct { ToAccount string } -// ImportTransactions expects a TSV-file as exported by YNAB. +// ImportTransactions expects a TSV-file as exported by YNAB in the following format: +// "Account" "Flag" "Date" "Payee" "Category Group/Category" "Category Group" "Category" "Memo" "Outflow" "Inflow" "Cleared" +// "Cash" "" "11.12.2021" "Transfer : Checking" "" "" "" "Brought to bank" 500,00€ 0,00€ "Cleared" func (ynab *YNABImport) ImportTransactions(context context.Context, r io.Reader) error { csv := csv.NewReader(r) csv.Comma = '\t'