Craig Earls <[email protected]> writes: > Ahh...using 'a' from the reconcile windows puts you into the mini > buffer! Add the date the payee and the amount and it will match to > something similar in the main file.
I see, I did not know I could put additional information when inputting the date in the mini-buffer. I have a small issue with it: when I use additional information, the dates are not formatted correctly (they use '/' instead of '-'). I have customized 'ledger-use-iso-dates' to 't' and set 'ledger-default-date-format' to "%Y-%m-%d" (there is no customize interface for the latter by the way). Looking a bit at the code, I see that adding a transaction this way calls the 'xact' command of ledger. However I don't see how to add an option (such as "-y %Y-%m-%d") to the call to the binary. I ended up using the ".ledgerrc" init file to get the correct format. It would also be quite useful to have an optional additional parameter when adding the transaction, positioned to the account being reconciled. This way one would be able to omit it and the transaction's account would be correctly set (when playing with it, I had a couple cases where a transaction matched, but with an account different from the one being reconciled, so the added transaction would not appear in the narrowed buffer). Unfortunately I don't know enough emacs-lisp to add an optional argument to a function called through "call-interactively". Thanks, Alan -- --- 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.
