[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/csv2ledger d00914d9f1 044/190: c2l-csv-line-to-ledger: Che
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/csv2ledger d00914d9f1 044/190: c2l-csv-line-to-ledger: Check c2l-fallback-account before asking the user. |
Date: |
Sun, 2 Jun 2024 15:59:44 -0400 (EDT) |
branch: elpa/csv2ledger
commit d00914d9f1c8742f7edbbbbebd67d3a477be02a5
Author: Joost Kremers <joost.kremers@ipsoft.com>
Commit: Joost Kremers <joost.kremers@ipsoft.com>
c2l-csv-line-to-ledger: Check c2l-fallback-account before asking the user.
---
csv2ledger.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/csv2ledger.el b/csv2ledger.el
index 233b0af021..8f169107e9 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -261,9 +261,14 @@ for that account."
"Convert ROW to a ledger entry.
ROW contains the data of the entry as a list of strings. The
strings are interpreted according to the template in
-`c2l-csv-columns'."
+`c2l-csv-columns'. The transaction is booked to the account in
+`c2l-base-account'. The reverse account is determined on the
+basis of the matchers in `c2l-account-matchers-file'. If none is
+found, the value of `c2l-fallback-account' is used. If that
+option is unset, the user is asked for an account."
(let* ((fields (--remove (eq (car it) '_) (-zip-pair c2l-csv-columns row)))
(account (or (-some #'c2l-match-account (mapcar #'cdr (--filter (memq
(car it) c2l-title-match-fields) fields)))
+ c2l-fallback-account
(completing-read (format "Account for transaction %s, %s
«%.75s» "
(funcall c2l-title-function
fields)
(alist-get 'amount fields)
- [nongnu] elpa/csv2ledger aa55c01cc1 106/190: New user option c2l-transaction-modify-functions., (continued)
- [nongnu] elpa/csv2ledger aa55c01cc1 106/190: New user option c2l-transaction-modify-functions., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger d1910389f1 100/190: Rename c2l-title-is-payee-or-sender to c2l-payee-or-sender., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 7cc0cd1a0a 029/190: Warn if trying to read a file that cannot be found., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 59ba841805 086/190: Guard against empty payee and sender in c2l-title-is-payee-or-sender, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 6076653a0f 084/190: Rename local variable in c2l--csv-line-to-ledger., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger af1129653d 178/190: Make auto-clearing of transactions with effective date optional., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 66d5a39b99 116/190: Replace point-at-{bol|eol} with pos-{bol|eol}., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 3925c6b34a 113/190: Small fixes to the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger e6a7312467 112/190: Small updates to the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger cc5050faaf 117/190: Fix doc string for c2l-create-amount, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger d00914d9f1 044/190: c2l-csv-line-to-ledger: Check c2l-fallback-account before asking the user.,
ELPA Syncer <=
- [nongnu] elpa/csv2ledger 466a098d2b 034/190: Extract new function `c2l-get-current-row` from `c2l-csv-entry-as-kill`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 799beb345b 035/190: New function `c2l-has-header`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 2531e81bcf 082/190: Add user option c2l-transaction-modify-function., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 81322ebde0 072/190: Use c2l--amount-p in c2l--has-header., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger bf995e11cb 080/190: Rename balancing account back to target account., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 521edc8471 081/190: Do not create c2l-base-account as a buffer-local variable., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger ea515e3ae6 074/190: Set default value of c2l-base-account to "Assets:Unknown"., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger c72b617d68 159/190: Fix typo in the README, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 3a309c795a 139/190: Fix the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 0bcf56f4b8 140/190: Update the README., ELPA Syncer, 2024/06/03