On Mon, Apr 14, 2014 at 5:49 PM, Zack Williams <[email protected]> wrote:
> It isn't as elegant as this solution (I'd love to have a single
> transaction per transaction), but avoids having to apply UUID's to
> things - is that a manual or automatic step in your process?
The ledger 'convert' command will automatically create an UUID by hashing
the CSV line that was used to create that transaction.
When provided with account and payee definitions the convert command works
really well:
account Aufwand:Einkauf:Lebensmittel
payee ^(Aldi|Alnatura|Kaufland|REWE)$
payee Aldi
alias ^ALDI SUED SAGT DANKE
In this example "ALDI SUED SAGT DANKE" appears on my bank statement but I
want "Aldi" in my ledger.
When I put the above in my ledger file and call `ledger convert CSV_FILE -f
JOURNAL --account "Aktiva:Bank" --rich-data --invert`
(plus some fighting with the csv format my bank uses) the output will be
something like:
2013/05/21 * Aldi
; CSV: 21.05.2013,21.05.2013,ALDI SUED SAGT DANKE,…etc…
; Imported: 2014/04/14
; UUID: 5011a74eb…58aa38a71fdc6475
Aufwand:Einkauf:Lebensmittel 16,37€
Aktiva:Bank -16,37€ = …account
balance…
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.