Add feature to add descriptions and clean up code.

This commit is contained in:
2024-04-20 09:07:58 -04:00
parent e29d08e0d7
commit 5cf06b2031
5 changed files with 58 additions and 33 deletions

View File

@@ -17,14 +17,13 @@ The script takes a directory in which it recursively searches for CSV and LDG
files. From these files, it generates a single ledger accounting file that
includes all transactions.
For now, ledger files are simply appended to the output file without
modifications.
Ledger files are appended to the output file without modifications.
However, the transaction for the CSV files are extended with their *account2*
information, i.e, the category of the transaction. Optionally, these
transactions can also get a more meaningful description and tags.
The mapping information are stored in a file `mappings.json`. It maps a unique
identifier for each transaction (based on filename, line number) to the
respective *account2*, and (optinally) *tags* or *description.
identifier for each transaction (based on the filename and full CSV row) to a
respective *account2*.