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 Michlmayr https://www.cyrius.com/ -- --- You

Any way to get maximum balance and date for account?

2024-02-03 Thread lipp f
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

Re: Any way to get maximum balance and date for account?

2024-02-03 Thread Tavis Ormandy
On 2024-02-03, lipp f wrote: > TIA. > Are you only interested in cases that a /transaction/ causes the maximum balance to be reached (e.g. you deposited some cash)? Maybe something like this? $ ledger reg -JVd 'd > [2023] & d < [2024]' ^Assets:Checking \ | sort -g -k2

Re: Any way to get maximum balance and date for account?

2024-02-03 Thread lipp f
For tax purposes, I need maximum balance of an investment account during the tax year. reg -J sorted doesn't actually give me that. When using reg, it needs to do a cumulative sum, on top of the initial balance. On Saturday, February 3, 2024 at 3:33:05 PM UTC-5 Tavis Ormandy wrote: > On 2024-02

Re: Any way to get maximum balance and date for account?

2024-02-03 Thread Tavis Ormandy
On 2024-02-03, lipp f wrote: > For tax purposes, I need maximum balance of an investment account during > the tax year. reg -J sorted doesn't actually give me that. When using reg, > it needs to do a cumulative sum, on top of the initial balance. Hmm, pretty sure the solution provided does liter

Re: Any way to get maximum balance and date for account?

2024-02-03 Thread lipp f
$ ledger reg -J -X CAD -V assets and not external | sort -g -k2 | tail -1 2021-12-31 1369417.9409144474843847 $ ledger bal -X CAD -V -e "2022-1-1" assets and not external 1,249,676.858511046923949 CAD and max balance is actually on Jan 3 $ ledger bal -X CAD -V -e "2022-1-4" assets and not extern

Re: Any way to get maximum balance and date for account?

2024-02-03 Thread Tavis Ormandy
On 2024-02-04, lipp f wrote: > $ ledger reg -J -X CAD -V assets and not external | sort -g -k2 | tail -1 > 2021-12-31 1369417.9409144474843847 > $ ledger bal -X CAD -V -e "2022-1-1" assets and not external > 1,249,676.858511046923949 CAD > and max balance is actually on Jan 3 > $ ledger bal -X C