[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/csv2ledger 188ddacde7 057/190: Rename target account to ba
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/csv2ledger 188ddacde7 057/190: Rename target account to balancing account. |
Date: |
Sun, 2 Jun 2024 15:59:45 -0400 (EDT) |
branch: elpa/csv2ledger
commit 188ddacde7a5b8eb3d1b8370e7bea56f563db69b
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Rename target account to balancing account.
---
csv2ledger.el | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/csv2ledger.el b/csv2ledger.el
index 53e6003e50..4ce9a7960a 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -62,10 +62,10 @@ files are processed."
:group 'csv2ledger
:local t)
-(defcustom c2l-fallback-account nil
- "Fallback account for ledger transactions.
+(defcustom c2l-fallback-balancing-account nil
+ "Fallback for the balancing account in transactions.
When creating a ledger entry, csv2ledger tries to determine the
-opposite account for the transaction based on the matchers in
+balancing account for the transaction based on the matchers in
`c2l-account-matchers-file'. If no acccount is found, the value
of this variable is used. If the value is unset, the user is
asked for an account."
@@ -125,8 +125,8 @@ the corresponding account is used to book the transaction."
:type 'file
:group 'csv2ledger)
-(defcustom c2l-title-match-fields '(payee description)
- "List of fields used for matching the target account.
+(defcustom c2l-balancing-match-fields '(payee description)
+ "List of fields used for determining the balancing account.
Fields in this list are matched against the matchers in
`c2l-account-matchers-file'. Note that the order of the fields
in this list can be relevant, because the first field that
@@ -187,9 +187,9 @@ comment, preceded by \"Desc:\".
FROM is the account where the money comes from, TO the account to
which it goes. Note that if AMOUNT is negative, these roles are
-reversed. FROM and TO default to `c2l-fallback-account' and
+reversed. FROM and TO default to `c2l-fallback-balancing-account' and
`c2l-base-account', respectively."
- (or from (setq from c2l-fallback-account))
+ (or from (setq from c2l-fallback-balancing-account))
(or to (setq to c2l-base-account))
(let* ((parsed-items (mapcar (lambda (item)
(let ((field (car item))
@@ -269,11 +269,11 @@ strings are interpreted according to the template in
`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."
+found, the value of `c2l-fallback-balancing-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
+ (account (or (-some #'c2l--match-account (mapcar #'cdr (--filter
(memq (car it) c2l-balancing-match-fields) fields)))
+ c2l-fallback-balancing-account
(completing-read (format "Account for transaction %s, %s
«%.75s» "
(funcall c2l-title-function
fields)
(alist-get 'amount fields)
- [nongnu] elpa/csv2ledger b4f6fac379 002/190: Add .gitignore, (continued)
- [nongnu] elpa/csv2ledger b4f6fac379 002/190: Add .gitignore, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 6023fa373b 012/190: Use lower-case column names in `c2l-csv-columns`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger a4ded4f5dc 109/190: Change the default value of c2l-csv-columns to the empty list., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 170dc4ae5c 102/190: Update README.md, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 07281e2558 097/190: Update to the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger f234878bd2 180/190: Update to the README, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 3b203a66e1 118/190: Improve code layout., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 64da760597 119/190: Update copyright year., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 98ab50c9a7 185/190: New command c2l-read-account-matchers, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger e744d0706f 186/190: Update version number., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 188ddacde7 057/190: Rename target account to balancing account.,
ELPA Syncer <=
- [nongnu] elpa/csv2ledger a1b0dd35e1 053/190: Update README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 88c394d5bb 066/190: Rename c2l-payee-or-sender to c2l-title-is-payee-or-sender., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger e8a7609736 050/190: Add user option `c2l-alignment-column`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 0af0aa3de2 021/190: Rename `c2l-parse-date` and update doc string., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 900eef1457 017/190: Move definition of `c2l-account-matchers-file`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger c5b7b0766e 024/190: Rewrite `c2l-compose-entry` and `c2l-csv-line-to-ledger`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 6597b8cd22 003/190: Initial commit of csv2ledger.el, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 1ce1fe5297 005/190: Remove BSD license from header, point to GNU license., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger f19910d17b 099/190: Add option c2l-entry-function., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger aa55c01cc1 106/190: New user option c2l-transaction-modify-functions., ELPA Syncer, 2024/06/03