Re: 1

2023-10-17 Thread Felipe Mica
2 On Tue, Oct 17, 2023 at 5:13 AM Spencer Antonia wrote: > 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

Re: Ledger giving unknown account/commodity warnings

2022-06-19 Thread Felipe Mica
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,

Re: Continuing ledger after a large gap

2022-03-29 Thread Felipe Mica
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

Re: How to import "ledger" module in Python

2022-02-08 Thread Felipe Mica
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 'le

Re: Scheduling transactions in ledger-mode

2021-09-23 Thread Felipe Mica
Thank you! It works. That was hard to find. The doc is really poor explained. But I didn't need to put the #+begin_src ledger / #+end_src part. It's optional. And my default file is ~/.ledger-schedule.ledger. On Thursday, March 13, 2014 at 8:29:15 AM UTC-3 alan.s...@polytechnique.org wrote:

Unexpected behavior with --end or --current

2021-09-22 Thread Felipe Mica
Hi! Here is my draft.ledger: 2021/09/17 * Opening Balance Assets:Checking R$ 1.000,00 Equity:Opening Balances 2021/09/23 Zezinho Expenses:Aleatório R$ 50,00 Assets:Checking 2020/09/25 Zezinho Expenses:Aleatório R

Re: Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-17 Thread Felipe Mica
This works for a while: C 1. BTC = 100,000,000 SAT C 1.00 bit = 100 SAT C 1. BTC = 1,000,000.00 bit But then the ledger-cli made a mess of commodity conversions. Even if I use the option --exchange BRL if I put this equivalence lines the ledger-cli just ignores the conversion pr

Rounding in Ledger-CLI

2021-09-13 Thread Felipe Mica
Hi again! I have this commodity: commodity R$ note Reais Brasileiros format R$ 1.000,00 nomarket alias BRL default I declare some expenses like Service A, B, C etc. in dollars. Why when I use the option --price to convert to Reais (BRL / R$) the values aren't rounded as two decimal p

Re: How to force overwrite the options in the .ledgerc init file

2021-09-13 Thread Felipe Mica
September 13, 2021 at 12:55:40 PM UTC-3 Rahix wrote: > On Mon, 2021-09-13 at 08:52 -0700, Felipe Mica wrote: > > Why > > > > ledger bal --depth 4 --depth 1 > > > > Makes 1 overwrite 4, but: > > > > ledger bal --depth 4 --depth 6 > > >

Re: Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-13 Thread Felipe Mica
Thank you guys. I could manage that with this: commodity BTC note Bitcoin format 1,000. BTC commodity bit format 1,000.00 bit commodity SAT note Satoshis format 1,000 SAT C 1. BTC = 100,000,000 SAT C 1.00 bit = 100 SAT C 1. BTC = 1,000,000.00 bit On Sunday, S

Re: How to force overwrite the options in the .ledgerc init file

2021-09-13 Thread Felipe Mica
2021-09-11 at 18:12 -0700, Felipe Mica wrote: > > I put this in my .ledgerc file: > > --depth 4 > > > > Now, if I do: > > > > ledger --depth 1 balance > > > > the ledger overwrites the option in the init file and shows only 1 > depth. That&

How to force overwrite the options in the .ledgerc init file

2021-09-11 Thread Felipe Mica
I put this in my .ledgerc file: --depth 4 Now, if I do: ledger --depth 1 balance the ledger overwrites the option in the init file and shows only 1 depth. That's the expected behavior. However, if put some depth *bigger* than the defined 4 in the file, I would get only 4 levels. The option def

Re: Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-11 Thread Felipe Mica
When working with cryptocurrencies, something like that: 203,320,244,020,398,298 DOGE can be very common. It would be useful an option like --shorten-huge-numbers and change this to: 203,320.24T DOGE Or maybe the solution could be create another commodity and use the C directive as you said in

Possible bug with payee aliases or am I missing something?

2021-09-11 Thread Felipe Mica
In the example bellow, if I use the options --strict --check-payees it results in the following warnings: line 15: Unknown payee 'BBB' line 23: Unknown payee 'DDD' line 31: Unknown payee 'FFF' Why aren't the aliases working in this case? payee AAA alias BBB payee CCC alias DDD payee EE

Conversible commodities, how to deal with that?

2021-09-11 Thread Felipe Mica
Hello! What is the best way (approach) to deal with different commodities that are convertible between them? Let's suppose I want to work with different units of the same commodity. Example: BTC and SAT (Satoshis). 1 BTC is = 100,000,000 SAT - Is there a way to tell to Ledger-CLI that these cu

Cannot use expressions inside braces. Possible bug or am I missing something?

2021-09-11 Thread Felipe Mica
2021-09-06 Test Assets:Checking Expenses:Food:Groceries 1 BTC @ (R$ 280,000.00 * 2) Expressions using @ works. But inside { } does not. Why? 2021-09-06 Test Assets:Checking Expenses:Food:Groceries 1 BTC {(R$ 280,000.00 * 2)} While parsing file "dr

Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-11 Thread Felipe Mica
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.goog