Re: How to use account_base

2024-07-05 Thread Martin Michlmayr
Ah, well that shows how unfortunate a syntactic choice it was. It’s easily > changed to $( instead of %(. Would it make sense to support both? -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To

Re: Limit to securities in specific currency

2024-03-16 Thread Martin Michlmayr
y == 'EUR'" Note that quoted commodities need to be quoted properly: -l "commodity == '\"GB00BPN5P782\"'" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe fro

Re: What could be the reason for this warning?

2024-02-03 Thread Martin Michlmayr
* lipp f [2024-02-02 06:57]: > Getting many warnings like this: > > Warning: "/mnt/e/Data/Invest/data//ldg-t14/t14.j", line 27591: Transaction > check failed: (commodity == "TDB164") The check needs to be: commodity == '"TDB164"' -- Martin Michlm

Re: Total posting costs and precision issues?

2023-12-11 Thread Martin Michlmayr
certainly a very creative solution! -- 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

Re: Make "reg" output the account balance

2023-11-22 Thread Martin Michlmayr
How about: ledger reg --daily It doesn't quite do what you want but I think it's the best there is for now. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from

Re: Total posting costs and precision issues?

2023-11-21 Thread Martin Michlmayr
e:Capital Gains -$40.29 Assets:401K $774.72 I don't know if there's a better one. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscr

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Martin Michlmayr
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

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Martin Michlmayr
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

Re: rules about account names with spaces

2023-10-16 Thread Martin Michlmayr
numeric characters, the commodity name must be enclosed in double quotes ‘"’:" > commodity name as well, which I don't think is correct. Yes, the quotes become part of the name of a quoted commodity. That's in fact correct, even if a bit unintuitive. I opened a bug about this years ago: http

Re: Liability Account

2023-08-29 Thread Martin Michlmayr
:Stuff is a really bad account name; for example Expenses:Electronics might be good if you buy a computer). -- 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 an

Re: Search/filter for payee or description

2023-08-27 Thread Martin Michlmayr
* 'Grzegorz Lippe' via Ledger [2023-08-27 02:44]: > How can I search or limit the output of a balance or register command to a > specific payee? -l "payee =~ /foo/" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscrib

Re: Need some help on lot date and lot price

2023-07-05 Thread Martin Michlmayr
" again and make sure nothing is red. If something is red, it means you removed a lot that doesn't exist. This can be because you forgot to write the date (as in the example above). -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed t

Re: gains for last 7 days?

2023-06-23 Thread Martin Michlmayr
n can be used for this. However, what should be possible is to value your holding on day 1 and then on day 2 and calculate the difference (manually). e.g. ledger -p "until 2023-01-01" --price-db pricedb/funds.pricedb -V --now 2022-12-31 I think you need both -p and --now -- Martin

Re: Querying transactions based on multiple accounts (from accountA to accountB)

2023-06-12 Thread Martin Michlmayr
* Ankur Sinha [2023-06-12 22:04]: > I'm looking for a way to list/filter transactions based on multiple > accounts. For example, I'd like to see transactions where money moved > from Account A to Account B (or vice versa). ledger bal Assets:A -l "any(account =~ /Assets:B/)" -

Re: Default Currency for an Account

2023-06-04 Thread Martin Michlmayr
* Inder Sen [2023-06-01 03:50]: > If not, is there a way to avoid entering currency symbol for every > transaction entry? No. I'd argue this is a task that your import process should handle. How do you get your data into ledger? -- Martin Michlmayr https://www.cyrius.com/ -- --

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-06-04 Thread Martin Michlmayr
> 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

Re: How do I check for tags without value?

2023-05-26 Thread Martin Michlmayr
e a way to check if a tag has no value? This works for me: -l 'has_tag("foo")' -l 'tag("foo") !~ /./' -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe

[ANNOUNCE] ledger 3.3.2

2023-03-30 Thread Martin Michlmayr
) 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

Re: divide by zero processing transaction

2023-03-04 Thread Martin Michlmayr
f precision. Am I misunderstanding "format?" -- 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, s

[ANNOUNCE] ledger 3.3.1

2023-03-03 Thread Martin Michlmayr
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 unsubs

Re: Register filter for a specific currency

2023-02-20 Thread Martin Michlmayr
on't know how. -- 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 v

Re: Unexpected balance verification

2023-02-18 Thread Martin Michlmayr
eems the "Assets:Cash" posting is treated as not having an amount. BTW, if I rename "Assets:Cash" to another account it works fine. So the problem is 2 balance assignments to the same account after each other. There are some open bug reports but I'm not sure this is co

Re: [ANNOUNCE] ledger 3.3.0

2023-02-08 Thread Martin Michlmayr
* 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

[ANNOUNCE] ledger 3.3.0

2023-02-07 Thread Martin Michlmayr
ses 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 unsub

Re: Stats Report Failure

2023-02-03 Thread Martin Michlmayr
* Jasel17212 [2023-01-30 15:49]: > John / Martin - I've noticed that running the stats report fails when I > have an automatic transaction configured. Do you have a test case you can add to https://github.com/ledger/ledger/issues/2079 -- Martin Michlmayr https://www.cyri

Re: Stats Report Failure

2023-01-30 Thread Martin Michlmayr
* Jasel17212 [2023-01-30 15:49]: > Is this a bug? Other than commenting out the automatic transaction, is > there a workaround? That looks like: https://github.com/ledger/ledger/issues/2079 I'm not aware of a workaround. -- Martin Michlmayr https://www.cyrius.com/ -- --- You re

Re: Unused Accounts

2023-01-26 Thread Martin Michlmayr
* Martin Michlmayr [2023-01-27 10:14]: > The only way I can think of is: grep "^account" d | sed -e "s/^account *//" | sort | uniq > 1 ledger -f d bal --empty --flat -F "%a\n" | sort | uniq > 2 comm -3 1 2 rm -f 1 2 -- Martin Michlmayr https://

Re: Unused Accounts

2023-01-26 Thread Martin Michlmayr
ot;ledger bal --empty" to find all accounts that have been used the difference is unused accounts; they will not show up, even with --empty -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" g

Re: Assertion failure in unistring

2023-01-25 Thread Martin Michlmayr
-F '%12(total)' It fails for me with ledger from Git: Error: Assertion failed in "ledger/src/unistring.h", line 72:ledger::unistring::unistring(const string&): len < 1024 -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed t

Re: Assertion failure in unistring

2023-01-24 Thread Martin Michlmayr
rd it as one big lot? The transaction looks ok to me, but ledger has had some problems with long transactions; I guess you hit one such problem. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" grou

Planning new ledger release

2023-01-19 Thread Martin Michlmayr
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 fro

ledger2beancount 2.7: ledger-to-beancount converter

2022-12-03 Thread Martin Michlmayr
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

Re: squash weekly totals across sub-accounts?

2022-11-09 Thread Martin Michlmayr
w others) For "bal", adding "--display 'l <= 2'" will do what you want For reg, I think --depth 2 in Git will do what you want thanks to https://github.com/ledger/ledger/pull/1901 -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you

Re: Currency synonyms

2022-11-05 Thread Martin Michlmayr
a statement using > either. I'd like ledger to consider these two as one and the same. C 1 MZN = 1 MT https://www.ledger-cli.org/3.0/doc/ledger3.html#Commodity-equivalences -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google

Function to regex match accounts in a transaction?

2022-10-29 Thread Martin Michlmayr
ich broker account you received dividends, e.g.: bal Income:Dividends --group-by get_account("^Assets:Broker") Inspired by this question: https://www.reddit.com/r/plaintextaccounting/comments/yedxd8/grouping_balances_by_target_account/ -- Martin Michlmayr https://www.cyrius

Re: Question about "4.5.2 Buying and Selling Stock"

2022-09-02 Thread Martin Michlmayr
30) * 50) > that is used to balance the "Income:Capital Gains" posting? I don't think that's correct. Like I showed, Assets:Broker is just $1500 (the book value). At least this is how I understand it. Maybe I'm wrong, but my explanation appears to make sense. ;) -- Martin Michl

Re: Question about "4.5.2 Buying and Selling Stock"

2022-08-31 Thread Martin Michlmayr
00 (capital gain) Total 1500 So it's easy to get these sales wrong. Maybe ledger should post the capital gains to some account automatically so reduce errors but the problem is that there might not be a single capital gains account, so you'd need special syntax to specify where the

Re: Listing only specific currency transactions in the same account

2022-07-05 Thread Martin Michlmayr
ansactions and balance in all currencies. > How can i list only one currency transactions and one balance? You can add: --limit "commodity == 'EUR'" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups

Re: Are you using bracketed dates in comments ?

2022-05-23 Thread Martin Michlmayr
* Alan [2022-05-23 18:32]: > Referring to the "Bountiful Blessings" example in the Effective Dates manual > , if you > say `ledger --effective register Groceries` you get the proper effective > dates. If you instead say `ledger

Re: Are you using bracketed dates in comments ?

2022-05-23 Thread Martin Michlmayr
.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/63559a15-c59e-4792-a3bf-6ee48afca9bfn%40googlegroups.com. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Le

Re: Setting precision for $

2022-05-22 Thread Martin Michlmayr
alue with > three digits of precision No, it doesn't. Price info (@ $...) is not used for precision. I don't get 3 digits with your example. If you really get 3 digits, it's because of another reason. Maybe you specified 3 digits in another transaction. -- Martin Michlmayr https://www.cyrius.c

Re: Calculate tax owed up to income limit or additional tax after income limit

2022-04-19 Thread Martin Michlmayr
* Gulshan Singh [2022-04-18 21:57]: > I can't find anything related to the `account()` function in the > docs, is it not documented or am I just missing it? It would be great if someone could add it to the documentation. https://github.com/ledger/ledger/issues/2099 -- Martin Michlmayr

Re: Calculate tax owed up to income limit or additional tax after income limit

2022-04-18 Thread Martin Michlmayr
oli -150,000 USD Assets:Bank 2022-04-01 * Payroll Income:Hooli -150,000 USD Assets:Bank 2022-04-01 * Payroll Income:Hooli -150,000 USD Assets:Bank -- Martin Michlmayr https://www.cyrius

Re: Check balance of account and all its children

2022-04-14 Thread Martin Michlmayr
to make it work. Any insights from you would be welcome. My first theory was that the problem is that the "Budget" account on its own was never used, but adding a $1 transaction to that account didn't help. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this mes

Re: Unknown metadata tag

2022-03-14 Thread Martin Michlmayr
the test file: > > account Cash > account Expenses You miss the tag declaration here: tag MyTag -- 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 a

Re: Continuing ledger after a large gap

2022-03-13 Thread Martin Michlmayr
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 vie

Re: get a number/amount only from `ledger balance ...`

2022-02-06 Thread Martin Michlmayr
his 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 receive

Re: Possible bug in --market interaction with --end

2022-01-13 Thread Martin Michlmayr
inclusive, i.e. --end stops one day before --end; --now is on the date of --now) I use this command for value my investments at the end of the year: -p "until 2021-01-01" --now 2020-12-31 bal --price-db pricedb/funds.pricedb -V -- Martin Michlmayr https://www.cyrius.com/ -- ---

Re: Transaction balances as unbalanced virtual but doesn't when real

2022-01-04 Thread Martin Michlmayr
hink that makes sense but it's not how ledger works. I think it's this one: https://github.com/ledger/ledger/issues/630 -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe fro

Re: Transaction balances as unbalanced virtual but doesn't when real

2022-01-03 Thread Martin Michlmayr
:$account (market(-amount)) Equity:USD (market(amount)) You can run this command to see the difference: ledger -f d bal --lots equity -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups

Re: [Entries that are expressions]

2021-12-31 Thread Martin Michlmayr
* John Wiegley [2021-12-30 23:25]: > UB> Does not work! > > I'm not entirely sure why, but Ledger doesn't like the absence of spaces > around the '-' sign. This does work: > > ((110 - 60)*0.5) This got fixed recently https://github.com/ledger/ledger/issues/2001 -- M

Re: [Entries that are expressions] (was: The fair Christmas problem: splitting expenses automatically)

2021-12-29 Thread Martin Michlmayr
* Uwe Brauer [2021-12-29 19:58]: > expenses:User2:User1-Compensation 25.00/2 > > The entry 25.00/2 is not interpreted. You have to this use syntax: 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation (25.00/2) expenses:User1:User1-Compensation -- Martin

Re: Using hyphens in commodity names

2021-12-27 Thread Martin Michlmayr
re are any set of valid characters for > commodity names. Currently, using underscore (_) instead of hyphen > (-) seems to be a quick fix. https://www.ledger-cli.org/3.0/doc/ledger3.html#Commoditized-Amounts -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because

Re: How to only display subtotals

2021-12-21 Thread Martin Michlmayr
* Marcin Borkowski [2021-12-22 05:41]: > What do I tell the `bal` report to display both `Expenses:Life:Food` > and `Expenses:Life:Phone`, but only the subtotal for > `Expenses:Hobbies` (without separating `Books` and `Music`)? I don't think you can do this in a single query. -

Re: Chart of Accounts standards and consistency

2021-12-11 Thread Martin Michlmayr
cash:php` is easier than `reg ets:cas -l "commodity == 'PHP'"` * Balance assertions might be easier if there's only one commodity in the account (?) -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups

Re: Understanding primary commodities

2021-12-10 Thread Martin Michlmayr
s:Paypal-80.00 GBP -80.00 GBP -- 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+unsub

Re: Understanding primary commodities

2021-12-08 Thread Martin Michlmayr
for years, but I'm being told it's a good way to handle transactions with multiple currencies. (If anyone uses this and wants to comment, I'd appreciate it.) -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "L

Re: Transaction does not balance

2021-12-08 Thread Martin Michlmayr
re difficult to reconcile with my bank > statement. Using @ or @@ prevents ledger from displaying the > individual item totals in the balance report (they have all been > converted). Maybe you could give an example, so it's clearer. -- Martin Michlmayr https://www.cyrius.com/ -- --- You rec

Re: Transaction does not balance

2021-12-07 Thread Martin Michlmayr
pal -20.00 USD Assets:Bank1 10.00 GBP @ 1.5 EUR Assets:Bank2-15.00 EUR 2021/05/31 * Currency Exchange Assets:Paypal15.00 EUR @@ 20.00 USD Assets:Paypal -20.00 USD Assets:Bank1 10.00 GBP @@ 15.00 EUR Assets:Bank2-15.00 EUR -- Martin Mic

Re: Transaction does not balance

2021-12-07 Thread Martin Michlmayr
obvious to a human what you want in this case, but you'll have to tell ledger explicitly. As mentioned above, *explicit* is good anyway as it helps you avoid mistakes. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Googl

Re: How to import "ledger" module in Python

2021-12-02 Thread Martin Michlmayr
* 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

Re: inconsistent behaviour in equity command

2021-11-05 Thread Martin Michlmayr
> not for TDB902 and TDB952. Why is that? Because actual usage (i.e. input data) trumps the declaration with "D". Use this example: D 1000.00 AUD 2021-02-02 * Foo A 1,000.00 AUD B You'll get the comma as the thousand separator. -- Martin Michlma

Re: inconsistent behaviour in equity command

2021-11-05 Thread Martin Michlmayr
commodity". A small Perl script should do the trick. -- 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 ema

Re: inconsistent behaviour in equity command

2021-11-04 Thread Martin Michlmayr
* lipp f [2021-11-04 13:21]: > Some rows are account, commodity, amount and others are account, > amount, commodity. Any options to fix this? And your input file doesn't use a similarly inconsistent style, or does it match your input file? -- Martin Michlmayr https://www.cyri

Re: Formatting commodity output with the format commodity directive

2021-10-31 Thread Martin Michlmayr
* Jasel17212 [2021-10-31 16:22]: > There may very well be a cleaner way to do this, but this approach > does seem to effectively work around my initial problem. If you have > thoughts on a better way to do this, feel free to share your ideas. Add this to your file: D 1,000.00 AUD -

Re: Your ingest workflow?

2021-10-19 Thread Martin Michlmayr
y equally to ledger and beancount but others (creating entries) are quite different. -- 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,

Re: ledger python module documentation

2021-10-05 Thread Martin Michlmayr
* 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/ -- ---

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

2021-09-11 Thread Martin Michlmayr
Not that I'm aware of, but I'm not 100% sure. -- 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-cl

Re: Possible bug with payee aliases or am I missing something?

2021-09-11 Thread Martin Michlmayr
"Unknown payee" warnings are wrong. It's fixed already but we have to make a new release. https://github.com/ledger/ledger/commit/5560b0c40f3986704df25095fcc485bcc1de9e5b -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed t

Re: Conversible commodities, how to deal with that?

2021-09-11 Thread Martin Michlmayr
* Felipe Mica [2021-09-11 17:00]: > But maybe there is a better way to deal with that? Typically you'd use "C" for that. https://www.ledger-cli.org/3.0/doc/ledger3.html#index-C-1 C 100,000,000 SAT = 1 BTC -- Martin Michlmayr https://www.cyrius.com/ -- --- You received

Re: GitHub workflows for ledger CI - help required

2021-09-04 Thread Martin Michlmayr
but I can't figure out how to remove the Travis requirement for pull requests. Do you know how? -- 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 r

Re: range error compiler warnings on ARM, comparing char to -1

2021-08-23 Thread Martin Michlmayr
ogle.com/d/msgid/ledger-cli/3adce81c-454d-4279-a9e2-4851cd38ccd8n%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

Re: Plans for the next release

2021-08-04 Thread Martin Michlmayr
* Martin Michlmayr [2021-08-04 20:00]: > There's (at least) one issue I wanted to investigate, though. > Namely #1952 (which incidentally involves you!). It wasn't clear to > me whether the new behaviour was a regression, but it sounds like it's > an improvement. (In any case, the

Re: Plans for the next release

2021-08-04 Thread Martin Michlmayr
* Martin Michlmayr [2021-08-04 20:00]: > I use GitHub milestones to track outstanding blockers, although > at the moment none of these are real blockers (I mean, they kinda are, > but they've been there for a while so we can live with them): > https://github.com/ledger/ledger/milesto

Re: Plans for the next release

2021-08-04 Thread Martin Michlmayr
I'd volunteer to start writing it for the next release :) There's actually doc/NEWS.md. If you want to update and maybe work on #1952, I'd definitely appreciate it. I am not aware of any outstanding blockers. If anyone does, please speak up now. -- Martin Michlmayr https://www.cyrius.com/ -- --- You re

GitHub workflows for ledger CI - help required

2021-07-08 Thread Martin Michlmayr
Can someone submit a working GitHub workflows file for ledger CI to replace Travis. Bonus points for building on Linux, macOS and Windows. (I think testing only Python 3 support is enough. Travis currently tests Python 2 and 3) -- Martin Michlmayr https://www.cyrius.com/ -- --- You

Re: Wrong entry pointed out in "Too many commas in amount" error message

2021-06-15 Thread Martin Michlmayr
provided. It would have shown how it's processed. -- 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 ledg

Re: Wrong entry pointed out in "Too many commas in amount" error message

2021-06-04 Thread Martin Michlmayr
1 IDR assets:cash:dana -- 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

Re: Trying to understand ledger bal

2021-04-15 Thread Martin Michlmayr
:Credit_Card -$1,929.46 Equity:Opening Balance And account names and amounts need to be separated by either two spaces (or more) or a tab (or more). -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" grou

Re: Trying to understand ledger bal

2021-04-15 Thread Martin Michlmayr
ets:Checking$1,669.73 Liabilities:Credit_Card -$1,929.46 Equity:Opening Balance -- 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

ledger2beancount 2.6: ledger-to-beancount converter

2021-04-14 Thread Martin Michlmayr
and other input. Thanks to Dennis Lee for adding a Dockerfile and to Vinod Kurup for fixing a bug. Thanks to Stefano Zacchiroli for testing. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To u

Re: Getting philosophical: Expenses vs Assets

2021-03-30 Thread Martin Michlmayr
above definition. I think you're equating "economic benefit" with "income". You *do* get an economic benefit from a house -- you get a place to stay which would normally cost $$$ to rent. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message becaus

Re: prioritize pricedb over last purchase price?

2021-03-24 Thread Martin Michlmayr
rg/3.0/doc/ledger3.html#Virtual-posting-costs -- 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 led

Re: Monthly investment report

2021-03-04 Thread Martin Michlmayr
th ledger atm? I'm not sure, but is there a reason you can't call ledger several times, e.g. ledger bal -p "until 2021-02-01" ledger bal -p "until 2021-03-01" ledger bal -p "until 2021-04-01" ... -- Martin Michlmayr https://www.cyrius.com/ -- --- You received th

Re: Summable account balances

2021-02-22 Thread Martin Michlmayr
ithout subaccounts. -- 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.

Re: print a tag value

2021-02-09 Thread Martin Michlmayr
* acer [2021-02-09 18:50]: > How do I print the value of num in the report? When trying > > reg --format " %(num) \\n" reg --format " %(tag('num')) \\n" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed

Re: Arithmetic

2021-02-08 Thread Martin Michlmayr
If someone wants to submit a fix, that'd be great! -- 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

Re: Arithmetic

2021-02-07 Thread Martin Michlmayr
e file an issue at https://github.com/ledger/ledger/issues/ -- 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 emai

Re: Matching trades with complex tax rules

2021-02-07 Thread Martin Michlmayr
in red. Unfortunately, I'm not aware of any way to automate it in ledger and you'll have to specify the right lots manually. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe

Re: Did not get the correct result, bal -e

2021-02-03 Thread Martin Michlmayr
s end, but pricedb entries from later transactions are still evaluated and you need --now to value at that day rather than now. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscr

Planning new ledger release

2021-02-02 Thread Martin Michlmayr
I think it's time to make a new ledger release as there have been a number of fixes and features since 3.2.1. If anyone has outstanding patches or is aware of any show stoppers, please speak up now. -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you

Re: Comprehension Question price-db

2021-01-26 Thread Martin Michlmayr
* henry atts [2021-01-26 23:56]: > Later on with changed stock values set in the price-db file the > output of `ledger bal assets' balances only to zero with the -B or > -H option, otherwise there will always be a remainder. That's normal. Only -B is supposed to be zero. -- Martin

Re: price-db overwrites stock price set with @

2021-01-23 Thread Martin Michlmayr
-f d bal broker --empty 0 Assets:Brokerage $ ledger -f d bal broker --lots 30 XXX {€80.00} [2020-08-08] -30 XXX {€100.00} [2021-01-20] Assets:Brokerage -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups &

Re: Using the --strict option

2021-01-01 Thread Martin Michlmayr
t; alias ledger='ledger -i ~/.ledgerrc This is redundant since ledger looks for ~/.ledgerrc automatically. > and that '$' is an unknown commodity. You have to declare it with: commodity $ -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscr

Re: Filter transactions based on auxdate but display normal date

2020-12-30 Thread Martin Michlmayr
e) >= [2020-10-11]" -- 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...@google

Re: Filter for transactions/postings that are cleared OR pending

2020-12-29 Thread Martin Michlmayr
"not cleared and not pending" -- 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+unsub

Re: Filter transactions based on auxdate but display normal date

2020-12-29 Thread Martin Michlmayr
normal date in the report > output. Do you have any ideas what would be the best way to achieve > this? ledger -f d reg -l "aux_date >= [2020-10-02]" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups

Re: How could you calculate tax in your transaction?

2020-12-29 Thread Martin Michlmayr
* Yuri Khan [2020-12-30 02:26]: > Then maybe round first, negate second? > > = /^Pizza:/ > Pizza:Taxes (roundto(amount * 0.0775, 2)) > CreditCard (-roundto(amount * 0.0775, 2)) Good idea! -- Martin Michlmayr https://www.cyrius.com/ -- --- You receiv

Re: Filter by acount and related account

2020-12-29 Thread Martin Michlmayr
* Martin Michlmayr [2020-12-29 21:09]: > reg Expenses:Entertainment:Streaming -l "any(account =~ /Liabilities:Credit > Card:VISA/)" > > > I tried using the -r and --limit option, but it did not work. > > No, you need: any(account =~ /.../) Just to make th

Re: How could you calculate tax in your transaction?

2020-12-29 Thread Martin Michlmayr
* Martin Michlmayr [2020-12-24 13:43]: > = /^Pizza:/ > Pizza:Taxes (roundto(amount * 0.0775, 2)) > CreditCard(roundto(-amount * 0.0775, 2)) > > This does what you want. > Unfortunately, it leads to an error due to a bug, but if you e.g. > cha

  1   2   3   4   5   >