Re: Keeping track of cash advances
Would you happen to have a concrete example? I didn’t follow the "before I know how much its..”, how do you add an entry without knowing the value? Best. AR > On 27 Jul 2023, at 12:53, o1bigtenor wrote: > > Dunno about "doing this correctly" - - - - but I use credit accounts. > > I buy some fuel for agency Y. > They issue a statement the following month payable that month. > I use a credit account to "pay' for the purchase before I know how much its > going to be. > When I make my payment the payee is the agency and the credit account > is reduced by that amount. > > Its all in the matter of having enough listed 'accounts'. > > I have been using this idea long before I even had a computer to use - - - > think early 80s. > > HTH > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/8B90A164-4412-4814-B419-1656FF5C1306%40gmail.com.
Re: A feature idea: An alternative org-mode input format
The table would be just a normal content, right? Is the format below more regular for org-mode? * [2023-01-10 Tue] Adobe Acrobat Pro :PROPERTIES: :ID: 076497DC-45F7-43EC-BFDA-00177EFC3C0D :CREATED: [2023-01-25 Wed 21:40] :END: | Expenses:Administrative | $33.59 | | Equity:Admin:Somebody || I am curious about the use cases for the benefits you described. Best, Alexandre > On 9 Feb 2023, at 16:40, John Wiegley wrote: > > Hi all, > > I was thinking of creating a separate tool for translating specially formatted > Org-mode files into Ledger files. For example, this entry: > >2023-01-10 Adobe Acrobat Pro >; ID: 076497DC-45F7-43EC-BFDA-00177EFC3C0D >; CREATED: [2023-01-25 Wed 21:40] >Expenses:Administrative $33.59 >Equity:Admin:Somebody > > Would be processed from this Org-mode entry: > >* [2023-01-10 Tue] Adobe Acrobat Pro > | Expenses:Administrative | $33.59 | > | Equity:Admin:Somebody || >:PROPERTIES: >:ID: 076497DC-45F7-43EC-BFDA-00177EFC3C0D >:CREATED: [2023-01-25 Wed 21:40] >:END: > > Now, why might you want to record Ledger entry in Org-mode? Because you get > these added benefits: > > - Org-mode's hierarchical organization, narrowing, searching, filtering > - Org-mode tags become Ledger tags for the whole transaction > - Org-mode properties become Ledger metadata for the whole transaction > - You can use Org-attach to attach files to entries > - You can use cross-linking to jump between entries > - You can use the agenda and calendar to review entries on given dates > > There's already a Haskell library for parsing Org-mode files, so I was > thinking that building this as a UNIX tool shouldn't be but a few days work. > It would be run as follows: > >org2ledger ledger.org | ledger -f - reg > > John > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/644327EB-51F1-44CF-8E1A-F6C1F626D27A%40gmail.com.
Re: How to split expenses
Sorry for insist, but someone has any thoughts about the question in the end of the message below? Repeating here: But how to record when both of us paid some different amount of the same expense? Maybe this turns out to suggest to rethink the option for the case above? Below the total expense is EU 12,00 we should both pay EU 6,00, but I paid EU 10,00 and he paid only EU 2,00. Does it make sense? I am trying to record that I would add 6 to the amount he owe me, but at the same transaction, I am also removing EU 2,00 from that because he is giving EU 2,00. But I am not touching in the Liabilities:DF 2023/01/17 Place3 Expenses:Food EU 6,00 Assets:Receivable:DFEU 6,00 Assets:Receivable:DF EU -2,00 Assets:Cash EU -10,00 > On 3 Feb 2023, at 14:52, Alexandre Rademaker wrote: > > > Continuing the trip with a friend…. I renamed the accounts suggested by John > from Assets:Payable:DF to Assets:Receivable:DF. Regarding the Liabilities:DF > and Liabilities:Payable:DF. Actually Liabilities:Payable is kind of > redundant.. maybe Liabilities:DF is enough. > > when I paid something for us, I record the total cost and add in > Assets:Receivable:DF the fact that he owe me half of the expense: > > 2023/01/07 Place1 > Expenses:Food EU 6,00 > Assets:Receivable:DFEU 6,00 > Assets:Wise > > When he paid something, I recorded that I owe him half of the total. This > turned out to be the simpler alternative as Yuri's suggestion. But the > alternative in the message below is interesting too, adding a little bit of > extra complexity to move between Assets:Receivable:DF and Liabilities:DF, but > I can do that once in the end of the trip. > > 2023/01/02 Sample > Expenses:Food EU 6,00 ; total EU 12,00 > Liabilities:DF > > > But how to record when both of us paid some different amount of the same > expense? Maybe this turns out to suggest to rethink the option for the case > above? > > Below the total expense is EU 12,00 we should both pay EU 6,00, but I paid EU > 10,00 and he paid only EU 2,00. Does it make sense? I am trying to record > that I would add 6 to the amount he owe me, but at the same transaction, I am > also removing EU 2,00 from that because he is giving EU 2,00. But I am not > touching in the Liabilities:DF > > 2023/01/17 Place3 > Expenses:Food EU 6,00 > Assets:Receivable:DFEU 6,00 > Assets:Receivable:DF EU -2,00 > Assets:Cash EU -10,00 > > Best, > Alexandre > > >> On 12 Jan 2023, at 14:23, Yuri Khan wrote: >> >> On Thu, 12 Jan 2023 at 19:10, Alexandre Rademaker >> wrote: >> >>> I see your point and you are right that using the second entry below would >>> be simpler and record the fact that I owe ‘DF’ 3 euros. But using the >>> first entry below allow me to also record the total amount of the expense >>> if later on we all want to remember how much was the parking. Using only >>> the comment would be an alternative too. The only real problem with the >>> first entry is the fact that usually liabilities are negative, right? Maybe >>> I could find a better name? The ‘Payable:DF’ is to record the moneys that >>> ‘DF’ owes to me. >>> >>> 2023/01/07 Hotel Braga Parking >>>Expenses:ParkingEU 3,00 >>>Liabilities:DF EU 3,00 >>>Assets:DF EU -6,00 >> >> If you want to track everything in full detail, you can do that too. >> Just pretend that you manage all the finances. >> >> * Count goods and services you consume into Expenses. >> * Count goods and services your friends consume into >> Assets:Receivable, as if they owe you. >> * Track money you pay from the actual accounts you pay from (Assets if >> cash or debit cards; Liabilities if credit cards). >> * Track money your friends pay from Liabilities:Payable, as if you owe them. >> >> 2023-01-07 Hotel Braga Parking >>Expenses:Parking EUR 3,00 >>Assets:Receivable:DF EUR 3,00 >>Liabilities:Payable:DFEUR -6,00 >> >> At the end of trip, or at any time, you can cancel out debts: >> >> 2023-01-07 Debt cancellation >>Liabilities:Payable:DF EUR 3,00 >>Assets:Receivable:DF EUR -3,00 >&
Re: How to split expenses
Continuing the trip with a friend…. I renamed the accounts suggested by John from Assets:Payable:DF to Assets:Receivable:DF. Regarding the Liabilities:DF and Liabilities:Payable:DF. Actually Liabilities:Payable is kind of redundant.. maybe Liabilities:DF is enough. when I paid something for us, I record the total cost and add in Assets:Receivable:DF the fact that he owe me half of the expense: 2023/01/07 Place1 Expenses:Food EU 6,00 Assets:Receivable:DFEU 6,00 Assets:Wise When he paid something, I recorded that I owe him half of the total. This turned out to be the simpler alternative as Yuri's suggestion. But the alternative in the message below is interesting too, adding a little bit of extra complexity to move between Assets:Receivable:DF and Liabilities:DF, but I can do that once in the end of the trip. 2023/01/02 Sample Expenses:Food EU 6,00 ; total EU 12,00 Liabilities:DF But how to record when both of us paid some different amount of the same expense? Maybe this turns out to suggest to rethink the option for the case above? Below the total expense is EU 12,00 we should both pay EU 6,00, but I paid EU 10,00 and he paid only EU 2,00. Does it make sense? I am trying to record that I would add 6 to the amount he owe me, but at the same transaction, I am also removing EU 2,00 from that because he is giving EU 2,00. But I am not touching in the Liabilities:DF 2023/01/17 Place3 Expenses:Food EU 6,00 Assets:Receivable:DFEU 6,00 Assets:Receivable:DF EU -2,00 Assets:Cash EU -10,00 Best, Alexandre > On 12 Jan 2023, at 14:23, Yuri Khan wrote: > > On Thu, 12 Jan 2023 at 19:10, Alexandre Rademaker > wrote: > >> I see your point and you are right that using the second entry below would >> be simpler and record the fact that I owe ‘DF’ 3 euros. But using the first >> entry below allow me to also record the total amount of the expense if later >> on we all want to remember how much was the parking. Using only the comment >> would be an alternative too. The only real problem with the first entry is >> the fact that usually liabilities are negative, right? Maybe I could find a >> better name? The ‘Payable:DF’ is to record the moneys that ‘DF’ owes to me. >> >> 2023/01/07 Hotel Braga Parking >>Expenses:ParkingEU 3,00 >>Liabilities:DF EU 3,00 >>Assets:DF EU -6,00 > > If you want to track everything in full detail, you can do that too. > Just pretend that you manage all the finances. > > * Count goods and services you consume into Expenses. > * Count goods and services your friends consume into > Assets:Receivable, as if they owe you. > * Track money you pay from the actual accounts you pay from (Assets if > cash or debit cards; Liabilities if credit cards). > * Track money your friends pay from Liabilities:Payable, as if you owe them. > > 2023-01-07 Hotel Braga Parking >Expenses:Parking EUR 3,00 >Assets:Receivable:DF EUR 3,00 >Liabilities:Payable:DFEUR -6,00 > > At the end of trip, or at any time, you can cancel out debts: > > 2023-01-07 Debt cancellation >Liabilities:Payable:DF EUR 3,00 >Assets:Receivable:DF EUR -3,00 > > After the above, Assets:DF is at 0 and Liabilities:DF is at EUR -3,00, > indicating you owe DF 3 Euro. > > (Unrelated: Consider using standard ISO 4217 currency codes. While we > are at it, consider also using the standard ISO 8601 date separator.) > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/6A5D7A4C-3DB3-4D81-81E9-3632E0E64032%40gmail.com.
Re: How to split expenses
Hi Yuri, I see your point and you are right that using the second entry below would be simpler and record the fact that I owe ‘DF’ 3 euros. But using the first entry below allow me to also record the total amount of the expense if later on we all want to remember how much was the parking. Using only the comment would be an alternative too. The only real problem with the first entry is the fact that usually liabilities are negative, right? Maybe I could find a better name? The ‘Payable:DF’ is to record the moneys that ‘DF’ owes to me. 2023/01/07 Hotel Braga Parking Expenses:ParkingEU 3,00 Liabilities:DF EU 3,00 Assets:DF EU -6,00 versus 2023/01/07 Hotel Braga Parking Expenses:ParkingEU 3,00 ; total was 6,00 Liabilities:DF > On 11 Jan 2023, at 12:42, Yuri Khan wrote: > > No. If you, Bob, Nancy, and Joe each ate a $10 lunch and Joe paid $40 > for it, you owe Joe 10 bucks and that’s it. > >2023/01/02 Sample >Expenses:Food $10 >Liabilities:Joe $10 > > Everything else is Joe’s own concern. > > Alternatively, if you volunteered to keep track of everyone’s debts, > you can pretend that Bob and Nancy owe you $10 each, and you owe that > + your share to Joe: > >2023/01/02 Sample >Expenses:Food $10 >Assets:Bob $10 >Assets:Nancy$10 >Liabilities:Joe > > Just be sure to notice if/when Bob repays his debt to Joe so you can record > it: > >2023/01/03 Sample >Liabilities:Joe $10 >Assets:Bob > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/7EE9BCD4-F634-4E4E-B6C1-1CA65EEF77FA%40gmail.com.
Re: How to split expenses
Thank you John, I am using your approach (first) with an extra alternative when I didn’t pay but any other person pay and I need to record the liabilitie (second). Does it make sense? 2023/01/01 Sample Expenses:Food $10 Assets:Payable:Joe $10 Assets:Payable:Bob $10 Assets:Payable:Nancy$10 Liabilities:Credit 2023/01/02 Sample Expenses:Food $30 Liabilities:Joe $10 ; I need to pay Joe later Assets:Joe ; it doesn’t matter for me how Joe payed, just a general account Thank you Tobias for the link, I will read the thread! Best, Alexandre > On 10 Jan 2023, at 00:45, John Wiegley wrote: > > I usually do something like this: > >2023/01/01 Sample > Expenses:Food $10 > Assets:Payable:Joe $10 > Assets:Payable:Bob $10 > Assets:Payable:Nancy$10 > Liabilities:Credit > > John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/71BA6BE0-765D-4DBA-A5DC-D8E7BB3D9BB5%40gmail.com.
How to split expenses
I am traveling friends. We are splitting some expenses like the car rental, full, some restaurants etc. but I also want to record how I paid each expense (credit card, cash etc). Idea? What is the best practice? Sent from my iPhone -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/A273DE5A-D367-4E5B-A838-16D746A4D226%40gmail.com.
Python 2 dependency?
In the MacOS: $ brew info ledger ledger: stable 3.1.3 (bottled), HEAD Command-line, double-entry accounting tool https://ledger-cli.org/ /usr/local/Cellar/ledger/3.1.3_2 (131 files, 14.5MB) * Poured from bottle on 2019-09-22 at 12:56:13 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ledger.rb ==> Dependencies Build: cmake ✔ Required: boost ✔, boost-python ✔, gmp ✔, mpfr ✔, python@2 ✔ ==> Options --HEAD Install HEAD version ==> Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d ==> Analytics install: 671 (30 days), 1,330 (90 days), 6,568 (365 days) install_on_request: 600 (30 days), 1,204 (90 days), 5,713 (365 days) build_error: 0 (30 days) Can we avoid the dependency of Python 2? Best, -- Alexandre Rademaker http://arademaker.github.io -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/768382A8-7639-4A60-B807-268E78043157%40gmail.com.
Re: Auto-completion on Tab in Emacs?
>From https://github.com/ledger/ledger-mode/pull/174, it looks like the >functionality was not removed but replaced by something that I didn’t >understand yet. It worked for me the code: (add-hook 'ledger-mode-hook (lambda () (setq-local tab-always-indent 'complete) (setq-local completion-cycle-threshold t))) But I am curious to understand the discussion above. Does anyone here knows what was the idea? What is the best solution for completion (mainly of account names in my case) in ledger mode? Best, -- Alexandre Rademaker http://arademaker.github.io > On 23 Sep 2019, at 16:16, Richard Lawrence wrote: > > Hi Oscar, > > Oscar writes: > >> I can't seem to have auto-completion to work when I press tab in >> ledger-mode in Emacs . >> >> Previous versions I never had this problem. Is this a bug? It does indent >> but pressing tab doesn't do the autocomplete. > > This was changed recently; I noticed it too when I recently upgraded > ledger-mode. Discussion here: https://github.com/ledger/ledger-mode/pull/174 > > To get (something like) the old behavior back, you can do: > > (add-hook 'ledger-mode-hook >(lambda () > (setq-local tab-always-indent 'complete) > (setq-local completion-cycle-threshold t) > (setq-local ledger-complete-in-steps t))) > > I found that this solution was not quite satisfying; whatever the old > version did to guess the ordering of completions was better. But I also > recently decided to try out Ivy for completion; with ivy-mode on, I find > this is enough: > > (add-hook 'ledger-mode-hook >(lambda () > (setq-local tab-always-indent 'complete) > (setq-local completion-cycle-threshold t))) > > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/6B1AE214-6CD2-495A-BFA7-B11F9FB33675%40gmail.com.
Auto-complete of accounts in emacs ledger-mode
The auto-complete with tab of accounts stop works on my emacs ! Any idea? Best, -- Alexandre Rademaker http://arademaker.github.io -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/A1A8AFDE-8D6F-45D4-81B3-4F7ADEBC3C2E%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Prudent: macOS editor and reporting wrapper around Ledger
Hi Vito, I liked the tool but I don't want to be forced to save the files before quit. Moreover, I would like to keep using Emacs for editing and using Prudent as a dashboard for navigating in the reports. Is it possible? Best, Alexandre Rademaker http://arademaker.github.com/ http://researcher.ibm.com/person/br-alexrad On Mon, Jun 25, 2018 at 3:42 PM, vitoc wrote: > Hey everyone, > > I'd been working on a macOS editor and reporting wrapper around Ledger for > about a year (spare time side-project). I'd just completed it and will > appreciate some help from any macOS users out there that can try it and see > if it's useful. > > I made a website for the tool (called Prudent) here: > > https://prudent.me > > The app itself comes with an integrated editor and a calendar-like > reporting tool. It's really an effort to make Ledger work for me (taking > into account how my aging brain needs more visual stimulus to issue > commands to the computer), but I think it might be useful to others with > similar thinking structure and needs. > > I have a lot more ideas for features for it and will continue working on > it but really want to get it out there to see how far such a tool can go :) > > Thanks, > > Vito > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Multiple journal files?
Perfect , UUID is the one I was trying to remember. Can you share the script and examples ? Sent from my iPhone > On 6 Mar 2018, at 06:21, Dániel Fancsali <fancs...@gmail.com> wrote: > > Hello, > > My solution is to have one file per bank account, and the transfers are > marked with an UUID tag, so they will only be considered by ledger, when seen > for the first time. > > Also, when including multiple files, you have to be very careful with the > balance assertions, as balance is calculated in parsing order, and not by > ordering all the transactions in memory. My solution for this is a little > script that'll merge/sort all the files to one single journal, and then I'll > run ledger on that. > > > Regards, > Dan > >> On Tue, 6 Mar 2018 at 09:14 Alexandre Rademaker <aradema...@gmail.com> wrote: >> >> What about one bank account per file? In that case I need a way to avoid >> duplicate a transaction that envolve two accounts of different files. I >> remember that in the pass we had a discussion about unique transaction ids >> in the metadata. Do ledger and hledeger support it? >> >> Alexandre >> Sent from my iPhone >> >> > On 6 Mar 2018, at 05:10, Roderick Mann <rm...@latencyzero.com> wrote: >> > >> > Oh! I just tried specifying multiple --file options, and that worked. >> > >> > >> >> -- >> >> --- >> 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 ledger-cli+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Multiple journal files?
What about one bank account per file? In that case I need a way to avoid duplicate a transaction that envolve two accounts of different files. I remember that in the pass we had a discussion about unique transaction ids in the metadata. Do ledger and hledeger support it? Alexandre Sent from my iPhone > On 6 Mar 2018, at 05:10, Roderick Mannwrote: > > Oh! I just tried specifying multiple --file options, and that worked. > > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger in Mac Ports
I don’t understand what is going on. I just removed all Mac ports but I al still facing errors with date and number format using ledger installed with brew as you said Sent from my iPhone > On 3 Nov 2017, at 16:03, p51d78thwrote: > > I use brew with the - - head option. > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
ledger in Mac Ports
https://trac.macports.org/ticket/55227 It is failing to install... No alternative. The version on brew is not working. The version on MacPorts do not install! -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
Only to make it precise, the message was While parsing file "/Users/arademaker/Documents/Financeiro/data/2017.dat", line 7275: While parsing posting: Expenses:Educacao:Curso:Sofia R$ 432.63 ^ Error: Incorrect use of thousand-mark period Alexandre -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
Does any one have a solution for this problem?? BTW, today I got a new error Error: Incorrect use of thousand-mark period While parsing file "/Users/arademaker/Documents/Financeiro/data/2017.dat", line 7275: While parsing posting: Expenses:Educacao:Curso:Sofia R$ 432.63 ^ Any idea? -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
I am trying to install via MacPorts, but I am scared with the number of dependencies Alexandre Rademaker http://arademaker.github.com/ http://researcher.ibm.com/person/br-alexrad On Tue, Oct 24, 2017 at 9:15 PM, Alexandre Rademaker <aradema...@gmail.com> wrote: > Hi Craig, > > I think so > > $ ledger -f 2017.dat xact 2017/10/24 Chacaltaya R\$10 > Error: Invalid date: > > The same error inside Emacs with `C-c C-a`. No idea here... any help will > be welcome! ;-) > > Best, > > -- > Alexandre Rademaker > http://arademaker.github.io > http://researcher.ibm.com/person/br-alexrad > > > On 24 Oct 2017, at 21:08, Craig Earls <ender...@gmail.com> wrote: > > Are you escaping the dollar sign properly for your shell? > > On Tue, Oct 24, 2017 at 16:07 Alexandre Rademaker <aradema...@gmail.com> > wrote: > >> Hum... This is strange! >> >> After >> >> $ brew uninstall ledger >> $ brew install -s ledger >> >> same error: >> >> $ ledger -f 2017.dat xact 2017/10/24 Chacaltaya R$10 >> Error: Invalid date: >> >> >> $ ledger >> Ledger 3.1.1-20160111, the command-line accounting tool >> >> Copyright (c) 2003-2016, John Wiegley. All rights reserved. >> >> This program is made available under the terms of the BSD Public License. >> See LICENSE file included with the distribution for details and >> disclaimer. >> Error: No journal file was specified (please use -f) >> >> $ uname -a >> Darwin urca.local 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 >> 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64 >> >> Cheers, >> >> -- >> Alexandre Rademaker >> http://arademaker.github.io >> http://researcher.ibm.com/person/br-alexrad >> >> >> On 24 Oct 2017, at 20:40, Craig Earls <ender...@gmail.com> wrote: >> >> I have the same installation description with no problem. Try brew >> install -s ledger to build it from source. Possibly there is binary >> compatibility issue with the brewed installation >> >> > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
Hi Craig, I think so $ ledger -f 2017.dat xact 2017/10/24 Chacaltaya R\$10 Error: Invalid date: The same error inside Emacs with `C-c C-a`. No idea here... any help will be welcome! ;-) Best, -- Alexandre Rademaker http://arademaker.github.io <http://arademaker.github.io/> http://researcher.ibm.com/person/br-alexrad <http://researcher.ibm.com/person/br-alexrad> > On 24 Oct 2017, at 21:08, Craig Earls <ender...@gmail.com> wrote: > > Are you escaping the dollar sign properly for your shell? > > On Tue, Oct 24, 2017 at 16:07 Alexandre Rademaker <aradema...@gmail.com > <mailto:aradema...@gmail.com>> wrote: > Hum... This is strange! > > After > > $ brew uninstall ledger > $ brew install -s ledger > > same error: > > $ ledger -f 2017.dat xact 2017/10/24 Chacaltaya R$10 > Error: Invalid date: > > > $ ledger > Ledger 3.1.1-20160111, the command-line accounting tool > > Copyright (c) 2003-2016, John Wiegley. All rights reserved. > > This program is made available under the terms of the BSD Public License. > See LICENSE file included with the distribution for details and disclaimer. > Error: No journal file was specified (please use -f) > > $ uname -a > Darwin urca.local 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 > PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64 > > Cheers, > > -- > Alexandre Rademaker > http://arademaker.github.io <http://arademaker.github.io/> > http://researcher.ibm.com/person/br-alexrad > <http://researcher.ibm.com/person/br-alexrad> > > > >> On 24 Oct 2017, at 20:40, Craig Earls <ender...@gmail.com >> <mailto:ender...@gmail.com>> wrote: >> > >> I have the same installation description with no problem. Try brew install >> -s ledger to build it from source. Possibly there is binary compatibility >> issue with the brewed installation >> -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
Hum... This is strange! After $ brew uninstall ledger $ brew install -s ledger same error: $ ledger -f 2017.dat xact 2017/10/24 Chacaltaya R$10 Error: Invalid date: $ ledger Ledger 3.1.1-20160111, the command-line accounting tool Copyright (c) 2003-2016, John Wiegley. All rights reserved. This program is made available under the terms of the BSD Public License. See LICENSE file included with the distribution for details and disclaimer. Error: No journal file was specified (please use -f) $ uname -a Darwin urca.local 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64 Cheers, -- Alexandre Rademaker http://arademaker.github.io <http://arademaker.github.io/> http://researcher.ibm.com/person/br-alexrad <http://researcher.ibm.com/person/br-alexrad> > On 24 Oct 2017, at 20:40, Craig Earls <ender...@gmail.com> wrote: > > I have the same installation description with no problem. Try brew install > -s ledger to build it from source. Possibly there is binary compatibility > issue with the brewed installation > > On Tue, Oct 24, 2017 at 15:33 Alexandre Rademaker <aradema...@gmail.com > <mailto:aradema...@gmail.com>> wrote: > > Same error here! Any Idea? I am running High Sierra with Ledger installed via > `brew install ledger`. > > Best, > > On Friday, October 13, 2017 at 6:32:34 PM UTC-3, John Wiegley wrote: > >>>>> "LB" == Leo Bossmann <leo.bo...@gmail.com <>> writes: > > LB> ledger -f test.ledger xact 2017/09/03 Google > LB> I get* "Error: Invalid date:"* > > Hmmm... I wonder if something changed in the C++ library, since we're using > that for doing date parsing. > > John > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com > <mailto:ledger-cli+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- > Craig, Corona De Tucson, AZ > > enderw88.wordpress.com <http://enderw88.wordpress.com/> > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com > <mailto:ledger-cli+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger xact - "Error: Invalid date:"
Same error here! Any Idea? I am running High Sierra with Ledger installed via `brew install ledger`. Best, On Friday, October 13, 2017 at 6:32:34 PM UTC-3, John Wiegley wrote: > > > "LB" == Leo Bossmannwrites: > > LB> ledger -f test.ledger xact 2017/09/03 Google > LB> I get* "Error: Invalid date:"* > > Hmmm... I wonder if something changed in the C++ library, since we're > using > that for doing date parsing. > > John > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to use ledger in my (unusual) workflow?
Thanks for the suggestions ! I didn't get the #tag idea , do you have examples ?! I was thinking in having accounts for the amount approved , for each reimbursement report and for the card statements. Yes, I am already using the online bank statements, but sometimes the difference in the exchange rate can be huge from the online statement for the final one. Best, Alexandre Sent from my iPhone > On 6 de ago de 2016, at 01:46, Martin Blais <bl...@furius.ca> wrote: > >> On Fri, Aug 5, 2016 at 4:39 PM, Alexandre Rademaker <aradema...@gmail.com> >> wrote: >> >> Maybe tomorrow you can be especially motivated to write, leaving ideas, who >> knows! I would appreciate some thoughts! ;-) >> >> One of my nightmares is reimbursements. Every travel that I make for a >> conference start with the trip approval. Once the trip is approved, I can >> use the business credit card for buying all pre-trip expenses: the air >> tickets, conference registration, etc. During travelling, I can also use the >> business card for all expenses. For some expenses, I have to provide the >> receipts (air tickets, hotel, taxi, etc.), others are considered part of my >> per diem. > > Use the business CC as much as you can -- everything in there you claim. > > >> Depending on the dates of the payments, not all expenses will be in the same >> credit card statement. I am responsible for paying the credit card and ask >> for reimbursement. I can ask my company to pay the refund to my personal >> account or direct to the credit card too. > > For personal expenses, use a #tag and generate an income statement filtering > on that tag. > > >> Another difficult is the currency exchange rate. Since I must complete a >> reimbursement report, not after ten days of any payment, I generally need to >> complete the reimbursement report before having the credit card statement. >> Given that, I have to use the current day currency exchange rate when I am >> preparing the report. Once I have the statement, I must check the actual >> currency exchange rate utilised in the statement to calculate the difference >> and fill a complementary reimbursement report. > > You're driving yourself crazy. > > First, transactions usually post within 2-3 days. Surely your bank has a > website you can download the transactions from (... don't wait for the paper > statement, in case you're making that mistake). I can't imagine your employer > can't wait a week before you send them the expense report. > > Second, using whatever exchange rate at the time of making the report won't > make much of a difference over typical trip expense amounts. Your time is > well worth the <$20 difference. Plus you can fix it later and request the > different on your next expense report (or just forget about it). > > >> Does anyone share similar difficulties and would like to discuss how Ledger >> can help us with all this trouble? > > I used to do the same - tag transactions in my personal account, and then > transfer out paid expenses from my company's account. Tags are sufficient for > this problem. > > > >> -- >> Alexandre Rademaker >> http://arademaker.github.io >> >> >>> On Aug 5, 2016, at 3:47 PM, Marcin Borkowski <mb...@mbork.pl> wrote: >>> >>> >>> On 2016-08-05, at 16:37, Alexandre Rademaker <aradema...@gmail.com> wrote: >>> >>>> Marcin, >>>> >>>> http://mbork.pl/Comments_on_2016-07-18_Ledger_–_virtual_postings_aka_envelopes >>>> >>>> Thanks for the post ! See my comment. >>> >>> You're welcome, and good catch. I'll try to write something tomorrow. >>> >>>> Alexandre >>>> Sent from my iPhone >>> >>> Best, >>> >>> -- >>> Marcin Borkowski >>> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski >>> Faculty of Mathematics and Computer Science >>> Adam Mickiewicz University >> >> -- >> >> --- >> 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 ledger-cli+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to use ledger in my (unusual) workflow?
Maybe tomorrow you can be especially motivated to write, leaving ideas, who knows! I would appreciate some thoughts! ;-) One of my nightmares is reimbursements. Every travel that I make for a conference start with the trip approval. Once the trip is approved, I can use the business credit card for buying all pre-trip expenses: the air tickets, conference registration, etc. During travelling, I can also use the business card for all expenses. For some expenses, I have to provide the receipts (air tickets, hotel, taxi, etc.), others are considered part of my per diem. Depending on the dates of the payments, not all expenses will be in the same credit card statement. I am responsible for paying the credit card and ask for reimbursement. I can ask my company to pay the refund to my personal account or direct to the credit card too. Another difficult is the currency exchange rate. Since I must complete a reimbursement report, not after ten days of any payment, I generally need to complete the reimbursement report before having the credit card statement. Given that, I have to use the current day currency exchange rate when I am preparing the report. Once I have the statement, I must check the actual currency exchange rate utilised in the statement to calculate the difference and fill a complementary reimbursement report. Does anyone share similar difficulties and would like to discuss how Ledger can help us with all this trouble? -- Alexandre Rademaker http://arademaker.github.io <http://arademaker.github.io/> > On Aug 5, 2016, at 3:47 PM, Marcin Borkowski <mb...@mbork.pl> wrote: > > > On 2016-08-05, at 16:37, Alexandre Rademaker <aradema...@gmail.com> wrote: > >> Marcin, >> >> http://mbork.pl/Comments_on_2016-07-18_Ledger_–_virtual_postings_aka_envelopes >> >> Thanks for the post ! See my comment. > > You're welcome, and good catch. I'll try to write something tomorrow. > >> Alexandre >> Sent from my iPhone > > Best, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Faculty of Mathematics and Computer Science > Adam Mickiewicz University -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to use ledger in my (unusual) workflow?
Marcin, http://mbork.pl/Comments_on_2016-07-18_Ledger_–_virtual_postings_aka_envelopes Thanks for the post ! See my comment. Alexandre Sent from my iPhone > On 5 de ago de 2016, at 00:55, Marcin Borkowskiwrote: > > >> On 2016-08-05, at 02:53, Simon Michael wrote: >> >> Would envelope budgeting work ? See >> http://plaintextaccounting.org/#budgeting -> >> envelope budgeting with plain transactions >> for an example of what I mean. > > Shameless plug: a simple example on my blog: > http://mbork.pl/2016-07-18_Ledger_%e2%80%93_virtual_postings_aka_envelopes > > Hth, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Faculty of Mathematics and Computer Science > Adam Mickiewicz University > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Wrote some code to automatically sync pricedb
I finally managed to integrate the configuration of Preet code with my .emacs file: (eval-after-load 'flycheck '(require 'flycheck-ledger)) (use-package ledger-mode :mode "\\.dat" :init (setq ledger-reports '(("mes" "ledger -f %(ledger-file) -M reg ^expenses") ("bal" "ledger -f %(ledger-file) bal") ("reg" "ledger -f %(ledger-file) reg") ("payee" "ledger -f %(ledger-file) reg @%(payee)") ("account" "ledger -f %(ledger-file) reg %(account)"))) :config (load-file "~/.emacs.d/ledger-pricedb/ledger-pricedb.el") (setq ledger-binary-path "~/ledger/ledger") (set 'ledger-pricedb--stocks '("IBM" "NFLX")) (set 'ledger-pricedb--pricedb "~/ledger/.pricedb") (setq ledger-post-amount-alignment-at :decimal) :bind ("C-c u" . ledger-pricedb-save-pricedb)) Does anyone knows how to make sure that flycheck-ledger is loaded and if it is running? I tried to write some invalid entries and nothing came up. Best, -- Alexandre Rademaker http://arademaker.github.io <http://arademaker.github.io/> http://researcher.ibm.com/person/br-alexrad <http://researcher.ibm.com/person/br-alexrad> > On Aug 4, 2016, at 11:47 AM, Alexandre Rademaker <aradema...@gmail.com> wrote: > > Manuel, these are two very different projects! Preet presented un iterative > approach for fill the buffer automatically, completely integrated with Emacs, > you suggest some python scripts as wrappers to the ledger cli, right? I would > advise you to add examples of how to use your code. > > Anyway, I prefer the Preet approach! ;-) > > []s > Alexandre > >> On Aug 3, 2016, at 11:55 PM, Manuel Amador (Rudd-O) <rud...@rudd-o.com> >> wrote: >> >> On 08/01/2016 01:20 AM, Preet Bhinder wrote: >>> I started using ledger for tracking investments and net worth. It was >>> becoming a bit painful keeping the .pricedb file upto date so I wrote >>> some code to do it automatically through Yahoo! Finance. >>> >>> Posting in the hopes of it being useful for somebody >>> else: https://github.com/mbhinder/ledger-pricedb >>> >>> I taught myself a little elisp while writing this today so I'm sure >>> the code is atrocious - please be gentle. Any cleanup/feature addition >>> work is welcome, please submit PRs to github. >> >> Nice project. Can I ask you to contribute to updateprices in >> https://github.com/Rudd-O/ledgerhelpers? It would mean the world to me. >> >> -- >> Rudd-O >> http://rudd-o.com/ >> > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Moving ledger-mode out of the main ledger repository
1+ agree ! It makes sense! Sent from my iPhone > On 2 de ago de 2016, at 19:03, Jacob MacDonaldwrote: > > Big fan of the change! I'll be on the lookout for it as I pull it myself > instead of using MELPA. > >> On Tue, Aug 2, 2016 at 3:21 PM John Wiegley wrote: >> Hi guys, >> >> Just wanted to let you know that I'll be splitting ledger-mode and the Emacs >> code into its own repository within the ledger organization on GitHub soon. >> >> If anyone has any concerns or issues, please let me know. The initial goal is >> to reduce Travis activity due to frequent changes in ledger-mode, which can't >> affect the Travis results. >> >> John >> >> -- >> >> --- >> 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 ledger-cli+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Feature idea: custom named reports!
Can you guys share examples of org-Babel and Python scripts ?! Alexandre Sent from my iPhone On 1 de ago de 2016, at 13:29, John Wiegleywrote: >> "CE" == Craig Earls writes: > > CE> My most used reports run ledger a few times and format the output. I use > CE> python scripts for those. Simple reports are save in emacs modewhere they > CE> can be linked back to the input file. > > Same here; I use org-babel to save the report, rerun them, and capture the > output. > > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Format balance report as org table
What are the columns X and code in the "org" reporting command?? Best, Alexandre Rademaker http://arademaker.github.com/ http://researcher.ibm.com/person/br-alexrad On Thu, Jun 23, 2016 at 12:05 PM, John Wiegley <jo...@newartisans.com> wrote: > >>>>> Vikas Rawal <vikasra...@gmail.com> writes: > > > This gives me the table: > > > --format "|%(account) |%(quantity(total_expr(amount)))|\n” > > Try the "org" reporting command: > > ledger org expenses > > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Terminal date in period expressions
https://github.com/ledger/ledger/pull/458 -- Alexandre Rademaker http://arademaker.github.io <http://arademaker.github.io/> > On Jun 28, 2016, at 1:34 PM, Simon Michael <si...@joyful.com> wrote: > > On 6/28/16 4:47 AM, Vikas Rawal wrote: >> The following period expression excludes transactions on March 31, 2016. >> >> --period 'from 2015/04/01 to 2016/03/31’ >> >> Is this a feature or a bug? If it is a feature, it would be good to express >> this clearly in the manual in discussion of period_expressions. > > It's by design; Ledger's end dates are always exclusive. > > This is probably mentioned somewhere in the manual, but a pull request making > it clearer would probably be accepted easily. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Working with per-bank-account files
Can you give an example? Not clear... Ab., Alexandre Rademaker http://arademaker.github.com > On Mar 21, 2016, at 9:52 AM, Tobias Pfeiffer <tgpfeif...@web.de> wrote: > > Hi, > > On Thu, 17 Mar 2016 16:48:57 -0700 Martin Michlmayr wrote: >> The other solution would be use to an UUID tag; if two transactions >> have the same UUID, ledger will ignore one. > > Uh, for me this only works if the UUID tag is set *above* the > postings... if the UUID tag is set below the postings, the second one > is not ignored. > > Tobias -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Getting Started With Ledger - a free (upcoming) introductory book on Ledger
1+! Maybe a collaborative effort like the HoTT ( http://homotopytypetheory.org/2013/06/20/the-hott-book/)?! ;-) Best, Alexandre Rademaker http://arademaker.github.com/ http://researcher.ibm.com/person/br-alexrad On Sat, Jan 23, 2016 at 6:03 PM, John Wiegley <jo...@newartisans.com> wrote: > >>>>> Rolf Schröder <rolf.s...@gmail.com> writes: > > > Contact me via rolf dot schr at gmail dot com and I'll send you a copy. > The > > code presented in the book is already available here > > https://github.com/rolfschr/GSWL-ecosystem. > > I would love a copy, and to help you review it! > > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 > > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: idea for documentation -receipts
Not really, we were luck today! Since I am from Brazil, it was really nice to try so different+good food! Following your suggestion, I lost the track of tip, but you are right, looks much simpler! Best, Alexandre On Aug 21, 2015, at 7:37 PM, Martin Blais bl...@furius.ca wrote: Happens to me all the time. Here's what I do it's simpler: 2015-08-21 * Ippudo NY Liabilities::VISA -97.00 USD Assets:Cash 80.00 USD Expenses:Food I hope you didn't wait in line too much... crazy long lines at that place. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
idea for documentation -receipts
Hi, I don't know if my suggestion is new. Maybe the docs already contains some receipts, but I was trying to register an unusual (at least for me) situation and I had to think twice how to register it. The problem was, I went to a restaurant and payed the entire bill using my credit card and I got back in cash the amount from the rest of the group that was there with me. How to register it? I used: 2015/08/21 Ippudo NY Expenses:Food US 80.57 Expenses:Tip Liabilities::VISA US -97.00 Expenses:Food US -80.00 Assets:CashUS 80.00 This kind of receipts for common situation would be nice, don't you agree? I also used comments to remember what happened. Any other idea? Best, Alexandre -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: A Query Language for Beancount
I am still thinking a lot about this idea of a general query language for transactions. Not clear to me if the best abstraction is relational one (tables, SQL like) or a graph based, more like SPARQL or https://www.youtube.com/watch?v=QFaH6IvbPiw approach. I remember that I read something in the past about a general mapping from transactions to graph. []s Alexandre On Sep 29, 2014, at 5:02 AM, Martin Blais bl...@furius.ca wrote: Hi, I've been doing some thinking about creating a query language for Beancount for a while, but until a few days ago I was left profoundly unsatisfied with the design I had in mind, but I think I've finally nailed down an idea that would allow me to remove all report types (i.e., no more balances (Ledger: bal), no more journal (Ledger: register)): by combining filtering of transactions with filtering of postings, as two separate clauses, in a SQL-like syntax where you get to specify the desired output columns and inventory aggregations. The target of the FROM clause is not a table name, but a set of filters applied to full transactions, and the WHERE clause applies to postings. The ideas are a little bit fresh, so this proposal might feel a bit stream of consciousness and needs a bit more polishing. See the Two-Phase Filtering section of this doc: https://docs.google.com/document/d/1d88MkHqxiVdF8XSQBT1QQpOKEOt6OC1P9ZoF3u86DwI/edit?usp=sharing I'd love some feedback and your thoughts (as always you can comment on the doc directly). If this works as I imagine it would, I would remove support for all other report types, or perhaps create aliases for them to canned select queries. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Real Comments
+1 vote for solving this ambiguity meaning of the term payee. Although we can also argue that the Payee metadata is one thing and the payee field/element of the transaction is another. Alexandre Sent from my iPhone On 12/07/2014, at 18:55, Stefano Zacchiroli z...@upsilon.cc wrote: On Fri, Jul 11, 2014 at 06:58:56PM -0700, Craig Earls wrote: On Friday, July 11, 2014, Martin Blais bl...@furius.ca wrote: The narration is the descriptive string that comes after the date and the flag: 2014/05/06 * Hi I am the narration ... ... I call that the 'payee' Ledger naming on this front is overloaded and, IMHO, troublesome. Ledger's documentation uses payee for both (1) the narration---according to Martin's terminology, which I find quite intuitive---and (2) the homonymous special metadata field [*]. It gets worse at the CLI level, because ledger payees uses payee's meaning (1), whereas ledger --by-payee ... uses meaning (2). It would be great if this ambiguity could be solved in the future, because it could be really puzzling for newbies (speaking out of personal experience here). I'm unsure about the actual term used by accountants though, is it really narration? Cheers. [*]: http://www.ledger-cli.org/3.0/doc/ledger3.html#Payee-metadata-tag -- Stefano -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger-mode and payee's names
Thank you. The answer is so obvious that I am embarrassed! :-) Best, Alexandre On Wed, Jul 9, 2014 at 5:17 PM, Douglas Philips douglas.phil...@gmail.com wrote: On 7/9/14 4:15 PM, Alexandre Rademaker wrote: A probably foolish question that I am saving for a long time! I normally use C-c C-a to add transaction in the ledger-mode. I know that this basically call the command ledger add. One pitfall is the payee names with spaces. The regex used to match the similar transactions fail to parse the input. Any idea? Hey, a question I can answer! Just use a backslash to quote the space. It took me a long time to figure this out. ^C^A09 My\ Space\ Filled\ Name -=Doug -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ledger-mode and payee's names
:-) sure!! Best, Alexandre Rademaker http://arademaker.github.com/ On Wed, Jul 9, 2014 at 7:46 PM, Craig Earls ender...@gmail.com wrote: I am not going to put that in the manual :) On Wednesday, July 9, 2014, Alexandre Rademaker aradema...@gmail.com wrote: Thank you. The answer is so obvious that I am embarrassed! :-) Best, Alexandre On Wed, Jul 9, 2014 at 5:17 PM, Douglas Philips douglas.phil...@gmail.com wrote: On 7/9/14 4:15 PM, Alexandre Rademaker wrote: A probably foolish question that I am saving for a long time! I normally use C-c C-a to add transaction in the ledger-mode. I know that this basically call the command ledger add. One pitfall is the payee names with spaces. The regex used to match the similar transactions fail to parse the input. Any idea? Hey, a question I can answer! Just use a backslash to quote the space. It took me a long time to figure this out. ^C^A09 My\ Space\ Filled\ Name -=Doug -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Taxes
Sorry for this probably silly question but I didn't find any info in the docs. I need to add an automatic post about the tax that I pay each time that I use my credit card for international purchases. If I buy in Brazilian Reais, no tax, but if I buy something in dollars or euros, I have to pay 6.38% of tax. I could register one transaction per statement (summing up the total amount of tax that I payed for all international purchases in that statement) or I could register the tax amount per entry (purchase). I prefer the second one. Any idea? Automatic transaction is the only way to go? Can I have on post relative to the amount of the transaction? Can automatic transaction be fired only when specific currency was used in a specific account? Best, Alexandre -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
add transaction in the new ledger-mode
Hello All, In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? Best, Alexandre -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: add transaction in the new ledger-mode
In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: add transaction in the new ledger-mode
No. The only directive that I am using is the D R$ 1,000.00 Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 12:23 PM, Craig Earls ender...@gmail.com wrote: Are you using Y year directives at all? On Tue, May 14, 2013 at 8:17 AM, Craig Earls ender...@gmail.com wrote: That should be the default. I will look into what is happening. I don't have this problem at all. Craig On Tue, May 14, 2013 at 7:55 AM, Alexandre Rademaker aradema...@gmail.com wrote: In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: add transaction in the new ledger-mode
Craig, Sure, I will do it in the end of the day, right? thank you very much for all your contribution! the ledger-mode is a fantastic piece of code! Best. Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 12:28 PM, Craig Earls ender...@gmail.com wrote: Thanks John, I thought maybe a broken REGEX that I fixed last week would have fixed it. I will keep trying to reproduce the three problems reported here. Alexandre, could you log this in Bugzilla? On Tue, May 14, 2013 at 8:23 AM, Craig Earls ender...@gmail.com wrote: Are you using Y year directives at all? On Tue, May 14, 2013 at 8:17 AM, Craig Earls ender...@gmail.com wrote: That should be the default. I will look into what is happening. I don't have this problem at all. Craig On Tue, May 14, 2013 at 7:55 AM, Alexandre Rademaker aradema...@gmail.com wrote: In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: add transaction in the new ledger-mode
In my case, doesn't matter where the pointer is. The steps are: 1. I type C-c C-a 2. Minibuffer shows Transaction: 2013/05/ 3. I complete with the day, name and value 02 Test R$1 and hit RETURN. 4. Yes. As you said, the transaction is added in the end of the buffer, always. I am running on Mac OS 10.8.3 Emacs 24.2 with the last version of ledger-mode. I have just made a git pull. Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 1:29 PM, Craig Earls ender...@gmail.com wrote: OK, this has me stumped. Please tell me exactly what key strokes you are using to cause this. Shoulbe something like C-c C-a Minibuffer shows Transaction: 2013/05/ You type 01 Test 45 And the xact goes in the wrong place. Thanks for the kind words. Craig On Tue, May 14, 2013 at 9:25 AM, Alexandre Rademaker aradema...@gmail.com wrote: No. The only directive that I am using is the D R$ 1,000.00 Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 12:23 PM, Craig Earls ender...@gmail.com wrote: Are you using Y year directives at all? On Tue, May 14, 2013 at 8:17 AM, Craig Earls ender...@gmail.com wrote: That should be the default. I will look into what is happening. I don't have this problem at all. Craig On Tue, May 14, 2013 at 7:55 AM, Alexandre Rademaker aradema...@gmail.com wrote: In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: add transaction in the new ledger-mode
Craig, My local git points to git://github.com/ledger/ledger.git! I have just made a pull and nothing changed! urca:ledger arademaker$ cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [remote origin] fetch = +refs/heads/*:refs/remotes/origin/* url = git://github.com/ledger/ledger.git [branch next] remote = origin merge = refs/heads/next [submodule lib/utfcpp] url = http://github.com/ledger/utfcpp.git Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 1:51 PM, Craig Earls ender...@gmail.com wrote: I think I have found it. It was depending on transactions having codes, like check numbers or (POS) or (ONL), which I personally use extensively. I have fixed that and pushed a change to Master. Pull it and let me know how it works. On Tue, May 14, 2013 at 9:29 AM, Craig Earls ender...@gmail.com wrote: OK, this has me stumped. Please tell me exactly what key strokes you are using to cause this. Shoulbe something like C-c C-a Minibuffer shows Transaction: 2013/05/ You type 01 Test 45 And the xact goes in the wrong place. Thanks for the kind words. Craig On Tue, May 14, 2013 at 9:25 AM, Alexandre Rademaker aradema...@gmail.com wrote: No. The only directive that I am using is the D R$ 1,000.00 Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 12:23 PM, Craig Earls ender...@gmail.com wrote: Are you using Y year directives at all? On Tue, May 14, 2013 at 8:17 AM, Craig Earls ender...@gmail.com wrote: That should be the default. I will look into what is happening. I don't have this problem at all. Craig On Tue, May 14, 2013 at 7:55 AM, Alexandre Rademaker aradema...@gmail.com wrote: In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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
Re: add transaction in the new ledger-mode
What a shame! You were (as always) right! I was pointing to next!! Now it is working!! Transaction added in the right place!! Thank you my ELisp/Emacs hero! :-) Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 3:50 PM, Craig Earls ender...@gmail.com wrote: Looks like you are grabbing next please point to master — Sent from Mailbox for iPhone On Tue, May 14, 2013 at 11:27 AM, Alexandre Rademaker aradema...@gmail.com wrote: Craig, My local git points to git://github.com/ledger/ledger.git! I have just made a pull and nothing changed! urca:ledger arademaker$ cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [remote origin] fetch = +refs/heads/*:refs/remotes/origin/* url = git://github.com/ledger/ledger.git [branch next] remote = origin merge = refs/heads/next [submodule lib/utfcpp] url = http://github.com/ledger/utfcpp.git Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 1:51 PM, Craig Earls ender...@gmail.com wrote: I think I have found it. It was depending on transactions having codes, like check numbers or (POS) or (ONL), which I personally use extensively. I have fixed that and pushed a change to Master. Pull it and let me know how it works. On Tue, May 14, 2013 at 9:29 AM, Craig Earls ender...@gmail.com wrote: OK, this has me stumped. Please tell me exactly what key strokes you are using to cause this. Shoulbe something like C-c C-a Minibuffer shows Transaction: 2013/05/ You type 01 Test 45 And the xact goes in the wrong place. Thanks for the kind words. Craig On Tue, May 14, 2013 at 9:25 AM, Alexandre Rademaker aradema...@gmail.com wrote: No. The only directive that I am using is the D R$ 1,000.00 Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 12:23 PM, Craig Earls ender...@gmail.com wrote: Are you using Y year directives at all? On Tue, May 14, 2013 at 8:17 AM, Craig Earls ender...@gmail.com wrote: That should be the default. I will look into what is happening. I don't have this problem at all. Craig On Tue, May 14, 2013 at 7:55 AM, Alexandre Rademaker aradema...@gmail.com wrote: In my case, none! I am using in all transactions what I think is the default, /MM/DD, right? Best, Alexandre Rademaker http://arademaker.github.com/ On Tue, May 14, 2013 at 11:24 AM, Craig Earls ender...@gmail.com wrote: Please tell me what date-format you have set in your .ledgerrc. Please pull the latest from Master. There veeseveral aes since April 20. On Tue, May 14, 2013 at 7:15 AM, John Rakestraw jo...@johnrakestraw.com wrote: In the new ledger mode, the C-c C-a (add-transaction) is adding the transaction always in the end of the file. Does anyone know how to make it add the transactions in the right place of the file? My experience is slightly different -- new entries with today's date or later are consistently added after the first entry for the 21st of the current month. Other weirdness: - An entry dated 2013/04/30 just now landed after entries dated 2013/05/08. - An entry dated 2013/04/08 just now landed after entries dated 2013/04/20. GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-21 on wani09, modified by Debian I last updated ldg*.el April 20. --John -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because
Re: New EMACS Mode ready for prime time time?
Sorry Craig! But reading again the group's emails I couldn't find any information about the need of esh-util and esh-arg! The documentation doesn't mention it either. Nevertheless, I my case, without theses packages ledger mode does not work. Alexandre Rademaker http://arademaker.github.com On 16/02/2013, at 19:33, Craig Earls ender...@gmail.com wrote: You've missed a lot since Oct 19 last year! -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Separate group for Ledger Mode?
1+ vote to maintain one group only! Best, Alexandre -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: New EMACS Mode ready for prime time time?
It looks like we do need to add (require 'esh-util) (require 'esh-arg) In the .emacs to avoid the Symbol's function definition is void: eshell-parse-arguments error, right? BTW, the package is esh-arg, not esh-args!! Best, Alexandre On Friday, October 19, 2012 5:21:40 PM UTC-3, Craig Earls wrote: Yes thats the error, if I require esh-util and esh-args in my .emacs equivalent it pushes the error further into the ledger lisp code. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: default values format
https://github.com/jwiegley/ledger/issues/71 Issue opened! Best, Alexandre Rademaker http://arademaker.github.com/ On Mon, Jul 23, 2012 at 7:58 PM, John Wiegley jo...@newartisans.com wrote: Alexandre Rademaker aradema...@gmail.com writes: In ledger 2.X using Emacs, when I enter C-C C-A to add an entry, Ledger respect the format of the value that I entered. That is, if I put 2012/07/18 SOMEONE SOMEACCOUNT 12.00 OTHERACCOUNT The new entry will have the amount as 12.00. In Ledger 3.X, the value is format as 12 only, removing the .00. How can I avoid that behavior? I tried the directive D in the journal file without success. This sounds like a bug to me! John
default values format
In ledger 2.X using Emacs, when I enter C-C C-A to add an entry, Ledger respect the format of the value that I entered. That is, if I put 2012/07/18 SOMEONE SOMEACCOUNT 12.00 OTHERACCOUNT The new entry will have the amount as 12.00. In Ledger 3.X, the value is format as 12 only, removing the .00. How can I avoid that behavior? I tried the directive D in the journal file without success. Best, Alexandre
Re: Templating for more complicated reports?
XML: +1 vote What ever you decide, please don't remove the command emacs that output S-EXP. Best, Alexandre Rademaker http://arademaker.github.com/ On Thu, May 17, 2012 at 2:05 PM, Russell Adams rlad...@adamsinfoserv.com wrote: On Thu, May 17, 2012 at 09:19:09AM -0700, Zack Williams wrote: In light of recent discussions, I've been thinking about ways to generate more complex documents or reports with ledger. In most languages, this is done by creating a templating or document embedding method, where data is injected next to arbitrary content, ranging from a simple mail merge to more complex behaviors. For sharing's sake, I've attached the perl script I use to create expense reports from Ledger data in Latex. It creates several tables of summaries, using a Ledger custom output format to give me data I can quickly parse. It would take me time I can't spare at the moment to create a sample dataset and example report. There seem to be 3 different ways that could be pursued for this: - Come up with a ledger specific templating engine, building on existing work. Violates KISS. I couldn't see a simple template performing more complex reporting and summaries. - Use the new python functionality to implement similar functionality with one of python's templating engines (mako, evoque, etc.) This is a good idea. Using a python program that can interface to Ledger to get data, and then perform custom business logic and pass it on to a template engine would rock. That said, my perl script isn't that different, except I'm calling Ledger via exec and pulling the STDOUT in and parsing it from a custom output format (~ delimited). - Change XML output from it's current form (which is similar to bal and reg and is pretty flat) to be more of an output filter that wraps arbitrary queries and other output, then use XSLT or other XML tools to fill templates. You said XML. -1 Great discussion points though.
Re: discussion of external tools for more complete accounting systems.
On 14/05/2012, at 19:27, Zack Williams zdw...@gmail.com wrote: Invoicing isn't an accounting task - it's a document generation task. My solution to the above problem was a few rake scripts, some PDF generation code for invoices, and a preprocessor that takes my own tag-augmented version of markdown and does things like time math for counting hours, etc. . My output formats are ledger files, PDF invoices, and various other reports. Everything is text kept in version control. I haven't posted my workflow tools yet as they're extremely rough around the edges, but I intend to when I get it cleaned up. - Zack Please Zack, your scripts would be very useful as they are right now. Please consider put them in a public repo if it is possible... Alexandre
Re: New option: --time-report
The problem is not the processor, is the language and the missing of a REPL! :-) Back to Lisp port?! :-) Alexandre Rademaker http://arademaker.github.com On 14/03/2012, at 08:16, Jim Robinson jim.robin...@gmail.com wrote: On Tuesday, March 13, 2012 9:38:30 PM UTC-7, John Wiegley wrote: I tried to go to bed, failed, got out of the bed at 7am, crawled downstairs, implemented select queries, came back up and crashed. I think it took about 3 hours to implement, which shows you how well structured Ledger has become internally that I was able to create this feature almost entirely within a single file (select.cc), not having to munge any of the rest of the code. If anything, what slows me down is C++ compile times, since it takes 2-3 minutes to build after every header file change, generally. I'm looking forward to upgrading my 8-core Mac Pro to the Ivy Bridge platform sometime in the next year. BTW - My company (boostpro.com) does C++ consulting services, if anyone is ever looking to hire a mad coder. ;) John Well that's pretty amazing (on multiple counts). I'm going to go and build the latest branch of next and play around with select, it looks as though it's an effective replacement to a number of aggregating shell+awk scripts I currently use. As a random aside, maybe you'd be interesting in looking at http://golang.org/, I recall that of the reasons authors cited for writing yet another programming language is that they were sick of the multi-hour C++ recompile times! Jim
Re: A word on Ledger structure
Hello John, Many thanks for this email. Does cl-ledger (lisp version) has similar architecture? What are the differences? I don't know how many of the ledger's users are programmers but making Ledger's architecture more transparent will, for sure, help people understand and contribute to ledger. Best, Alexandre Rademaker http://arademaker.github.com/ On Wed, Mar 14, 2012 at 2:45 AM, John Wiegley jwieg...@gmail.com wrote: Ledger is developed as a tiered set of functionality, where lower tiers no nothing about the higher tiers. In fact, I build multiple libraries during the process, and link unit tests to these libraries, so that it is a link error for a lower tier to violate this modularity. Those tiers are: - Utility code There's lots of general utility in Ledger for doing time parsing, using Boost.Regex, error handling, etc. It's all done in a way that can be reused in other projects as needed. - Commoditized Amounts (amount_t, commodity_t and friends) An numerical abstraction combining multi-precision rational numbers (via GMP) with commodities. These structures can be manipulated like regular numbers in either C++ or Python (as Amount objects). - Commodity Pool Commodities are all owned by a commodity pool, so that future parsing of amounts can link to the same commodity and established a consistent price history and record of formatting details. - Balances Adds the concept of multiple amounts with varying commodities. Supports simple arithmetic, and multiplication and division with non-commoditized values. - Price history Amounts have prices, and these are kept in a data graph which the amount code itself is only dimly aware of (there's three points of access so an amount can query its revalued price on a given date). - Values Often the higher layers in Ledger don't care if something is an amount or a balance, they just want to add stuff to it or print it. For this, I created a type-erasure class, value_t/Value, into which many things can be stuffed and then operated on. They can contain amounts, balances, dates, strings, etc. If you try to apply an operation between two values that makes no sense (like dividing an amount by a balance), an error occurs at runtime, rather than at compile-time (as would happen if you actually tried to divide an amount_t by a balance_t). This is the core data type for the value expression language. - Value expressions The next layer up adds functions and operators around the Value concept. This lets you apply transformations and tests to Values at runtime without having to bake it into C++. The set of functions available is defined by each object type in Ledger (posts, accounts, transactions, etc.), though the core engine knows nothing about these. At its base, it only knows how to apply operators to values, and how to pass them to and receive them from functions. - Query expressions Expressions can be onerous to type at the command-line, so there's a shorthand for reporting called query expressions. These add no functionality of there own, but are purely translated from the input string (cash) down to the corresponding value expression (account =~ /cash/). This is a convenience layer. - Format strings Format strings let you interpolate value expressions into string, with the requirement that any interpolated value have a string representation. Really all this does is calculate the value expression in the current report context, call the resulting value's to_string() method, and stuffs the result into the output string. It also provides printf-like behavior, such as min/max width, right/left justification, etc. - Journal items Next is a base type shared by anything that can appear in a journal: an item_t. It contains details common to all such parsed entities, like what file and line it was found on, etc. - Journal posts The most numerous object found in a Journal, postings are a type of item that contain an account, an amount, a cost, and metadata. There are some other complications, like the account can be marked virtual, the amount could be an expression, etc. - Journal transactions Postings are owned by transactions, always. This subclass of item_t knows about the date, the payee, etc. If a date or metadata tag is requested from a posting and it doesn't have that information, the transaction is queried to see if it can provide it. - Journal accounts Postings are also shared by accounts, though the actual memory is managed by the transaction. Each account knows all the postings within it, but contains relatively little information of its own. - The Journal object Finally, all transactions with their postings, and all accounts, are owned by a journal_t object. This is the go-to object for querying ad reporting
Re: Simplified Python importing
I am afraid that Ledger has began to be more complex than necessary! Sure we really need this feature? The manual has now more than 100 pages! Please, that is just one opinion open for discussion. Best, Alexandre On Mar 6, 2012, at 5:50 PM, John Wiegley wrote: Simon Michael simon-jbxitmbj2llqt0dzr+a...@public.gmane.org writes: On 3/6/12 2:42 AM, John Wiegley wrote: Make sure to pass --python to acprep builds to get this support. It is not on by default for 3.0, but it will be for 3.1 onwards. Boo! -1 for tantalising us with carrots. If this is working, it'd be much better to have it it the coming release so people can rely on it and use it. Oh, it will be in the release! It's just not on by default. End users will have to pass --enable-python to the configure script. It's a beta feature right now. John
Re: [docs] org mode
I do use both org mode and ledger mode but I do not know what you mean by using both together. Alexandre On Tuesday, October 25, 2011, Craig Earls ender...@gmail.com wrote: If anyone is using the org mode could you shoot me a line? I have some questions about how you use it with ledger. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- Alexandre Rademaker Professor at FGV/EMAp Tel.: +55 21 3799-5551 http://arademaker.github.com/
Re: ledger and currency format in entry command
Hello Guys, Since my last update, the command entry now produces the wrong entry value regardless what decimal separator (comma or dot) I use. $ ledger -f BR01.dat entry 05/13 Salsa 12.00 Cash 2011/05/13 Salsalito Expenses:Restaurante 1.200 Assets:Cash $ ledger -f BR01.dat entry 05/13 Salsa 12,00 Cash 2011/05/13 Salsalito Expenses:Restaurante 1.200 Assets:Cash Any idea? Cheers, Alexandre
ledger and currency format in entry command
OK. My problem is not with ledger mode, but with ledger entry command. If I omit the commodity in the entry command the dot is recognized as thousands separator rather than decimal separator: $ ledger -f BR01.dat entry 05/13 Salsa Resta 12.00 Cash 2011/05/13 Salsalito Expenses:Restaurante 1.200 Assets:Cash $ ledger -f BR01.dat entry 05/13 Salsa Resta 12,00 Cash 2011/05/13 Salsalito Expenses:Restaurante 12,00 Assets:Cash But the question is why is ledger using comma as default decimal separator if I have in my ledger file BR01.dat the line: D $1,000.00 Any idea?