Re: Ledger 3.3.2 change in commodity format sub-directive handling
OK, understand. When the bug was present, I was able to have the same files and run either ledger or hledger depending on the need, I guess I will have to find a way to make them both work together again. Thanks Martin for your time and help. Antonio M. El lunes, 20 de noviembre de 2023 a las 23:07:26 UTC-5, Martin Michlmayr escribió: > There was a bug in earlier version that the format info in commodity > directives were not properly validated. > > 1,234. is not a valid number in ledger. > > Just try this: > > 2023-01-01 * "Test" > Assets:Investments 1,100. GBP > Assets:Cash -1,100.00 GBP > > Related bug not the same: > https://github.com/ledger/ledger/issues/2095 > https://github.com/ledger/ledger/issues/1990 > > Martin > > > * Antonio MCh [2023-11-20 19:57]: > > I tested the commodity declaration in Ledger 3.2.1-20200518, and there > it > > is valid, just wondering if there was a reason to stop supporting that > > format. > > > > El lunes, 20 de noviembre de 2023 a las 21:50:49 UTC-5, Martin Michlmayr > > escribió: > > > > > * Antonio MCh [2023-11-20 15:35]: > > > > commodity JPY > > > > format 1,234. JPY > > > > > > > > Note that I have a dot '.' to indicate the commodity does not uses > > > > decimals. This is recommended by hledger, but when I try it in > ledger > > > > (Ledger 3.3.2-20230330) I get the error: > > > > > > hledger and ledger are incompatible in several ways. 1,234. is not a > > > valid number in ledger. > > > > > > -- > > > Martin Michlmayr > > > https://www.cyrius.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+...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/6801b1ac-32b1-4a8f-8f24-3139cbb64c8an%40googlegroups.com > . > > > -- > Martin Michlmayr > https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/c0366abd-00bf-4946-909a-4ab5d949102an%40googlegroups.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
There was a bug in earlier version that the format info in commodity directives were not properly validated. 1,234. is not a valid number in ledger. Just try this: 2023-01-01 * "Test" Assets:Investments 1,100. GBP Assets:Cash-1,100.00 GBP Related bug not the same: https://github.com/ledger/ledger/issues/2095 https://github.com/ledger/ledger/issues/1990 Martin * Antonio MCh [2023-11-20 19:57]: > I tested the commodity declaration in Ledger 3.2.1-20200518, and there it > is valid, just wondering if there was a reason to stop supporting that > format. > > El lunes, 20 de noviembre de 2023 a las 21:50:49 UTC-5, Martin Michlmayr > escribió: > > > * Antonio MCh [2023-11-20 15:35]: > > > commodity JPY > > > format 1,234. JPY > > > > > > Note that I have a dot '.' to indicate the commodity does not uses > > > decimals. This is recommended by hledger, but when I try it in ledger > > > (Ledger 3.3.2-20230330) I get the error: > > > > hledger and ledger are incompatible in several ways. 1,234. is not a > > valid number in ledger. > > > > -- > > Martin Michlmayr > > https://www.cyrius.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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/6801b1ac-32b1-4a8f-8f24-3139cbb64c8an%40googlegroups.com. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20231121040706.GA2538382%40jirafa.cyrius.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
I tested the commodity declaration in Ledger 3.2.1-20200518, and there it is valid, just wondering if there was a reason to stop supporting that format. El lunes, 20 de noviembre de 2023 a las 21:50:49 UTC-5, Martin Michlmayr escribió: > * Antonio MCh [2023-11-20 15:35]: > > commodity JPY > > format 1,234. JPY > > > > Note that I have a dot '.' to indicate the commodity does not uses > > decimals. This is recommended by hledger, but when I try it in ledger > > (Ledger 3.3.2-20230330) I get the error: > > hledger and ledger are incompatible in several ways. 1,234. is not a > valid number in ledger. > > -- > Martin Michlmayr > https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/6801b1ac-32b1-4a8f-8f24-3139cbb64c8an%40googlegroups.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
* Antonio MCh [2023-11-20 15:35]: > commodity JPY > format 1,234. JPY > > Note that I have a dot '.' to indicate the commodity does not uses > decimals. This is recommended by hledger, but when I try it in ledger > (Ledger 3.3.2-20230330) I get the error: hledger and ledger are incompatible in several ways. 1,234. is not a valid number in ledger. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20231121025029.GA2508350%40jirafa.cyrius.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
Hello! I'm having a similar issue, or at least the error message is the same: I'm trying to add a commodity like this: commodity JPY format 1,234. JPY Note that I have a dot '.' to indicate the commodity does not uses decimals. This is recommended by hledger, but when I try it in ledger (Ledger 3.3.2-20230330) I get the error: "Error: commodity directive symbol JPY and format directive symbol should be the same" Is that expected? Thank you! Antonio M. El domingo, 4 de junio de 2023 a las 11:30:13 UTC-4, Martin Michlmayr escribió: I think this works as expected (now), but maybe it needs to be documented better. "format" requires an example of how the commodity is to be used - you have to include the commodity because some people (or regions) put it before the number and some people after. * Scott Carpenter [2023-06-04 06:00]: > I see now that if I use, say: > > commodity xyz > format 1,000.000 xyz > > Putting the commodity last, things behave the same as before with my > output. > > On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: > > > After updating to 3.3.2, I was getting errors like this with my > > commodities: > > > > While parsing file , line 6: > > Error: commodity directive symbol abc and format directive symbol should > > be the same > > > > Note the two spaces between "symbol" and "should". Looks like there is no > > format directive symbol. Commodities look like this: > > > > commodity $ > > format $ 1,000.00 > > default > > > > commodity abc > > format 1,000.00 > > > > commodity xyz > > format 1,000.000 > > > > And many more entries. I've been using these for many years. Every format > > line after the first one produced an error like the above when I ran the > > file through ledger. > > > > Adding the commodity to the format line makes the error go away: > > > > commodity abc > > format abc 1,000.00 > > > > Was I doing it wrong all this time and just getting away with it? > > > > Figured I'd share as an FYI that something changed with this, and to help > > others that might run into the same error. > > > > Thank you! > > > > -- > > --- > 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+...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/c12415e0-8882-4f43-bb1c-71993986f803n%40googlegroups.com. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/49698b5f-4f6a-4201-a5c3-874a18f013f5n%40googlegroups.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
Hi everyone! I think I'm having the same/similar issue. I try to declare the following commodity: commodity JPY format 1,234. JPY Note that I include a dot at the end of the amount, this is to indicate the commodity does not uses decimals. This is compatible with hledger, but with ledger, I get the following error: "Error: commodity directive symbol JPY and format directive symbol should be the same" Is this behavior expected? Regards Antonio M. El domingo, 4 de junio de 2023 a las 12:06:47 UTC-4, Scott Carpenter escribió: > Thanks, Martin. And thanks for all the work you do with maintaining things > and managing these releases! > > Scott > > On Sunday, June 4, 2023 at 10:30:13 AM UTC-5 Martin Michlmayr wrote: > >> I think this works as expected (now), but maybe it needs to be >> documented better. "format" requires an example of how the commodity >> is to be used - you have to include the commodity because some people >> (or regions) put it before the number and some people after. >> >> >> >> * Scott Carpenter [2023-06-04 06:00]: >> > I see now that if I use, say: >> > >> > commodity xyz >> > format 1,000.000 xyz >> > >> > Putting the commodity last, things behave the same as before with my >> > output. >> > >> > On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: >> > >> > > After updating to 3.3.2, I was getting errors like this with my >> > > commodities: >> > > >> > > While parsing file , line 6: >> > > Error: commodity directive symbol abc and format directive symbol >> should >> > > be the same >> > > >> > > Note the two spaces between "symbol" and "should". Looks like there >> is no >> > > format directive symbol. Commodities look like this: >> > > >> > > commodity $ >> > > format $ 1,000.00 >> > > default >> > > >> > > commodity abc >> > > format 1,000.00 >> > > >> > > commodity xyz >> > > format 1,000.000 >> > > >> > > And many more entries. I've been using these for many years. Every >> format >> > > line after the first one produced an error like the above when I ran >> the >> > > file through ledger. >> > > >> > > Adding the commodity to the format line makes the error go away: >> > > >> > > commodity abc >> > > format abc 1,000.00 >> > > >> > > Was I doing it wrong all this time and just getting away with it? >> > > >> > > Figured I'd share as an FYI that something changed with this, and to >> help >> > > others that might run into the same error. >> > > >> > > Thank you! >> > > >> > >> > -- >> > >> > --- >> > 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+...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/ledger-cli/c12415e0-8882-4f43-bb1c-71993986f803n%40googlegroups.com. >> >> >> >> >> -- >> Martin Michlmayr >> https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/73bb31d0-7982-497d-a92e-8c9cf9d012f0n%40googlegroups.com.
Re: Ledger turns 20 today!
Happy 20th birthday Ledger! You may look simple in comparison to others, but that only shows true flexibility does not mean something needs to look more complex to be more useful. Den tis 14 nov. 2023 kl 16:57 skrev Simon Michael : > Happy 20th birthday to the Ledger project, and thank you for giving it > to us John! > > -Simon > > > > On 9/29/23 13:58, John Wiegley wrote: > > Thank you for noticing, Alexis! Indeed, it did begin that long ago, > originally as a CVS repository on my G4 MacBook at the time. I was staying > at my brother's house in San Jose for a few weeks while looking for an > apartment, living off savings, which is what made knowing my financial > situation at the time a critical factor. Thus Ledger was born, since > GNUcash wasn't satisfying all of the different reporting needs that I had > then. > > > -- > > --- > 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/c90eca75-fb38-8092-0268-bf79619474c9%40joyful.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAHcsaZypOpH%3DnD4fHZMk0BCrBK-wxvYmu8NfMPige03Xdd6u4Q%40mail.gmail.com.
Re: Ledger turns 20 today!
Happy 20th birthday to the Ledger project, and thank you for giving it to us John! -Simon On 9/29/23 13:58, John Wiegley wrote: Thank you for noticing, Alexis! Indeed, it did begin that long ago, originally as a CVS repository on my G4 MacBook at the time. I was staying at my brother's house in San Jose for a few weeks while looking for an apartment, living off savings, which is what made knowing my financial situation at the time a critical factor. Thus Ledger was born, since GNUcash wasn't satisfying all of the different reporting needs that I had then. -- --- 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/c90eca75-fb38-8092-0268-bf79619474c9%40joyful.com.
Re: Ledger turns 20 today!
Happy birthday indeed! "John Wiegley" writes: > Thank you for noticing, Alexis! Indeed, it did begin that long ago, > originally as a CVS repository on my G4 MacBook at the time. I was > staying at my brother's house in San Jose for a few weeks while > looking for an apartment, living off savings, which is what made > knowing my financial situation at the time a critical factor. Thus > Ledger was born, since GNUcash wasn't satisfying all of the different > reporting needs that I had then. > > On to another 20! :) > > John > > On Fri, Sep 29, 2023, at 11:40 AM, Alexis wrote: >> Hi all, >> >> according to the commit history on GitHub¹ ledger turns 20 today! >> And ledger has come a long way since its initial revision. >> >> Thank you, John, for writing ledger and thank you everyone else who >> has contributed over the years to or is using it!! >> >> >> Here's to 20 more >> Alexis -- --- 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/87il7phvdo.fsf%40dustycloud.org.
Re: Ledger turns 20 today!
Thank you :-) On Friday, 29 September 2023 at 22:58:41 UTC+2 John Wiegley wrote: > Thank you for noticing, Alexis! Indeed, it did begin that long ago, > originally as a CVS repository on my G4 MacBook at the time. I was staying > at my brother's house in San Jose for a few weeks while looking for an > apartment, living off savings, which is what made knowing my financial > situation at the time a critical factor. Thus Ledger was born, since > GNUcash wasn't satisfying all of the different reporting needs that I had > then. > > On to another 20! :) > > John > > On Fri, Sep 29, 2023, at 11:40 AM, Alexis wrote: > > Hi all, > > > > according to the commit history on GitHub¹ ledger turns 20 today! > > And ledger has come a long way since its initial revision. > > > > Thank you, John, for writing ledger and thank you everyone else who > > has contributed over the years to or is using it!! > > > > > > Here's to 20 more > > Alexis > -- --- 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/2cc0ea1b-6309-467a-85e5-996942117706n%40googlegroups.com.
Re: Ledger turns 20 today!
Happy 20 Years Ledger Sent from my iPhone > On Sep 29, 2023, at 10:58 PM, John Wiegley wrote: > > Thank you for noticing, Alexis! Indeed, it did begin that long ago, > originally as a CVS repository on my G4 MacBook at the time. I was staying at > my brother's house in San Jose for a few weeks while looking for an > apartment, living off savings, which is what made knowing my financial > situation at the time a critical factor. Thus Ledger was born, since GNUcash > wasn't satisfying all of the different reporting needs that I had then. > > On to another 20! :) > > John > >> On Fri, Sep 29, 2023, at 11:40 AM, Alexis wrote: >> Hi all, >> >> according to the commit history on GitHub¹ ledger turns 20 today! >> And ledger has come a long way since its initial revision. >> >> Thank you, John, for writing ledger and thank you everyone else who >> has contributed over the years to or is using it!! >> >> >> Here's to 20 more >> Alexis > > -- > > --- > 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/b2175cff-5a60-4937-b258-a055ee0336d7%40app.fastmail.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/91CC460C-2454-4939-8E68-6E4FF2D9%40gmail.com.
Re: Ledger turns 20 today!
Thank you for noticing, Alexis! Indeed, it did begin that long ago, originally as a CVS repository on my G4 MacBook at the time. I was staying at my brother's house in San Jose for a few weeks while looking for an apartment, living off savings, which is what made knowing my financial situation at the time a critical factor. Thus Ledger was born, since GNUcash wasn't satisfying all of the different reporting needs that I had then. On to another 20! :) John On Fri, Sep 29, 2023, at 11:40 AM, Alexis wrote: > Hi all, > > according to the commit history on GitHub¹ ledger turns 20 today! > And ledger has come a long way since its initial revision. > > Thank you, John, for writing ledger and thank you everyone else who > has contributed over the years to or is using it!! > > > Here's to 20 more > Alexis -- --- 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/b2175cff-5a60-4937-b258-a055ee0336d7%40app.fastmail.com.
Ledger turns 20 today!
Hi all, according to the commit history on GitHub¹ ledger turns 20 today! And ledger has come a long way since its initial revision. Thank you, John, for writing ledger and thank you everyone else who has contributed over the years to or is using it!! Here's to 20 more Alexis ¹ https://github.com/ledger/ledger/commit/e95ea133d0953953ba74f4e5c6163706194971cb -- --- 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/q6ugjkdg2bqeouztzn6ncnryctjei7ykp7qfwqdxv7v7iv44yx%40qqv5mv7kqdir.
Re: Is there any way to do a currency conversion with "ledger csv"
that was it, thank you. On Tuesday, September 12, 2023 at 1:10:03 PM UTC-4 John Wiegley wrote: > >>>>> "lf" == lipp f writes: > > lf> Using "reg": > lf> $ ledger reg INV:Assets:External -X CAD > > lf> I'm getting 1230 lines like this: > > Ah, try the --no-revalued option. > > 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/a90e160a-abd5-4bcd-b530-d55c381dd644n%40googlegroups.com.
Re: Is there any way to do a currency conversion with "ledger csv"
>>>>> "lf" == lipp f writes: lf> Using "reg": lf> $ ledger reg INV:Assets:External -X CAD lf> I'm getting 1230 lines like this: Ah, try the --no-revalued option. 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/m2sf7j2u9l.fsf%40newartisans.com.
Re: Is there any way to do a currency conversion with "ledger csv"
Using "reg": $ ledger reg INV:Assets:External -X CAD I'm getting 1230 lines like this: 2018-05-17 Commodities revalued -88.0232580 CAD -23,624.6788360 CAD 2018-05-25 Commodities revalued -275.9920740 CAD -23,900.6709100 CAD 2018-05-29 Commodities revalued -86.4458460 CAD -23,987.1167560 CAD 2018-05-30 Commodities revalued 261.1900800 CAD -23,725.9266760 CAD 2018-06-01 Commodities revalued -146.3691600 CAD -23,872.2958360 CAD 2018-06-04 Commodities revalued 52.5681720 CAD -23,819.7276640 CAD 2018-06-05 Commodities revalued -75.3856200 CAD -23,895.1132840 CAD 2018-06-07 Commodities revalued -4.6955520 CAD -23,899.8088360 CAD On Tuesday, September 5, 2023 at 8:52:14 AM UTC-4 lipp f wrote: > I am doing this: > $ ledger csv INV:Assets:External | csvcut -c 1,6,5 > and the return is correct, like this: > 2018/05/04,-100,USD > 2018/05/10,-100,CAD > 2018/05/11,-18242,USD > 2018/06/11,99,CAD > 2018/07/16,-0.12,CAD > 2018/07/18,-0.15,CAD > 2018/07/25,-42100,CAD > 2018/08/03,99,CAD > 2018/08/09,10,USD > 2018/08/21,13.3,CAD > 2018/08/22,90,USD > 2018/09/04,-72000,CAD > 2018/09/07,-100,USD > 2018/10/10,-2,USD > 2018/10/17,-70050,CAD > 2018/11/13,177.43,USD > 2018/11/15,-180,USD > 2018/11/15,30.6,USD > 2018/11/19,-30,USD > 2018/11/20,-1,CAD > 2018/11/22,-14500,CAD > 2019/01/18,78.29,USD > 2019/04/10,208.15,USD > 2019/04/12,104.8,CAD > 2019/04/15,-292,USD > 2019/05/03,114.9,USD > 2019/05/10,28.84,USD > 2019/06/11,30.02,USD > 2019/07/11,28.97,USD > 2019/08/06,135,USD > 2019/08/12,29.4,USD > 2019/09/12,28.97,USD > 2019/10/04,-398,USD > 2019/10/10,27.85,USD > 2019/10/23,-26412,CAD > 2019/10/26,-15,CAD > 2019/11/04,129.76,USD > 2019/11/12,27.36,USD > 2019/12/11,26.79,USD > 2019/12/30,24.24,USD > 2020/01/03,18.68,USD > 2020/01/15,-1200,CAD > 2020/02/04,129.45,USD > 2020/02/13,63.97,USD > 2020/03/03,1200,CAD > 2020/03/12,60.6,USD > 2020/04/08,330.86,USD > 2020/04/09,62.92,USD > 2020/05/04,130.69,USD > 2020/05/08,57.16,USD > 2020/06/08,-1090,USD > 2020/06/09,55.57,USD > 2020/06/11,-56,USD > 2020/07/10,50.67,USD > 2020/07/21,400,CAD > 2020/08/05,129.97,USD > 2020/08/11,50.27,USD > 2020/08/13,-232,USD > 2020/09/10,48.36,USD > 2020/09/15,-48,USD > 2020/10/09,44.7,USD > 2020/10/14,-45,USD > 2020/11/03,126.27,USD > 2020/11/05,-126,USD > 2020/11/10,44.8,USD > 2020/11/13,-45,USD > 2020/12/03,-50,CAD > 2020/12/09,43.09,USD > 2020/12/11,-46,USD > 2020/12/23,-50,CAD > 2020/12/29,43.34,USD > 2020/12/31,-43,USD > 2021/01/11,-200,CAD > 2021/01/26,-50,CAD > 2021/02/01,-130.28,USD > 2021/02/05,-70388,CAD > 2021/02/18,-4.99,CAD > 2021/02/24,-50,CAD > 2021/03/24,-50,CAD > 2021/04/23,-50,CAD > 2021/05/26,-50,CAD > 2021/06/23,-50,CAD > 2021/07/22,-50,CAD > 2021/08/24,-50,CAD > 2021/09/23,-50,CAD > 2021/10/22,-50,CAD > 2021/11/22,-50,CAD > 2021/12/22,-50,CAD > 2022/01/21,-50,CAD > 2022/02/24,-50,CAD > 2022/03/23,-50,CAD > 2022/04/21,-50,CAD > 2022/05/20,-50,CAD > 2022/06/22,-50,CAD > 2022/06/27,300,CAD > 2022/07/22,-50,CAD > 2022/08/23,-50,CAD > 2022/09/21,-50,CAD > 2022/10/22,-50,CAD > 2022/11/23,-50,CAD > 2022/12/21,-50,CAD > 2023/01/20,-50,CAD > 2023/02/23,-50,CAD > 2023/03/22,-50,CAD > 2023/04/22,-50,CAD > 2023/05/19,-50,CAD > 2023/06/21,-50,CAD > 2023/07/21,-50,CAD > 2023/08/22,-50,CAD > Some lines in CAD and some in USD, but I need all lines in CAD > When I try: > $ ledger csv INV:Assets:External -X CAD -V | csvcut -c 1,6,5 > it returns 1335 lines instead of 109. > -- --- 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/b0411696-600d-40e1-b036-b399ac750528n%40googlegroups.com.
Re: Is there any way to do a currency conversion with "ledger csv"
>>>>> "lf" == lipp f writes: lf> $ ledger csv INV:Assets:External -X CAD -V | csvcut -c 1,6,5 The -X and -V options are mutually exclusive, so I would use only “-X CAD”. Maybe you can use it with the register command, to find out what all of those entries are that it’s reporting? 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/m2h6o05gjc.fsf%40newartisans.com.
Is there any way to do a currency conversion with "ledger csv"
I am doing this: $ ledger csv INV:Assets:External | csvcut -c 1,6,5 and the return is correct, like this: 2018/05/04,-100,USD 2018/05/10,-100,CAD 2018/05/11,-18242,USD 2018/06/11,99,CAD 2018/07/16,-0.12,CAD 2018/07/18,-0.15,CAD 2018/07/25,-42100,CAD 2018/08/03,99,CAD 2018/08/09,10,USD 2018/08/21,13.3,CAD 2018/08/22,90,USD 2018/09/04,-72000,CAD 2018/09/07,-100,USD 2018/10/10,-2,USD 2018/10/17,-70050,CAD 2018/11/13,177.43,USD 2018/11/15,-180,USD 2018/11/15,30.6,USD 2018/11/19,-30,USD 2018/11/20,-1,CAD 2018/11/22,-14500,CAD 2019/01/18,78.29,USD 2019/04/10,208.15,USD 2019/04/12,104.8,CAD 2019/04/15,-292,USD 2019/05/03,114.9,USD 2019/05/10,28.84,USD 2019/06/11,30.02,USD 2019/07/11,28.97,USD 2019/08/06,135,USD 2019/08/12,29.4,USD 2019/09/12,28.97,USD 2019/10/04,-398,USD 2019/10/10,27.85,USD 2019/10/23,-26412,CAD 2019/10/26,-15,CAD 2019/11/04,129.76,USD 2019/11/12,27.36,USD 2019/12/11,26.79,USD 2019/12/30,24.24,USD 2020/01/03,18.68,USD 2020/01/15,-1200,CAD 2020/02/04,129.45,USD 2020/02/13,63.97,USD 2020/03/03,1200,CAD 2020/03/12,60.6,USD 2020/04/08,330.86,USD 2020/04/09,62.92,USD 2020/05/04,130.69,USD 2020/05/08,57.16,USD 2020/06/08,-1090,USD 2020/06/09,55.57,USD 2020/06/11,-56,USD 2020/07/10,50.67,USD 2020/07/21,400,CAD 2020/08/05,129.97,USD 2020/08/11,50.27,USD 2020/08/13,-232,USD 2020/09/10,48.36,USD 2020/09/15,-48,USD 2020/10/09,44.7,USD 2020/10/14,-45,USD 2020/11/03,126.27,USD 2020/11/05,-126,USD 2020/11/10,44.8,USD 2020/11/13,-45,USD 2020/12/03,-50,CAD 2020/12/09,43.09,USD 2020/12/11,-46,USD 2020/12/23,-50,CAD 2020/12/29,43.34,USD 2020/12/31,-43,USD 2021/01/11,-200,CAD 2021/01/26,-50,CAD 2021/02/01,-130.28,USD 2021/02/05,-70388,CAD 2021/02/18,-4.99,CAD 2021/02/24,-50,CAD 2021/03/24,-50,CAD 2021/04/23,-50,CAD 2021/05/26,-50,CAD 2021/06/23,-50,CAD 2021/07/22,-50,CAD 2021/08/24,-50,CAD 2021/09/23,-50,CAD 2021/10/22,-50,CAD 2021/11/22,-50,CAD 2021/12/22,-50,CAD 2022/01/21,-50,CAD 2022/02/24,-50,CAD 2022/03/23,-50,CAD 2022/04/21,-50,CAD 2022/05/20,-50,CAD 2022/06/22,-50,CAD 2022/06/27,300,CAD 2022/07/22,-50,CAD 2022/08/23,-50,CAD 2022/09/21,-50,CAD 2022/10/22,-50,CAD 2022/11/23,-50,CAD 2022/12/21,-50,CAD 2023/01/20,-50,CAD 2023/02/23,-50,CAD 2023/03/22,-50,CAD 2023/04/22,-50,CAD 2023/05/19,-50,CAD 2023/06/21,-50,CAD 2023/07/21,-50,CAD 2023/08/22,-50,CAD Some lines in CAD and some in USD, but I need all lines in CAD When I try: $ ledger csv INV:Assets:External -X CAD -V | csvcut -c 1,6,5 it returns 1335 lines instead of 109. -- --- 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/ea0e3970-39c5-4a44-a57d-9185bdbeef01n%40googlegroups.com.
Small edit to ledger-report.el to report by amount
Hello, I've recently discovered expansion formats in ledger-mode [1] and have used them to easily create and run some reports that I find useful. I have found this to have really made the reports (C-c C-o C-R) so much more useful. One expansion format that doesn't exist, but I thought would be useful, is "amount" to help searching for records by amount, either an exact amount or an amount between ranges. It turned out to be very easy to add amount1 and amount2 with my limited knowledge of elisp. In report definitions, I can then use either amount1 on its own to search for transactions that match an exact amount, e.g.: %(binary) -f %(ledger-file) reg %(account) --display 'amount == %(amount1) GBP' or amount1 and amount2 to search for transactions with amounts between two values: %(binary) -f %(ledger-file) reg %(account) --display 'amount >= %(amount1) GBP and amount < %(amount2) GBP' If this is seen as potentially useful for others, I'll submit a pull request. [1] https://ledger-cli.org/doc/ledger-mode.html#Expansion-Formats David -- David Whiting -- --- 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/CAK8-SWT_wwTj6%3DduY9UZFfvrt76__%2B3j4f9_sF4PMubctBjhOA%40mail.gmail.com.
Re: Sync Ledger with the MyExpenses Android App
>>>>> "I" == IanTwenty writes: I> Just want to let you know about a new script I wrote that lets you I> sync your ledger files with the android app MyExpenses. It's open I> source (GPL3.0) and written in BASH for Linux: This is great to hear about, thank you! 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/m2legevsyw.fsf%40newartisans.com.
Sync Ledger with the MyExpenses Android App
Hi, Just want to let you know about a new script I wrote that lets you sync your ledger files with the android app MyExpenses. It's open source (GPL3.0) and written in BASH for Linux: https://gitlab.com/IanTwenty/ledgermyexpenses It seemed clear to me that the MyExpenses app is one of the best open source finance apps. As well as the great UX it has an automatic sync feature that works across multiple devices via file/dropbox/webdav. It just knows nothing about ledger. So I spent a few days writing a script that can translate between ledger and MyExpenses, keeping them in sync with each other. You just need to run it on a device that has access to your ledger files and your chosen sync location for MyExpenses. Please give it a try and/or let me know if you're interested in this. I am just working on it for my own use but would appreciate any feedback you have! Thanks Ian -- --- 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/bdbb294e-0ef2-4296-8c5d-7ca889465731n%40googlegroups.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
Thanks, Martin. And thanks for all the work you do with maintaining things and managing these releases! Scott On Sunday, June 4, 2023 at 10:30:13 AM UTC-5 Martin Michlmayr wrote: > I think this works as expected (now), but maybe it needs to be > documented better. "format" requires an example of how the commodity > is to be used - you have to include the commodity because some people > (or regions) put it before the number and some people after. > > > > * Scott Carpenter [2023-06-04 06:00]: > > I see now that if I use, say: > > > > commodity xyz > > format 1,000.000 xyz > > > > Putting the commodity last, things behave the same as before with my > > output. > > > > On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: > > > > > After updating to 3.3.2, I was getting errors like this with my > > > commodities: > > > > > > While parsing file , line 6: > > > Error: commodity directive symbol abc and format directive symbol > should > > > be the same > > > > > > Note the two spaces between "symbol" and "should". Looks like there is > no > > > format directive symbol. Commodities look like this: > > > > > > commodity $ > > > format $ 1,000.00 > > > default > > > > > > commodity abc > > > format 1,000.00 > > > > > > commodity xyz > > > format 1,000.000 > > > > > > And many more entries. I've been using these for many years. Every > format > > > line after the first one produced an error like the above when I ran > the > > > file through ledger. > > > > > > Adding the commodity to the format line makes the error go away: > > > > > > commodity abc > > > format abc 1,000.00 > > > > > > Was I doing it wrong all this time and just getting away with it? > > > > > > Figured I'd share as an FYI that something changed with this, and to > help > > > others that might run into the same error. > > > > > > Thank you! > > > > > > > -- > > > > --- > > 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+...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/c12415e0-8882-4f43-bb1c-71993986f803n%40googlegroups.com > . > > > -- > Martin Michlmayr > https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/0d6f0062-19a3-4bf5-b923-670e69d027c6n%40googlegroups.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
I think this works as expected (now), but maybe it needs to be documented better. "format" requires an example of how the commodity is to be used - you have to include the commodity because some people (or regions) put it before the number and some people after. * Scott Carpenter [2023-06-04 06:00]: > I see now that if I use, say: > > commodity xyz > format 1,000.000 xyz > > Putting the commodity last, things behave the same as before with my > output. > > On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: > > > After updating to 3.3.2, I was getting errors like this with my > > commodities: > > > > While parsing file , line 6: > > Error: commodity directive symbol abc and format directive symbol should > > be the same > > > > Note the two spaces between "symbol" and "should". Looks like there is no > > format directive symbol. Commodities look like this: > > > > commodity $ > > format $ 1,000.00 > > default > > > > commodity abc > > format 1,000.00 > > > > commodity xyz > > format 1,000.000 > > > > And many more entries. I've been using these for many years. Every format > > line after the first one produced an error like the above when I ran the > > file through ledger. > > > > Adding the commodity to the format line makes the error go away: > > > > commodity abc > > format abc 1,000.00 > > > > Was I doing it wrong all this time and just getting away with it? > > > > Figured I'd share as an FYI that something changed with this, and to help > > others that might run into the same error. > > > > Thank you! > > > > -- > > --- > 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/c12415e0-8882-4f43-bb1c-71993986f803n%40googlegroups.com. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20230604153008.GA212580%40jirafa.cyrius.com.
Re: Ledger 3.3.2 change in commodity format sub-directive handling
I see now that if I use, say: commodity xyz format 1,000.000 xyz Putting the commodity last, things behave the same as before with my output. On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: > After updating to 3.3.2, I was getting errors like this with my > commodities: > > While parsing file , line 6: > Error: commodity directive symbol abc and format directive symbol should > be the same > > Note the two spaces between "symbol" and "should". Looks like there is no > format directive symbol. Commodities look like this: > > commodity $ > format $ 1,000.00 > default > > commodity abc > format 1,000.00 > > commodity xyz > format 1,000.000 > > And many more entries. I've been using these for many years. Every format > line after the first one produced an error like the above when I ran the > file through ledger. > > Adding the commodity to the format line makes the error go away: > > commodity abc > format abc 1,000.00 > > Was I doing it wrong all this time and just getting away with it? > > Figured I'd share as an FYI that something changed with this, and to help > others that might run into the same error. > > Thank you! > -- --- 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/c12415e0-8882-4f43-bb1c-71993986f803n%40googlegroups.com.
Ledger 3.3.2 change in commodity format sub-directive handling
After updating to 3.3.2, I was getting errors like this with my commodities: While parsing file , line 6: Error: commodity directive symbol abc and format directive symbol should be the same Note the two spaces between "symbol" and "should". Looks like there is no format directive symbol. Commodities look like this: commodity $ format $ 1,000.00 default commodity abc format 1,000.00 commodity xyz format 1,000.000 And many more entries. I've been using these for many years. Every format line after the first one produced an error like the above when I ran the file through ledger. Adding the commodity to the format line makes the error go away: commodity abc format abc 1,000.00 Was I doing it wrong all this time and just getting away with it? Figured I'd share as an FYI that something changed with this, and to help others that might run into the same error. Thank you! -- --- 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/b0855f9a-7b85-453a-af76-9f0c981b9a63n%40googlegroups.com.
[ANNOUNCE] ledger API documentation available online
Hello all, ledger's API documentation is now available at: https://ledger-cli.org/doc/api/ The API documentation is generated from ledger's source code using doxygen. It features a custom navigation header you all know and love from ledger-cli.org, support for dark mode, SVG based dependency graphs, and more. The API documentation is updated as needed, at the very least with every ledger release. Note that improving the documentation is an ongoing effort, if you have experience with technical documentation or doxygen or C++ or all of the aforementioned you are welcome to contribute. As stated on the API documentation main page: "In case you find [the API] documentation incorrect, incomplete, unclear, or lacking please open a pull request [https://git.ledger-cli.org/ledger/pulls].; Enjoy Alexis -- --- 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/20230411195709.6d7h5xcry7fbgm72%40kei.local.
Re: Ledger mode source code
Thank you for this. On Tue, Apr 4, 2023 at 8:05 PM Jacob MacDonald wrote: > JPP wrote: > > Does the emacs lisp code exist somewhere separate where I can install it? > > https://github.com/ledger/ledger-mode > > It's also in MELPA. > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "Ledger" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ledger-cli/4ehkXqx1utQ/unsubscribe. > To unsubscribe from this group and all its topics, 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/CACy6W0BfEw-C6d_MqGDW2b4_5NcJnJEzpjD%3DHYKfUVPskThAfQ%40mail.gmail.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAHX2JGj6%3D72oR49%2BcMc83d8Ztn8fRx0s%3Dqz5NMOn8VunDoHhbg%40mail.gmail.com.
Re: Ledger mode source code
JPP wrote: > Does the emacs lisp code exist somewhere separate where I can install it? https://github.com/ledger/ledger-mode It's also in MELPA. -- --- 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/CACy6W0BfEw-C6d_MqGDW2b4_5NcJnJEzpjD%3DHYKfUVPskThAfQ%40mail.gmail.com.
Ledger mode source code
Is there a way to install the emacs Ledger mode outside of installation from source? I am using Windows 10 and Emacs 27.1 I was unable to build Ledger from source, so I downloaded the binary for version 3.1.3 instead. The ledger mode manual says that the Emacs source code is included with the source distribution of ledger, but since I didn't build it from source, I don't have access to Ledger mode. Does the emacs lisp code exist somewhere separate where I can install it? I looked through the Github page but didn't see any lisp files. Thank you in advance for any help. -- --- 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/62d727e8-6ec3-41f2-88d1-ee80846137a2n%40googlegroups.com.
[ANNOUNCE] ledger 3.3.2
I tagged ledger 3.3.2: https://github.com/ledger/ledger/releases/tag/v3.3.2 This is a bug fix release in the 3.3.x series. Changes: - Fix divide by zero (bugs #777 and #2207) - Increase string size limit in src/unistring.h assert (bug #2174) - Require tzdata for Nix flake build (bug #2213) Thanks to John Wiegley for fixing the first two issues and to Steve Purcell for fixing the third issue. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20230330074721.GA781310%40jirafa.cyrius.com.
[ANNOUNCE] ledger 3.3.1
I tagged ledger 3.3.1: https://github.com/ledger/ledger/releases/tag/v3.3.1 This is a bug fix release in the 3.3.x series. Most notably, it fixes a regression introduced in 3.3.0. Changes: - Fix regression leading to incorrect error about `format` directives (bug #2205) - Add information about compile features to `--version` - Fix compiler warnings by minimizing the use of deprecated APIs - Update flake.nix to match nixpkgs ledger/default.nix - Remove unused Python server related code - Various documentation improvements Thanks to Reddit users u/sepen_ and u/Boldewyn for reporting the regression and to John for fixing it quickly. Alexis Hildebrandt has made a number of code and documentation cleanups. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/ZAHS3GxA3j3FJpXL%40jirafa.cyrius.com.
Re: [ANNOUNCE] ledger 3.3.0
>>>>> "A" == Alexis writes: A> Thank you Martin for driving this release! It's been long overdue, so great A> to see all these fixes and improvements finally being officially released. Yes, thank you so much to Martin and everyone who was a part of it! 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/m2k00s6kl7.fsf%40newartisans.com.
Re: [ANNOUNCE] ledger 3.3.0
On Wed, Feb 8, 2023 at 8:42 AM Martin Michlmayr wrote: > > * o1bigtenor [2023-02-08 05:33]: > > Should I be waiting until this update wends its way into Debian's > > repositories > > or should I upgrade from source code? > > That's up to you. > > There are no earth-shattering changes that would require an immediate > upgrade imho. > Thank you! I haven't had any issues with what I do using ledger so I didn't think it was crucial. Wonder how long before it will hit the 'testing' repository - - - - grin! Regards -- --- 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/CAPpdf58aXLG36Qi9cNAD9cPOKW3eeC-pHN23tvMSUJ3JG6T%3Dhg%40mail.gmail.com.
Re: [ANNOUNCE] ledger 3.3.0
Thank you Martin for driving this release! It's been long overdue, so great to see all these fixes and improvements finally being officially released. Alexis -- --- 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/20230208152330.qo7p2p26ofp7onau%40kei.local.
Re: [ANNOUNCE] ledger 3.3.0
* o1bigtenor [2023-02-08 05:33]: > Should I be waiting until this update wends its way into Debian's repositories > or should I upgrade from source code? That's up to you. There are no earth-shattering changes that would require an immediate upgrade imho. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Y%2BO00EVQpxgTkT6n%40jirafa.cyrius.com.
Re: [ANNOUNCE] ledger 3.3.0
On Wed, Feb 8, 2023 at 1:36 AM Martin Michlmayr wrote: > > I tagged ledger 3.3.0: > https://github.com/ledger/ledger/releases/tag/v3.3.0 > > Thanks to all contributors who made this release possible! It's been > a long time since the last release and there are quite a number of > changes. > snip Thank y'all for all the hard work Its been a very very long time since I last did anything to my ledger software. Should I be waiting until this update wends its way into Debian's repositories or should I upgrade from source code? TIA -- --- 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/CAPpdf59_iWD6%3DA9LrHU7OJWUWbWthwfVwfGwUa8nKMmUUKtt_A%40mail.gmail.com.
[ANNOUNCE] ledger 3.3.0
I tagged ledger 3.3.0: https://github.com/ledger/ledger/releases/tag/v3.3.0 Thanks to all contributors who made this release possible! It's been a long time since the last release and there are quite a number of changes. Here are the changes in 3.3.0: - Use `$PAGER` when environment variable is set (bug #1674) - Make `--depth` correctly fold postings to accounts of greater depth into the parent at the specified level (bug #987) - When using wild-cards in the `include` directive, include matched files in sorted order (bug #1659) - Ensure absolute path for include (bug #2075) - Try to use `$XDG_HOME_CONFIG/ledger/ledgerrc` or `~/.config/ledger/ledgerrc` first - Improve Python 3 support and drop support for Python 2 - Add support for automatically reading files encrypted with GPG (bug #1949) - Add support for a "debit" column in the `convert` command (bug #1120) - Fix parsing of files without end of line (bug #516) - Fix incorrect parsing of expressions containing a `-` without spaces (bug #2001) - Fix payee metadata on postings not being validated and payee aliases not being honored (bug #556 & bug #1892) - Fix ledger interpreting a posting with 0 difference as a null-posting, which leads to it auto-balancing the posting (bug #1942) - Correctly escape all string values in lisp report (bug #2034) - Fix a regression where empty commodities were shown (bug #1969) - Fix a regression where using multiple commodities in one transaction triggers an assertion (bug #1998) - Fix --time-colon for negative time amounts - Use correct int return type for stream input operations (bug #2058) - Use amount_width for balance report - Remove some UTF-8 code that was having no effect (bug #2061) - Fix unrounding for equity - Fix SIGABRT when python subcommand raises an exception - Improve XML reports - Support building on older versions of CMAKE (less than 3.7) - Fix compilation with Boost 1.76 (bug #2030) - Fix Msys2 MinGW build (bug #1905) - Fix unicode problems on Windows (bug #1986) - Fix the issue that with Boost >= 1.77 `include` directive cannot find the file to include for stdin (`-f -`). Also for `-f -` when `include` cannot find the file it reports the error with full path now. (bug #2057 & bug #2092) - Fix Nix build - Rename `quoted_rfc4180` to `quoted_rfc`, as numbers used in function names confuses the parser (#2007). - Numbers are no longer permitted in value expression function names. - Various documentation improvements -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Y%2BNQ8nCbaWk0Z10R%40jirafa.cyrius.com.
Re: Planning new ledger release
>>>>> "MM" == Martin Michlmayr writes: MM> I've been saying for months that we need a new release of ledger. There MM> have been a lot of fixes in the last ~2 years. MM> If anyone has pending fixes or contributions, please open PRs now. I definitely support this, and will devote time this month to commenting and reviewing. Please ping me anywhere that my eyes are needed, Martin. 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/m2bkmsoejp.fsf%40newartisans.com.
Re: Planning new ledger release
On Fri, Jan 20, 2023 at 12:19:28PM +0800, Martin Michlmayr wrote: > I've been saying for months that we need a new release of ledger. > There have been a lot of fixes in the last ~2 years. Fully agree! > If anyone has pending fixes or contributions, please open PRs now. Let's also add any pending fixes that should be considered for the next release to the 3.3 milestone (https://github.com/ledger/ledger/milestone/4). And can the 3.3.x milestone (https://github.com/ledger/ledger/milestone/6) be merged with the 3.3 one? > I intend to make a new release of ledger soon. Ideally this month. > Your help is appreciated! Crunch time :) Best Alexis -- --- 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/20230120151056.3iwifcbh472r3b6f%40kei.local.
Planning new ledger release
I've been saying for months that we need a new release of ledger. There have been a lot of fixes in the last ~2 years. If anyone has pending fixes or contributions, please open PRs now. Is anyone aware of any blockers? (I am not of anything major that would block a release.) I intend to make a new release of ledger soon. Ideally this month. Your help is appreciated! -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Y8oWUJMQZethk/mC%40jirafa.cyrius.com.
ledger-cli raise error on inline math used with Lot note
Hi all, I found this works $ cat test.ledger 2023/1/1 test Assets 12 AAPL (lot-note) @ 100 USD Expenses Income 20 AAPL $ ledger -f test.ledger print 2023/01/01 test Assets 12 APPL {100 USD} [2023/01/01] (lot-note) @ 100 USD Expenses Income 20 AAPL while this doesn't work $ cat test.ledger 2023/1/1 test Assets (20 * 0.6 APPL) (lot-note) @ 100 USD Expenses Income 20 AAPL $ ledger -f test.ledger print While parsing file "/home/kikeg/projects/ikegami-journal/test.ledger", line 2: While parsing posting: Assets (20 * 0.6 APPL) (lot-note) @ 100 USD Error: Unexpected char '(' (Note: inline math requires parentheses) Is there any workaround for that? -- --- 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/a830dcea-32ec-44d7-b535-1de3ee0479bcn%40googlegroups.com.
Re: ledger csv output compatible with rfc 4180?
I have opened pull request 2168 <https://github.com/ledger/ledger/pull/2168> to fix this. An earlier change wrote the new function "quoted_rfc4180", but that doesn't work for the simple but goofy reason that the Ledger expression parser considers that to be an amount (with quantity 4180 and commodity symbol "quoted_rfc"). On Wednesday, November 9, 2016 at 7:41:51 PM UTC-8 Gina White wrote: > I found the code where fn_quoted lives and can imagine adding something > called fn_quoted_rfc4180, based on that. Does that seem like a good change? > > - Gina > > On Wed, Nov 9, 2016 at 4:53 PM Gina White wrote: > >> Hi ledger folk, >> >> I would like to import ledger data into my go program. It looks like csv >> gets me pretty close, but I am running into a problem with how escaping is >> done. >> >> The go stdlib csv implementation is based on rfc 4180, which says that >> for double quotes to appear inside a field, they should be escaped with >> another double-quote i.e. >> >> "field 1","this is ""another"" field" >> >> but the csv that ledger is outputting escapes things like this: >> >> "field 1","this is \"another\" field" >> >> Is there a reasonable way to convince ledger to escape things according >> to rfc 4180? Is there maybe another path besides csv I should be looking >> at? >> >> thanks >> - Gina >> > -- --- 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/1327b473-cbb6-444e-b409-e8681e3eab48n%40googlegroups.com.
Re: Preliminary efforts in porting Ledger to Rust
I'm also interested in Rust, so started a personal project. https://github.com/xkikeg/okane It's not a porting, rather a niche tool to import CSV/Camt.053 files. Now I'm implementing parser for formatter, so i can export as a crate if needed. 2022年12月30日金曜日 20:45:26 UTC+1 cick0: > There were several very interesting articles on this topic recently. I > will here share just this one. > It tells a lot about Go. > > > https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang#the-author-is-a-platypus > > I'll just add that I'm happy with my instinctive choice between the two > languages. > > On Wednesday, 14 December 2022 at 5:14:58 am UTC+1 Daryl Manning wrote: > >> Out of curiosity, why was Rust chosen vs. say, Go? While I'm happy to see >> efforts at porting and replacing C++ (which makies it hard to contribute), >> I find Rust has the same issues with high learning curve to get productive >> (not to mention "sub-langs" within it) and ake contribution from a wider >> audience harder. >> >> Don't get me wrong. I like Rust. A lot. Just not so sure I wouldn't have >> ported to Go depending on the goals of why we're switching languages. >> (that said Rust > C++ from my perspective if you're making the change... >> =] ). >> >> On Tuesday, 13 December 2022 at 23:17:28 UTC+7 cick0 wrote: >> >>> Hi! I'd like to post here, as well, regarding the "toe-in-the-water" >>> efforts of porting Ledger to Rust. >>> The usual suspects are familiar with it from the Reddit channel but for >>> those that only frequent this group, it may be news. >>> >>> I have created a repository for discussing issues here: >>> https://github.com/alensiljak/ledger-cli-rs/ >>> >>> Please join in if you are interested. Do note that this is not intended >>> as yet-another-ledger-port-attempt, but more as pooling with the goal of >>> producing the definitive Ledger port and successor, drawing from the >>> initial thread on Reddit. >>> >> -- --- 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/a43cf847-426d-4bc7-be19-619ae317e6fdn%40googlegroups.com.
Re: Preliminary efforts in porting Ledger to Rust
There were several very interesting articles on this topic recently. I will here share just this one. It tells a lot about Go. https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang#the-author-is-a-platypus I'll just add that I'm happy with my instinctive choice between the two languages. On Wednesday, 14 December 2022 at 5:14:58 am UTC+1 Daryl Manning wrote: > Out of curiosity, why was Rust chosen vs. say, Go? While I'm happy to see > efforts at porting and replacing C++ (which makies it hard to contribute), > I find Rust has the same issues with high learning curve to get productive > (not to mention "sub-langs" within it) and ake contribution from a wider > audience harder. > > Don't get me wrong. I like Rust. A lot. Just not so sure I wouldn't have > ported to Go depending on the goals of why we're switching languages. > (that said Rust > C++ from my perspective if you're making the change... > =] ). > > On Tuesday, 13 December 2022 at 23:17:28 UTC+7 cick0 wrote: > >> Hi! I'd like to post here, as well, regarding the "toe-in-the-water" >> efforts of porting Ledger to Rust. >> The usual suspects are familiar with it from the Reddit channel but for >> those that only frequent this group, it may be news. >> >> I have created a repository for discussing issues here: >> https://github.com/alensiljak/ledger-cli-rs/ >> >> Please join in if you are interested. Do note that this is not intended >> as yet-another-ledger-port-attempt, but more as pooling with the goal of >> producing the definitive Ledger port and successor, drawing from the >> initial thread on Reddit. >> > -- --- 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/df23e98f-cf66-4c54-a9e7-23db75b30ea2n%40googlegroups.com.
Re: Preliminary efforts in porting Ledger to Rust
Uhhh, that's an interesting question. I have to say that I did use Go before trying Rust. While I don't really have much against Go, it just happened that Rust ticked many of the imaginary boxes I've had, I guess. The development hasn't been as much fun in a long time. You are absolutely right that the learning curve is higher with Rust. I find it justified, though, based on the results it offers. Naturally, both languages/ecosystems have evolved significantly over the years and the differences between them have narrowed. I think that the adoption of Rust into the Linux kernel as well as the Windows source code, along with some cloud implementations (for which Go was initially advertised and recommended) have made the decision easier for me. That gave me the additional motivation to put in the effort and find time to overcome the initial hurdles. Long story short, if I had to place a bet between the two right now, it would be on Rust. I just see it as a better long-term investment (of time and effort). Cheers! On Wednesday, 14 December 2022 at 5:14:58 am UTC+1 Daryl Manning wrote: > Out of curiosity, why was Rust chosen vs. say, Go? While I'm happy to see > efforts at porting and replacing C++ (which makies it hard to contribute), > I find Rust has the same issues with high learning curve to get productive > (not to mention "sub-langs" within it) and ake contribution from a wider > audience harder. > > Don't get me wrong. I like Rust. A lot. Just not so sure I wouldn't have > ported to Go depending on the goals of why we're switching languages. > (that said Rust > C++ from my perspective if you're making the change... > =] ). > > On Tuesday, 13 December 2022 at 23:17:28 UTC+7 cick0 wrote: > >> Hi! I'd like to post here, as well, regarding the "toe-in-the-water" >> efforts of porting Ledger to Rust. >> The usual suspects are familiar with it from the Reddit channel but for >> those that only frequent this group, it may be news. >> >> I have created a repository for discussing issues here: >> https://github.com/alensiljak/ledger-cli-rs/ >> >> Please join in if you are interested. Do note that this is not intended >> as yet-another-ledger-port-attempt, but more as pooling with the goal of >> producing the definitive Ledger port and successor, drawing from the >> initial thread on Reddit. >> > -- --- 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/3a4665c3-743a-4b3c-9480-204fbe09c53cn%40googlegroups.com.
Re: Preliminary efforts in porting Ledger to Rust
Out of curiosity, why was Rust chosen vs. say, Go? While I'm happy to see efforts at porting and replacing C++ (which makies it hard to contribute), I find Rust has the same issues with high learning curve to get productive (not to mention "sub-langs" within it) and ake contribution from a wider audience harder. Don't get me wrong. I like Rust. A lot. Just not so sure I wouldn't have ported to Go depending on the goals of why we're switching languages. (that said Rust > C++ from my perspective if you're making the change... =] ). On Tuesday, 13 December 2022 at 23:17:28 UTC+7 cick0 wrote: > Hi! I'd like to post here, as well, regarding the "toe-in-the-water" > efforts of porting Ledger to Rust. > The usual suspects are familiar with it from the Reddit channel but for > those that only frequent this group, it may be news. > > I have created a repository for discussing issues here: > https://github.com/alensiljak/ledger-cli-rs/ > > Please join in if you are interested. Do note that this is not intended as > yet-another-ledger-port-attempt, but more as pooling with the goal of > producing the definitive Ledger port and successor, drawing from the > initial thread on Reddit. > -- --- 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/78e53163-ccca-427c-a6d3-fdb1dc14170en%40googlegroups.com.
Preliminary efforts in porting Ledger to Rust
Hi! I'd like to post here, as well, regarding the "toe-in-the-water" efforts of porting Ledger to Rust. The usual suspects are familiar with it from the Reddit channel but for those that only frequent this group, it may be news. I have created a repository for discussing issues here: https://github.com/alensiljak/ledger-cli-rs/ Please join in if you are interested. Do note that this is not intended as yet-another-ledger-port-attempt, but more as pooling with the goal of producing the definitive Ledger port and successor, drawing from the initial thread on Reddit. -- --- 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/667391be-9192-4023-92aa-4b7cdd921652n%40googlegroups.com.
ledger2beancount 2.7: ledger-to-beancount converter
I released version 2.7 of ledger2beancount, the ledger-to-beancount converter. You can get ledger2beancount from GitHub: https://github.com/beancount/ledger2beancount Here are the changes in 2.7: * Fix parsing of amounts with decimal comma with default commodity in hledger mode * Allow amounts without fractional part but decimal separator for hledger * Improve pre-processing example in documentation * Add support for amounts with plus sign * Set option `name_income` for top-level account `Revenue` * Fix whitespace handling for inline maths -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Y4s49u%2BzNM2S85PJ%40jirafa.cyrius.com.
Formatting of 'ledger convert'
Hi, I've noticed that 'ledger convert' uses sometimes formatting like this (purpose on first line) 2022-10-19 * Fancy Payee ; purpose/description ... and sometimes like this (purpose an next line): 2022-10-19 * Fancy Payee ;some longer purpose/description ... Can this be controlled? I would always prefer the latter formatting. Pinus :) -- --- 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/4df98dbb-52f7-4d94-a427-7c6f3919fba6n%40googlegroups.com.
Re: Sample ledger file with all emacs faces
david kayal wrote: > Funny, I am not finding ledger-mode in ELPA. Looks like MELPA, MELPA Stable, or manually are the suggested ways to install it (https://github.com/ledger/ledger-mode/blob/8bad528d43007e0310b5e72e6e021b502b30495c/README.md). -- --- 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/CACy6W0A9VW5ejc%3DzyNjFy9Ew0iFExrwKSv8DGDmqP3nsBVjuOg%40mail.gmail.com.
Re: Sample ledger file with all emacs faces
Funny, I am not finding ledger-mode in ELPA. On Thursday, September 8, 2022 at 8:32:49 PM UTC-7 alan.s...@polytechnique.org wrote: > Hello, > > Is there a sample ledger file that leverages all the faces used in emacs > for ledger-mode? It would be used to test the colors of a theme and > tweak them if necessary. > > Best, > > Alan > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/3dd2e620-8c0a-4d3f-b5f4-68e7dcd7cbd4n%40googlegroups.com.
Sample ledger file with all emacs faces
Hello, Is there a sample ledger file that leverages all the faces used in emacs for ledger-mode? It would be used to test the colors of a theme and tweak them if necessary. Best, Alan -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/877d2dgr36.fsf%40m4x.org. signature.asc Description: PGP signature
Re: Ledger-mode reconcile: space bar not working
Take a look at this <https://www.emacswiki.org/emacs/Evil>, and see the section on "Making the most of RET and SPC" (easy) or "Overriding and intercept keymaps". On Monday, May 23, 2022 at 2:48:25 PM UTC-7 Pete Kelly wrote: > Somewhat solved. The spacebar was bound to an evil mode command to move > forward one character. I switched from Emacs mode to evil mode with CTRL-Z > and now the spacebar is bound correctly to 'ledger-reconcile-toggle.' > > Should I put something in my .emacs to disable evil mode in the > ledger-mode reconcile buffer? What's the right way to do it? > > Thank you, > Pete > > On Monday, May 23, 2022 at 2:35:54 PM UTC-4 Pete Kelly wrote: > >> My first time trying to reconcile an account using ledger-mode. I put the >> cursor on the account to be reconciled, for example, >> >> 2022-01-01 Stop & Shop >> Expenses:Groceries $50 >> Assets:Checking <--- CURSOR ON THIS LINE >> >> then start reconciliation with C-c C-r. The account 'Assets:Checking' is >> displayed in the minibuffer, I press Enter. The Reconcile buffer appears. I >> enter the target balance and the cursor appears at the top of the Reconcile >> buffer When I move the cursor to a transaction and press the space bar to >> clear it, nothing happens, except that the cursor moves to the right one >> space. >> >> My Emacs version is 27.2 on MacOS High Sierra >> >> Probably just a beginner mistake on my part, but I can't solve it. >> >> Thank you for any help, >> Pete >> > -- --- 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/4e13bade-5ff4-4b93-b5d5-b7e7292b19e8n%40googlegroups.com.
I am writing a booklet about double-entry bookkeeping, using Ledger for examples
Hello, as stated in the subject line, I am writing a booklet about accounting and Ledger. I briefly explained the motivation here: http://mbork.pl/2022-08-15_Personal_accounting_in_Ledger If anyone is interested, the book is available here: https://leanpub.com/personal-accounting-in-ledger/ Of course, any remarks are welcome! Best, -- Marcin Borkowski http://mbork.pl -- --- 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/87wnbacaev.fsf%40mbork.pl.
missing intervals on ledger reg -W or -M
Hi everyone, Whenever I am doing "ledger reg -X CAD -W --collapse --no-revalued" or "ledger reg -X CAD -M --collapse --no-revalued" there are missing intervals. $ ledger reg -X CAD -W --collapse --no-revalued 2020-11-29 - 2020-12-05 Cash 192.9400 CAD 226,779.480261231378 CAD 2020-12-06 - 2020-12-12 0.086737479459 CAD 225,306.168589386820 CAD 2020-12-13 - 2020-12-19 -42.551551122370 CAD 227,509.484786148762 CAD 2020-12-20 - 2020-12-26 271.695013652689 CAD 228,107.147998881809 CAD 2020-12-27 - 2021-01-02 113.450380521600 CAD 229,975.300316855243 CAD 2021-01-03 - 2021-01-09 551.657776931200 CAD 232,937.085449124345 CAD 2021-01-17 - 2021-01-23 132.319135076248 CAD 235,457.541649353943 CAD 2021-01-24 - 2021-01-30 -9.985408708764 CAD 229,023.924109204663 CAD 2021-01-31 - 2021-02-06 -1,146.485199149575 CAD 239,161.395804231186 CAD 2021-02-07 - 2021-02-13 351.454283883130 CAD 239,692.335874303866 CAD 2021-02-14 - 2021-02-20 -448.750267140730 CAD 234,027.301190274859 CAD 2021-02-21 - 2021-02-27 -20,669.266279905000 CAD 205,868.465714382660 CAD 2021-02-28 - 2021-03-06 1,257.987706461120 CAD 209,866.680360694725 CAD 2021-03-07 - 2021-03-13 330.304017858620 CAD 211,061.907511405715 CAD 2021-03-14 - 2021-03-20 -370.955668657860 CAD 210,791.697613582425 CAD 2021-03-21 - 2021-03-27 558.621574387980 CAD 214,403.974250132046 CAD 2021-03-28 - 2021-04-03 239.383898046000 CAD 218,113.692841986786 CAD 2021-04-04 - 2021-04-10 228.127506338664 CAD 227,824.707480255925 CAD 2021-04-11 - 2021-04-17 -242.775497578815 CAD 230,876.243294617291 CAD 2021-04-18 - 2021-04-24 -215.829286146236 CAD 229,053.146193636369 CAD 2021-04-25 - 2021-05-01 78.52228020 CAD 226,298.215092606093 CAD 2021-05-02 - 2021-05-08 -597.056420932840 CAD 228,828.424775133430 CAD 2021-05-09 - 2021-05-15 -74.754047284521 CAD 225,162.592247742135 CAD 2021-05-16 - 2021-05-22 -444.804303008000 CAD 221,220.745762104704 CAD 2021-05-30 - 2021-06-05 721.368235867332 CAD 227,938.581611528005 CAD 2021-06-06 - 2021-06-12 Cash 68.0708 CAD 229,290.240805691168 CAD 2021-06-13 - 2021-06-19 -1,582.293573766134 CAD 228,288.174875820130 CAD 2021-06-20 - 2021-06-26 -1.748088540520 CAD 237,295.739541880961 CAD 2021-06-27 - 2021-07-03 -214.759746093550 CAD 247,014.736538519574 CAD 2021-07-04 - 2021-07-10 11.979634650804 CAD 251,706.39412849 CAD 2021-07-18 - 2021-07-24 -611.753560926668 CAD 258,482.611799151237 CAD 2021-08-01 - 2021-08-07 219.226865547686 CAD 258,980.839265761665 CAD 2021-08-22 - 2021-08-28
Re: Ledger giving unknown account/commodity warnings
I commented out the: export LEDGER_FILE=$HOME/ledger.dat in my ~/.profile and the errors have disappeared and everything appears to be working correctly. What I don't understand is that I have had those 2 lines in ~/.profile ever since I started using ledger over a year ago with no problem. In any case, thanks for your assistance. On Sunday, June 19, 2022 at 10:12:54 AM UTC-5 yuri...@gmail.com wrote: > On Sun, 19 Jun 2022 at 20:28, Oliver Hardy wrote: > > > In my ~/.profile I have the lines: > > export LEDGER_FILE=$HOME/Accounts.dat > > export LEDGER_FILE=$HOME/ledger.dat > > This does not make much sense. You’re setting an environment variable > to point at one file, then reassign it to point at a different file. > Only the latter assignment takes effect. > -- --- 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/ad8a91fd-2a4f-4cbb-a861-7d2f37176218n%40googlegroups.com.
Re: Ledger giving unknown account/commodity warnings
On Sun, 19 Jun 2022 at 20:28, Oliver Hardy wrote: > In my ~/.profile I have the lines: > export LEDGER_FILE=$HOME/Accounts.dat > export LEDGER_FILE=$HOME/ledger.dat This does not make much sense. You’re setting an environment variable to point at one file, then reassign it to point at a different file. Only the latter assignment takes effect. -- --- 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/CAP_d_8XtKJD6NnBY8Ve_fKyqs182bKAkp_74sgnnx5UsrFGtsw%40mail.gmail.com.
Re: Ledger giving unknown account/commodity warnings
Can you send the content or attach the files? (remove sensitive information) On Sun, Jun 19, 2022 at 10:28 AM Oliver Hardy wrote: > I am running emacs 28.1 and have upgraded to the most recent > ledger-mode-20220617.1148. > I have changed nothing on my system (OpenBSD-current) but this morning, > after entering several items in ledger, check-buffer came back with: > > Warning: "/home/slaurel/ledger.dat", line 5177: Unknown account > 'Income:SocSecurity' > Warning: "/home/slaurel/ledger.dat", line 5180: Unknown commodity '$' > Warning: "/home/slaurel/ledger.dat", line 5181: Unknown account > 'Liabilities:Apple Pay' > Warning: "/home/slaurel/ledger.dat", line 5184: Unknown account > 'Expenses:Food:Dining' > Warning: "/home/slaurel/ledger.dat", line 5184: Unknown commodity '$' > Warning: "/home/slaurel/ledger.dat", line 5185: Unknown account > 'Expenses:Cash' > > In my ~/.profile I have the lines: > export LEDGER_FILE=$HOME/Accounts.dat > export LEDGER_FILE=$HOME/ledger.dat > > As I said have changed nothing and have no idea why I am suddenly getting > these errors or where to look for a solution. > > Any advice is appreciated. > > > > > -- > > --- > 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/593c6d1c-8b52-4cec-88e1-4eda075cdc68n%40googlegroups.com > <https://groups.google.com/d/msgid/ledger-cli/593c6d1c-8b52-4cec-88e1-4eda075cdc68n%40googlegroups.com?utm_medium=email_source=footer> > . > -- --- 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/CAHvMVPQ_eeWiDAPyOrHZxS9K%2B1CCX%3DkAtA3Mx4M%3DmNMPN9J%2Bzg%40mail.gmail.com.
Ledger giving unknown account/commodity warnings
I am running emacs 28.1 and have upgraded to the most recent ledger-mode-20220617.1148. I have changed nothing on my system (OpenBSD-current) but this morning, after entering several items in ledger, check-buffer came back with: Warning: "/home/slaurel/ledger.dat", line 5177: Unknown account 'Income:SocSecurity' Warning: "/home/slaurel/ledger.dat", line 5180: Unknown commodity '$' Warning: "/home/slaurel/ledger.dat", line 5181: Unknown account 'Liabilities:Apple Pay' Warning: "/home/slaurel/ledger.dat", line 5184: Unknown account 'Expenses:Food:Dining' Warning: "/home/slaurel/ledger.dat", line 5184: Unknown commodity '$' Warning: "/home/slaurel/ledger.dat", line 5185: Unknown account 'Expenses:Cash' In my ~/.profile I have the lines: export LEDGER_FILE=$HOME/Accounts.dat export LEDGER_FILE=$HOME/ledger.dat As I said have changed nothing and have no idea why I am suddenly getting these errors or where to look for a solution. Any advice is appreciated. -- --- 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/593c6d1c-8b52-4cec-88e1-4eda075cdc68n%40googlegroups.com.
Re: Ledger python package?
On April 28, 2022 6:45:58 AM CDT, o1bigtenor wrote: >On Wed, Apr 27, 2022 at 7:35 AM David Bremner wrote: >> >> Philogy writes: >> >> > Hello everyone, I'm just starting to get into ledger and other PTA tools >> > but I'm wondering where and how I can use the `ledger` Python package. I >> > see on github that there's a python folder with an example but I can't seem >> > to find the referenced package / module anywhere in the documentation or >> > online. I'm very interested in using ledger as my accounting system but I'd >> > need to extend with a couple features. >> >> It might depend a bit on your OS. On Linux it suffices to add >> "-DUSE_PYTHON=ON" to the cmake arguments. This generates an >> appropriately named shared library, which is the extension [1]. I agree it >> would be cool if >> this was documented somewhere. >> >> >Hm - - - curious - - - - what does using this 'python' folder give >you that is not in the 'regular' version? It parses your ledger transactions into Python objects. I use it to build tools to automatically edit my ledger file: https://gist.github.com/tubaman/0e80cec388d3d5d61e3f300e2477a9ae -- --- 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/A0C1618F-59AA-4A38-9E3C-C1F5429C99A0%40fattuba.com.
Re: Ledger-mode reconcile: space bar not working
Somewhat solved. The spacebar was bound to an evil mode command to move forward one character. I switched from Emacs mode to evil mode with CTRL-Z and now the spacebar is bound correctly to 'ledger-reconcile-toggle.' Should I put something in my .emacs to disable evil mode in the ledger-mode reconcile buffer? What's the right way to do it? Thank you, Pete On Monday, May 23, 2022 at 2:35:54 PM UTC-4 Pete Kelly wrote: > My first time trying to reconcile an account using ledger-mode. I put the > cursor on the account to be reconciled, for example, > > 2022-01-01 Stop & Shop > Expenses:Groceries $50 > Assets:Checking <--- CURSOR ON THIS LINE > > then start reconciliation with C-c C-r. The account 'Assets:Checking' is > displayed in the minibuffer, I press Enter. The Reconcile buffer appears. I > enter the target balance and the cursor appears at the top of the Reconcile > buffer When I move the cursor to a transaction and press the space bar to > clear it, nothing happens, except that the cursor moves to the right one > space. > > My Emacs version is 27.2 on MacOS High Sierra > > Probably just a beginner mistake on my part, but I can't solve it. > > Thank you for any help, > Pete > -- --- 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/56229d72-1dad-46ce-8b97-dd9e629e65f1n%40googlegroups.com.
Ledger-mode reconcile: space bar not working
My first time trying to reconcile an account using ledger-mode. I put the cursor on the account to be reconciled, for example, 2022-01-01 Stop & Shop Expenses:Groceries $50 Assets:Checking <--- CURSOR ON THIS LINE then start reconciliation with C-c C-r. The account 'Assets:Checking' is displayed in the minibuffer, I press Enter. The Reconcile buffer appears. I enter the target balance and the cursor appears at the top of the Reconcile buffer When I move the cursor to a transaction and press the space bar to clear it, nothing happens, except that the cursor moves to the right one space. My Emacs version is 27.2 on MacOS High Sierra Probably just a beginner mistake on my part, but I can't solve it. Thank you for any help, Pete -- --- 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/683a6af4-1847-4857-852f-57114f47fba3n%40googlegroups.com.
Re: Ledger python package?
On Wed, Apr 27, 2022 at 7:35 AM David Bremner wrote: > > Philogy writes: > > > Hello everyone, I'm just starting to get into ledger and other PTA tools > > but I'm wondering where and how I can use the `ledger` Python package. I > > see on github that there's a python folder with an example but I can't seem > > to find the referenced package / module anywhere in the documentation or > > online. I'm very interested in using ledger as my accounting system but I'd > > need to extend with a couple features. > > It might depend a bit on your OS. On Linux it suffices to add > "-DUSE_PYTHON=ON" to the cmake arguments. This generates an > appropriately named shared library, which is the extension [1]. I agree it > would be cool if > this was documented somewhere. > > Hm - - - curious - - - - what does using this 'python' folder give you that is not in the 'regular' version? TIA -- --- 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/CAPpdf5-tKMUb2c8by7yS4Gk%3DM68rOS%2Bb_OFqTdmGobOvjX7a9Q%40mail.gmail.com.
Re: Ledger python package?
Philogy writes: > Hello everyone, I'm just starting to get into ledger and other PTA tools > but I'm wondering where and how I can use the `ledger` Python package. I > see on github that there's a python folder with an example but I can't seem > to find the referenced package / module anywhere in the documentation or > online. I'm very interested in using ledger as my accounting system but I'd > need to extend with a couple features. It might depend a bit on your OS. On Linux it suffices to add "-DUSE_PYTHON=ON" to the cmake arguments. This generates an appropriately named shared library, which is the extension [1]. I agree it would be cool if this was documented somewhere. d [1]: for me currently this ends up as /usr/lib/python3/dist-packages/ledger.cpython-310-x86_64-linux-gnu.so -- --- 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/87ilquiu09.fsf%40tethera.net.
Ledger python package?
Hello everyone, I'm just starting to get into ledger and other PTA tools but I'm wondering where and how I can use the `ledger` Python package. I see on github that there's a python folder with an example but I can't seem to find the referenced package / module anywhere in the documentation or online. I'm very interested in using ledger as my accounting system but I'd need to extend with a couple features. Any help would be appreciated! -- --- 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/d6701b17-4e9d-4576-91dc-5dd171a0975en%40googlegroups.com.
Re: Ledger Convert should add an amount to the stated account, not the guessed account
>>>>> "JJ" == J J writes: JJ> The proposed change would instead have Ledger provide the amount on the JJ> given account and elide the expense side. This way, a user can easily add JJ> new expense lines to make a split. Sounds like a great feature request to me! 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/m2fsmdd4lc.fsf%40newartisans.com.
Ledger Convert should add an amount to the stated account, not the guessed account
All, I am seeking feedback on a proposed change on Github: https://github.com/ledger/ledger/pull/2086 In a nutshell, when Ledger Convert processes a CSV it inputs an amount on the guessed account (often, the Expense) and elides the amount for the given account attached to the CSV (often, a bank account). This works, but makes splitting transactions among other expenses accounts tedious. The user must rework the provided amounts. The proposed change would instead have Ledger provide the amount on the given account and elide the expense side. This way, a user can easily add new expense lines to make a split. 2022/02/01* Blublub Expenses:Groceries 100,00 Accounts:Cache Becomes 2022/02/01* Blublub Expenses:Groceries Accounts:Cache -100,00 Project contributors would like the users' opinions before making a change like this. Please provide feedback, if you have any. Thanks! -- --- 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/1e32a5d5-8ebc-41aa-8308-6e372244e704n%40googlegroups.com.
RE: The Five-Minute Ledger Update
> * Problem: Updating Your Ledger is a Pain! * > > *That’s right, updating your ledger with data from your financial > institutions is the most laborious and frustrating part of personal > finance. It doesn’t need to be so with Beancount (or other PTA), which is > the point of this series of articles.* Oh, wow, you have no idea how close this hits to home! ;) I've *really* been struggling with this the past several months, so much so that my New Year's resolution for 2022 is to automate as much of my ledger workflow as possible. This year is now over 1/4 finished but I'm nowhere close to even automating imports for 1/4 of my accounts, so I'm *really* looking forward to reading your articles. :D Thank you in advance! -- --- 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/1649795218.092134%40apps.rackspace.com.
The Five-Minute Ledger Update
Though I wrote the article series below as a Beancount user, it primarily focuses on the principles behind getting your import workflow to less than five minutes, and as such, is applicable to all PTA. So I thought I'd share it here. Link to article series: *The Five-Minute Ledger Update <https://reds-rants.netlify.app/personal-finance/the-five-minute-ledger-update/>* Extract follows: * Problem: Updating Your Ledger is a Pain! * *That’s right, updating your ledger with data from your financial institutions is the most laborious and frustrating part of personal finance. It doesn’t need to be so with Beancount (or other PTA), which is the point of this series of articles.* *With a little bit of effort upfront, open source tooling can actually be way better than commercial solutions, and far more flexible and extensible.* *Zero Effort Updates* *The ultimate vision of this set of articles is to have your ledger updated automatically with zero effort from you. How close can we get to that vision? When I started out, each update would take hours of frustrating effort and reconciliation across 60+ accounts at institutions. So much so, I only did updates once in a few months. After understanding why, and developing solutions, I am now at a point where my ledger updates take well less than five minutes.* *Bringing it down to under five minutes was critical to making personal finance productive and fun, because it lets me get away from tinkering, and enables me to focus on the actual finances.* -- --- 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/36156c2c-7b12-425e-ab9a-5b94eb472575n%40googlegroups.com.
Re: Continuing ledger after a large gap
I like to create an entire new category for that: Equity:Gaps:Gap between 2016 and 2018 I'm not sure if it's a good approach, but it's useful for me. On Mon, Mar 14, 2022 at 5:24 PM Colin Dean wrote: > 100% this, Martin! > > It's always better to pick up the present and fill in the past than it is > to languish and lament on the past to spite the present and future. > > This probably applies to a lot of things in life, but definitely to > accounting and definitely to PTA. > > For the past things, automate as much as you can to get coarse imports of > data in that time range, then you can revise with more exact information, > payees, etc. for data preservation. > > On Sunday, March 13, 2022 at 10:52:52 PM UTC-4 Martin Michlmayr wrote: > >> * melb...@gmail.com [2022-03-13 19:35]: >> > Hello I have about 7 years worth of data in a ledger file till >> > ~2019. Due to some life events I had to stop updating it and now I >> > would like to pick it back up. >> > >> > I would really like add to the same file. Is there a good approach >> > to do this? >> >> I'd post adjustment entries to bring your balances in sync with what >> your bank says. >> >> If your ledger from 2019 says you have 400 EUR in the bank, but the >> bank balance is 1000 EUR right now, you could add this entry: >> >> 2022-03-14 * Adjust bank balance >> Assets:Bank 600.00 EUR = 1000 EUR >> Equity:Opening balance >> >> In fact, ledger supports setting a certain balance like this: >> >> 2022-03-14 * Adjust >> Assets:Bank = 1000 EUR >> Equity:Opening balance >> >> If you later find time to important bank transactions from 2019-2022, >> you can always do that. >> >> -- >> Martin Michlmayr >> https://www.cyrius.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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/d9bea067-9920-482e-973f-976a1c781c97n%40googlegroups.com > <https://groups.google.com/d/msgid/ledger-cli/d9bea067-9920-482e-973f-976a1c781c97n%40googlegroups.com?utm_medium=email_source=footer> > . > -- --- 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/CAHvMVPQ4Pc4x4576kQ2K17tpxU4UZbQbuhv3BffQP4JhCTN1%2BA%40mail.gmail.com.
Re: Continuing ledger after a large gap
Agree with the suggestions made by Martin and Colin. I'd add that due to various personal circumstances, I slipped up on updating my journal for 1.5 years during the pandemic. It took me around 4-5 hours (half a Saturday, more or less) to catch up through manual data entry. But don't put off adding new data just because you haven't added the old data (i.e., don't do what I did!). All the best! On Tuesday, 15 March, 2022 at 1:54:19 am UTC+5:30 c...@cad.cx wrote: > 100% this, Martin! > > It's always better to pick up the present and fill in the past than it is > to languish and lament on the past to spite the present and future. > > This probably applies to a lot of things in life, but definitely to > accounting and definitely to PTA. > > For the past things, automate as much as you can to get coarse imports of > data in that time range, then you can revise with more exact information, > payees, etc. for data preservation. > > On Sunday, March 13, 2022 at 10:52:52 PM UTC-4 Martin Michlmayr wrote: > >> * melb...@gmail.com [2022-03-13 19:35]: >> > Hello I have about 7 years worth of data in a ledger file till >> > ~2019. Due to some life events I had to stop updating it and now I >> > would like to pick it back up. >> > >> > I would really like add to the same file. Is there a good approach >> > to do this? >> >> I'd post adjustment entries to bring your balances in sync with what >> your bank says. >> >> If your ledger from 2019 says you have 400 EUR in the bank, but the >> bank balance is 1000 EUR right now, you could add this entry: >> >> 2022-03-14 * Adjust bank balance >> Assets:Bank 600.00 EUR = 1000 EUR >> Equity:Opening balance >> >> In fact, ledger supports setting a certain balance like this: >> >> 2022-03-14 * Adjust >> Assets:Bank = 1000 EUR >> Equity:Opening balance >> >> If you later find time to important bank transactions from 2019-2022, >> you can always do that. >> >> -- >> Martin Michlmayr >> https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/c520dca9-6e90-4618-8457-edbb28099284n%40googlegroups.com.
Re: Continuing ledger after a large gap
100% this, Martin! It's always better to pick up the present and fill in the past than it is to languish and lament on the past to spite the present and future. This probably applies to a lot of things in life, but definitely to accounting and definitely to PTA. For the past things, automate as much as you can to get coarse imports of data in that time range, then you can revise with more exact information, payees, etc. for data preservation. On Sunday, March 13, 2022 at 10:52:52 PM UTC-4 Martin Michlmayr wrote: > * melb...@gmail.com [2022-03-13 19:35]: > > Hello I have about 7 years worth of data in a ledger file till > > ~2019. Due to some life events I had to stop updating it and now I > > would like to pick it back up. > > > > I would really like add to the same file. Is there a good approach > > to do this? > > I'd post adjustment entries to bring your balances in sync with what > your bank says. > > If your ledger from 2019 says you have 400 EUR in the bank, but the > bank balance is 1000 EUR right now, you could add this entry: > > 2022-03-14 * Adjust bank balance > Assets:Bank 600.00 EUR = 1000 EUR > Equity:Opening balance > > In fact, ledger supports setting a certain balance like this: > > 2022-03-14 * Adjust > Assets:Bank = 1000 EUR > Equity:Opening balance > > If you later find time to important bank transactions from 2019-2022, > you can always do that. > > -- > Martin Michlmayr > https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/d9bea067-9920-482e-973f-976a1c781c97n%40googlegroups.com.
Re: Continuing ledger after a large gap
* melb...@gmail.com [2022-03-13 19:35]: > Hello I have about 7 years worth of data in a ledger file till > ~2019. Due to some life events I had to stop updating it and now I > would like to pick it back up. > > I would really like add to the same file. Is there a good approach > to do this? I'd post adjustment entries to bring your balances in sync with what your bank says. If your ledger from 2019 says you have 400 EUR in the bank, but the bank balance is 1000 EUR right now, you could add this entry: 2022-03-14 * Adjust bank balance Assets:Bank 600.00 EUR = 1000 EUR Equity:Opening balance In fact, ledger supports setting a certain balance like this: 2022-03-14 * Adjust Assets:Bank = 1000 EUR Equity:Opening balance If you later find time to important bank transactions from 2019-2022, you can always do that. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Yi6t/YPnOO1MoivE%40jirafa.cyrius.com.
Continuing ledger after a large gap
Hello I have about 7 years worth of data in a ledger file till ~2019. Due to some life events I had to stop updating it and now I would like to pick it back up. I would really like add to the same file. Is there a good approach to do this? -- --- 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/025f6dc3-4348-4ef3-9786-99857e4348b7n%40googlegroups.com.
Re: ledger-accounts-file?
stan laurel writes: > A minor point, but it annoys me when I can't figure something out. > In ledger-mode customization one of the first items is > ledger-accounts-file: The path to an optional file in which all accounts > are used or declared. > When I first look at this the entered value is 'nil' (mismatch). > I edit to read ~/Accounts.ledger which is where all my accounts are listed > and it still comes back 'mismatch'. > What value is suppooses to go into this field? > Thanks you In a scratch buffer: (let ((ledger-accounts-file "/home/user/accounts.ledger")) (ledger-accounts-list)) Works for me for both "/home/user/accounts.ledger" and "~/accounts.ledger". When nil, it would use current buffer as a source. -- Mykola Libre/Free Java Software Developer https://manandbytes.gitlab.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/87v8xasyww.fsf%40think.
Re: get a number/amount only from `ledger balance ...`
You can say "%(clear_commodity(amount))" On Sunday, February 6, 2022 at 4:29:24 PM UTC-8 Martin Michlmayr wrote: > * Sim Tov [2022-02-06 12:43]: > > I would like to use the output of `ledger balance ...` in a bash script. > I > > want to get a number/amount only, without all the strings around it... > is > > there a command line option to get amount only (even without > > commodity/currency sign)? > > This gets you the amount (with the commodity): > > ledger bal assets:cash --balance-format "%(amount)" > > I'm not sure if you can get just the number, but you can just run this > command through sed or perl to remove the commodity. > > -- > Martin Michlmayr > https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/0a0ae737-d2ce-45d5-9bfe-d549f80098f4n%40googlegroups.com.
Re: How to import "ledger" module in Python
Hi! Yes, I am using python3. Still the same error. Ledger 3.2.1-20200518 Python 3.9.7 python-ledger:amd64/buster 3.1.2+dfsg1-1 uptodate ➜ src git:(master) ✗ python3 test.py Traceback (most recent call last): File "test.py", line 1, in import ledger ModuleNotFoundError: No module named 'ledger' But then, I just replaced "python3" to "python" (Python 2.7.18) and it worked fine now. Thank you. Now, where can I find more info about how to use this module? I didn't find any relevant or complete documentation. The official doc is very poor about that. Where can I find something more useful? Or even the source code of this module, if there is no relevant doc available? On Sat, Dec 4, 2021 at 10:56 AM David Bremner wrote: > Felipe Micaroni Lalli writes: > > > Thank you so much. First, I had to upgrade from Debian 10 to Debian 11 to > > be able to install this package. After a lot of pain in the distro > upgrade, > > I was able to install the package. But I still get the error: > > > >> > >> import ledger > >> ModuleNotFoundError: No module named 'ledger' > >> > > > > What am I missing? > > Are you running the script with python3? > > d > -- --- 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/CAHvMVPQ6v-Fmd4Zfp8KPEi%2BNT5VU9nat9-ymifwVi_7GPsBrdA%40mail.gmail.com.
Re: get a number/amount only from `ledger balance ...`
* Sim Tov [2022-02-06 12:43]: > I would like to use the output of `ledger balance ...` in a bash script. I > want to get a number/amount only, without all the strings around it... is > there a command line option to get amount only (even without > commodity/currency sign)? This gets you the amount (with the commodity): ledger bal assets:cash --balance-format "%(amount)" I'm not sure if you can get just the number, but you can just run this command through sed or perl to remove the commodity. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/YgBn3YhG1C3IrRH/%40jirafa.cyrius.com.
get a number/amount only from `ledger balance ...`
Hello, I would like to use the output of `ledger balance ...` in a bash script. I want to get a number/amount only, without all the strings around it... is there a command line option to get amount only (even without commodity/currency sign)? Thank you! -- --- 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/4d73154c-a7e7-4cfa-a0d1-2810fb602eden%40googlegroups.com.
Management summaries (balance, income, cashflow, retained) for filing from ledger-cli
*TLDR * What is everyone using to get management summaries/filings ie. balance sheet, income statement, cashflow, and retained earnings statements for handing over to legal filers or such? *Longer Tale* I've been using ledger for some time now between personal, portfolio, and a small business usually using reckon and emacs plugins. It's been great actually. https://daryl.wakatara.com/tracking-your-finances-with-reckon-and-ledger/ I'm in the position now of having to give management summaries on the small business (balance, sheet, income statement, cashflow, retained earnings statement) to allow my lawyers to file for the business. Wondering what people are/have been using to get the formal statements that are required for legal filings. I mean, I just really need nicely formatted reports for the lawyers but am curious as to what people have used effectively. I am aware of ledger-pyreports but have had some trouble getting it to not throw errors (just pinged author), but was also curious about how people have been managing their accountancy (vs. say, bookkeeping) for more strict requirements. I imagine a pdf straight output or output in a form I can easily throw into GDocs or such to output a pdf is probably ideal. Also, was really hard to find anything googling, so would love to know what code or other blog posts I should be reading on this. thanks! Daryl. -- --- 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/f6c7a8ad-f24e-4132-b182-91815bd38f0en%40googlegroups.com.
Re: include directives in ledger 3.2.1 and ledger-reconcile
Hi Colin and all, Colin Dean writes: > I'm using ledger 3.2.1-7build2 from ubuntu impish in the particular records > I'm looking at right now. My includes are using "!include" are relative Thanks, that's good to know. To be clear, ledger itself still seems to read the included files (with relative paths) just fine when I run it from the command line. I only see the error when it is run via ledger-mode in emacs. But I do not see the problem with ledger 3.1.2, so I suspect something changed in ledger between 3.1.2 and 3.2.1 (or between the Debian build and the Guix build) that ledger-mode was implicitly relying on. I am suspicious of the fact that ".path()" was dropped in the last part of the diff here: https://github.com/emin63/ledger/commit/9c1a7b1b1dbad11196571b1114ddaf23ae5345ff I don't know exactly what .path() does, but could that have something to do with this issue? It would be great if someone familiar with the source code could chime in on this. Thanks in advance! -- Best, Richard -- --- 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/87sfu6lys5.fsf%40aquinas.i-did-not-set--mail-host-address--so-tickle-me.
Re: include directives in ledger 3.2.1 and ledger-reconcile
I'm using ledger 3.2.1-7build2 from ubuntu impish in the particular records I'm looking at right now. My includes are using "!include" are relative but my setup is different. I invoke ledger on a file that contains the commodity decls and then includes the activity file (and a file with opening balances in previous years, but for 2019+ I did everything in one file). On Saturday, January 1, 2022 at 11:08:48 AM UTC-5 wyl...@gmail.com wrote: > Hi everyone, > > I recently switched from ledger 3.1.22-20190205 (in Debian oldstable) to > 3.2.1-20200518 (in GNU Guix) and I'm encountering the following issue. > At the top of my ledger file are two include directives: > > include strict.db > include prices.db > > The two included files are in the same directory as the ledger file. > But after upgrading, when I try to reconcile an account using > ledger-reconcile in Emacs' ledger-mode, I get the following errors: > > While parsing file "", line 1: > Error: File to include was not found: "strict.db" > While parsing file "", line 2: > Error: File to include was not found: "prices.db" > > I'm not sure exactly what the cause of this is, but I did confirm that > the issue does not occur if I switch back to ledger 3.1.2. > It also goes away if I enter full absolute paths for the files, but not > relative paths like "./prices.db". > > I also found this issue about include directives: > > https://github.com/ledger/ledger/issues/1659 > > which resulted in this change: > > > https://github.com/emin63/ledger/commit/9c1a7b1b1dbad11196571b1114ddaf23ae5345ff > > Could this be related to the problem? Is it now required to specify > absolute paths in include directives? > > Many thanks for your insights? > > -- > Best, > Richard > -- --- 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/e56e25c8-9a84-44d4-b49b-2cddd8371e3en%40googlegroups.com.
include directives in ledger 3.2.1 and ledger-reconcile
Hi everyone, I recently switched from ledger 3.1.22-20190205 (in Debian oldstable) to 3.2.1-20200518 (in GNU Guix) and I'm encountering the following issue. At the top of my ledger file are two include directives: include strict.db include prices.db The two included files are in the same directory as the ledger file. But after upgrading, when I try to reconcile an account using ledger-reconcile in Emacs' ledger-mode, I get the following errors: While parsing file "", line 1: Error: File to include was not found: "strict.db" While parsing file "", line 2: Error: File to include was not found: "prices.db" I'm not sure exactly what the cause of this is, but I did confirm that the issue does not occur if I switch back to ledger 3.1.2. It also goes away if I enter full absolute paths for the files, but not relative paths like "./prices.db". I also found this issue about include directives: https://github.com/ledger/ledger/issues/1659 which resulted in this change: https://github.com/emin63/ledger/commit/9c1a7b1b1dbad11196571b1114ddaf23ae5345ff Could this be related to the problem? Is it now required to specify absolute paths in include directives? Many thanks for your insights? -- Best, Richard -- --- 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/877dbjxwtz.fsf%40aquinas.i-did-not-set--mail-host-address--so-tickle-me.
Re: How to import "ledger" module in Python
Felipe Micaroni Lalli writes: > Thank you so much. First, I had to upgrade from Debian 10 to Debian 11 to > be able to install this package. After a lot of pain in the distro upgrade, > I was able to install the package. But I still get the error: > >> >> import ledger >> ModuleNotFoundError: No module named 'ledger' >> > > What am I missing? Are you running the script with python3? d -- --- 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/871r2stqwj.fsf%40tethera.net.
Re: How to import "ledger" module in Python
Martin Michlmayr writes: > * Felipe Micaroni Lalli [2021-12-02 12:54]: >> I'm trying to execute this example described in ledger doc: >> >> import ledger > > AFAIK you have to run it is "ledger python SCRIPT". > For me it works with "python3 script.py" When I say works, it complains about the data file being missing, but the import certainly succeeds. d -- --- 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/8735napo1a.fsf%40tethera.net.
Re: How to import "ledger" module in Python
* Felipe Micaroni Lalli [2021-12-02 12:54]: > I'm trying to execute this example described in ledger doc: > > import ledger AFAIK you have to run it is "ledger python SCRIPT". -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/YalUze2JO4Pa0M%2Bh%40jirafa.cyrius.com.
Re: How to import "ledger" module in Python
Felipe Micaroni Lalli writes: > Hello guys! > > I'm trying to execute this example described in ledger doc: > > import ledger > > if __name__ == '__main__': > for xact in ledger.read_journal("sample.dat").xacts(): > for post in xact.posts(): > print("Transferring %s to/from %s" % (post.amount, > post.account)) > > But the script didn't find the module "ledger". I tried to install in > Ubuntu the package "python-ledger" but it still didn't work. Any ideas how > to find the module? I tried to find it in the PyPi repository but with no > luck. Even in pip3 I couldn't find it. I didn't find anything relevant in > the Ledger repo as well, only a demo in the "python" directory. You may want to try the ubuntu package python3-ledger, since hopefully you are using python3. Otherwise please let us know the versions of ledger, python, and python-ledger. python-ledger is gone from current debian, so I cannot test, but your script runs ok with python3-ledger 3.2.1-7+b2 on Debian. -- --- 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/878rx3ouny.fsf%40tethera.net.
How to import "ledger" module in Python
Hello guys! I'm trying to execute this example described in ledger doc: import ledger if __name__ == '__main__': for xact in ledger.read_journal("sample.dat").xacts(): for post in xact.posts(): print("Transferring %s to/from %s" % (post.amount, post.account)) But the script didn't find the module "ledger". I tried to install in Ubuntu the package "python-ledger" but it still didn't work. Any ideas how to find the module? I tried to find it in the PyPi repository but with no luck. Even in pip3 I couldn't find it. I didn't find anything relevant in the Ledger repo as well, only a demo in the "python" directory. Thank you. -- --- 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/CAHvMVPS7nrqROnZwVDwD%3D-pjvnR%2BSncgD8%2Bbxe849%3DdnV20hBg%40mail.gmail.com.
Re: ledger-accounts-file?
Tried that - no good. As I said, it's a minor point and everything seems to work as it should. I just find it very frustrating that I can't figure out what I'm doing wrong. On Thursday, October 28, 2021 at 5:46:08 AM UTC-4 eric wrote: > On Wednesday, 27 Oct 2021 at 14:53, stan laurel wrote: > > I edit to read ~/Accounts.ledger which is where all my accounts are > listed > > and it still comes back 'mismatch'. > > Untested but maybe ledger requires the full path name, i.e. it may not > expand ~? > > -- > Eric S Fraga via Emacs 28.0.60 & org 9.5 on Debian 11.1 > > -- --- 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/53b376de-8d88-43c7-89c6-ec5c53a2f0b7n%40googlegroups.com.
Re: ledger-accounts-file?
On Wednesday, 27 Oct 2021 at 14:53, stan laurel wrote: > I edit to read ~/Accounts.ledger which is where all my accounts are listed > and it still comes back 'mismatch'. Untested but maybe ledger requires the full path name, i.e. it may not expand ~? -- Eric S Fraga via Emacs 28.0.60 & org 9.5 on Debian 11.1 -- --- 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/87mtmt1nza.fsf%40ucl.ac.uk.
ledger-accounts-file?
A minor point, but it annoys me when I can't figure something out. In ledger-mode customization one of the first items is ledger-accounts-file: The path to an optional file in which all accounts are used or declared. When I first look at this the entered value is 'nil' (mismatch). I edit to read ~/Accounts.ledger which is where all my accounts are listed and it still comes back 'mismatch'. What value is suppooses to go into this field? Thanks you -- --- 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/eb81760d-4bb9-44db-ae42-82588bb29e71n%40googlegroups.com.
Re: ledger-cli xml2html XLST
Yeah, i put in the demo.ledger from the ledger repo, you can see it here: https://chaotika.github.io/output-ledger.html#accounts I created is as a proof-of-concept and because i needed a quick overview of a ledger without having to type too much commands. It could use some CSS refinements and also the allignment and formating of the amount-cells could use some refinement, but it does the job for me quite well for now. mica...@gmail.com schrieb am Dienstag, 26. Oktober 2021 um 01:02:26 UTC+2: > Could we see an output example? > > On Sun, Oct 24, 2021 at 9:12 PM Markus Katharina Brechtel < > markus.katha...@thengo.net> wrote: > >> Hi! >> >> I created an ledger-cli xml2html XLST. >> >> This XLST produces a browsable html page out of the xml files created by >> ledger xml. >> >> It might be used in the future to create a ledger html output. >> >> It is not perfect currently, but it is good for my purposes and i might >> improve it in the future. I thought i would share it for others to be able >> to find it too. >> >> Here is my merge request: https://github.com/ledger/ledger/pull/2068 >> >> tbm told me to mention it here to ask if you find it interesting. >> >> Kind regards >> >> -- >> >> --- >> 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+...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ledger-cli/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ledger-cli/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- --- 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/d7682cd4-37d3-4222-a306-c8535828d8adn%40googlegroups.com.
Re: ledger-cli xml2html XLST
Could we see an output example? On Sun, Oct 24, 2021 at 9:12 PM Markus Katharina Brechtel < markus.katharina.brech...@thengo.net> wrote: > Hi! > > I created an ledger-cli xml2html XLST. > > This XLST produces a browsable html page out of the xml files created by > ledger xml. > > It might be used in the future to create a ledger html output. > > It is not perfect currently, but it is good for my purposes and i might > improve it in the future. I thought i would share it for others to be able > to find it too. > > Here is my merge request: https://github.com/ledger/ledger/pull/2068 > > tbm told me to mention it here to ask if you find it interesting. > > Kind regards > > -- > > --- > 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/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com > <https://groups.google.com/d/msgid/ledger-cli/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com?utm_medium=email_source=footer> > . > -- --- 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/CAHvMVPRUYdJ3QG6NDgKQDpGXQa6%2BbRhdZQiN4D8UtPtxbyeYYw%40mail.gmail.com.
Re: ledger-cli xml2html XLST
I find it very interesting!!! On Monday, October 25, 2021 at 12:12:13 a.m. UTC markus.katha...@thengo.net wrote: > Hi! > > I created an ledger-cli xml2html XLST. > > This XLST produces a browsable html page out of the xml files created by > ledger xml. > > It might be used in the future to create a ledger html output. > > It is not perfect currently, but it is good for my purposes and i might > improve it in the future. I thought i would share it for others to be able > to find it too. > > Here is my merge request: https://github.com/ledger/ledger/pull/2068 > > tbm told me to mention it here to ask if you find it interesting. > > Kind regards > -- --- 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/368dbf01-b75c-47d5-9534-4becd8739f6cn%40googlegroups.com.
ledger-cli xml2html XLST
Hi! I created an ledger-cli xml2html XLST. This XLST produces a browsable html page out of the xml files created by ledger xml. It might be used in the future to create a ledger html output. It is not perfect currently, but it is good for my purposes and i might improve it in the future. I thought i would share it for others to be able to find it too. Here is my merge request: https://github.com/ledger/ledger/pull/2068 tbm told me to mention it here to ask if you find it interesting. Kind regards -- --- 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/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com.
Re: ledger python module documentation
On Tue, Oct 5, 2021 at 6:55 PM lipp f wrote: > I have seen python/demo.py in the distribution but I am looking for > somethin more detaled. Like a standard python module documentation. > > Is it available anywhere? TIA. > > > Went looking at the code - - - - IANAP but I like the commenting! There would seem to be enough comments to make understanding what's going on fairly straightforward. What benefit does running this module give? Regards -- --- 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/CAPpdf58VDQkZi4TNSL12TrjQVg1LcXJttkx5rsUPw4Q1kJb%3DVg%40mail.gmail.com.
Re: ledger python module documentation
>>>>> "MM" == Martin Michlmayr writes: >> I have seen python/demo.py in the distribution but I am looking for >> somethin more detaled. Like a standard python module documentation. >> >> Is it available anywhere? TIA. MM> Unfortunately not. There's just the code, in the py*.cc modules, from which you can determine which types and methods are available. 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/m27derlyqw.fsf%40newartisans.com.
Re: ledger python module documentation
Actually the module itself has pretty good documentation. $ python >>> import ledger >>> help(ledger) ... and everithing is there. On Tuesday, October 5, 2021 at 7:55:13 PM UTC-4 lipp f wrote: > I have seen python/demo.py in the distribution but I am looking for > somethin more detaled. Like a standard python module documentation. > > Is it available anywhere? TIA. -- --- 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/c117d294-47c3-40b3-8a26-625a0368dfd9n%40googlegroups.com.
Re: ledger python module documentation
* lipp f [2021-10-05 16:55]: > I have seen python/demo.py in the distribution but I am looking for > somethin more detaled. Like a standard python module documentation. > > Is it available anywhere? TIA. Unfortunately not. -- Martin Michlmayr https://www.cyrius.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. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/YVzmURU3UHLhbrNW%40jirafa.cyrius.com.
ledger python module documentation
I have seen python/demo.py in the distribution but I am looking for somethin more detaled. Like a standard python module documentation. Is it available anywhere? TIA. -- --- 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/69a28586-c75c-4002-913d-1c8a4cf54d69n%40googlegroups.com.