emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/csv2ledger 900eef1457 017/190: Move definition of `c2l-acc


From: ELPA Syncer
Subject: [nongnu] elpa/csv2ledger 900eef1457 017/190: Move definition of `c2l-account-matchers-file`.
Date: Sun, 2 Jun 2024 15:59:42 -0400 (EDT)

branch: elpa/csv2ledger
commit 900eef14571b838825afcd8a69c5161ddf640e78
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>

    Move definition of `c2l-account-matchers-file`.
---
 csv2ledger.el | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/csv2ledger.el b/csv2ledger.el
index 56c6ed7230..bb98f93142 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -49,24 +49,6 @@ can be a separate file or a ledger file containing 
transactions."
   :type 'file
   :group 'csv2ledger)
 
-(defcustom c2l-account-matchers-file nil
-  "File containing matcher strings mapped to accounts.
-This should be a TSV (tab-separated values) file containing one
-matcher per line:
-
-aldi          Expenses:Groceries
-lidl          Expenses:Groceries
-restaurant    Expenses:Leisure:Restaurant
-
-where the two columns are separated by a TAB.
-
-The matcher is a string (not a regular expression).  If the
-matcher is found in the description, payee, type or sender of a
-transaction (in that order), the corresponding account is used to
-book the transaction."
-  :type 'file
-  :group 'csv2ledger)
-
 (defcustom c2l-base-account nil
   "Base ledger account.
 A CSV file normally lists transactions for a single bank account.
@@ -131,6 +113,23 @@ returned is used as the title of the ledger entry,"
   :type 'function
   :group 'csv2ledger)
 
+(defcustom c2l-account-matchers-file nil
+  "File containing matcher strings mapped to accounts.
+This should be a TSV (tab-separated values) file containing one
+matcher per line:
+
+aldi          Expenses:Groceries
+lidl          Expenses:Groceries
+restaurant    Expenses:Leisure:Restaurant
+
+where the two columns are separated by a TAB.
+
+The matcher is a string (not a regular expression).  If a matcher
+is found in any of the fields listed in `c2l-title-match-fields',
+the corresponding account is used to book the transaction."
+  :type 'file
+  :group 'csv2ledger)
+
 
 (defun c2l-parse-date (date)
   "Convert DATE from \"17.10.2022\" to \"2022-10-17\"."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]