Re: How to use account_base

2024-07-08 Thread John Wiegley
> "IO" == Igbanam Ogbuluijah writes: IO> My suggestion is for Ledger to pick a direction and stick to it. Either it IO> continues with the `%(` syntax and updates the information in the docs, or IO> it unifies the syntax with `$(` and releases a breaking change. Either IO> choice is fine. I

Re: How to use account_base

2024-07-05 Thread Igbanam Ogbuluijah
Disclaimer: I'm a new enthusiast; so take my thoughts with a grain of salt. I don't think supporting both would be good for Ledger. A trend I see in the Ledger docs is "Use for whatever you want it to mean." — but has to be defined. If Ledger begins to change along the lines of "You can use

Re: How to use account_base

2024-07-05 Thread Martin Michlmayr
* John Wiegley [2024-07-05 16:18]: > > So… I was looking to do a PR for this, and I realized this feature already > > exists — just under a different syntax. You were right John. What's needed > > here may be an update to the documentation; not a code change. > > Ah, well that shows how

Re: How to use account_base

2024-07-05 Thread John Wiegley
> Igbanam Ogbuluijah writes: > So… I was looking to do a PR for this, and I realized this feature already > exists — just under a different syntax. You were right John. What's needed > here may be an update to the documentation; not a code change. Ah, well that shows how unfortunate a

Re: How to use account_base

2024-07-05 Thread Igbanam Ogbuluijah
So… I was looking to do a PR for this, and I realized this feature already exists — just under a different syntax. You were right John. What's needed here may be an update to the documentation; not a code change. The correct way to use expressions in the auto_xact account specification —

Re: How to use account_base

2024-07-05 Thread John Wiegley
> Igbanam Ogbuluijah writes: > Good stuff! Thanks for the pointer, John. > > I'll sit with this over the weekend and come up with a proposal on what the > feature-extension should look like. If we agree on that, I'll throw up an > issue on Github and try to tinker through. OK, here’s the

Re: How to use account_base

2024-07-05 Thread Igbanam Ogbuluijah
Good stuff! Thanks for the pointer, John. I'll sit with this over the weekend and come up with a proposal on what the feature-extension should look like. If we agree on that, I'll throw up an issue on Github and try to tinker through. Igbanam On Fri, Jul 5, 2024 at 6:05 PM John Wiegley

Re: How to use account_base

2024-07-05 Thread John Wiegley
> "IO" == Igbanam Ogbuluijah writes: IO> If it's meant to work this way, then there may be a bug somewhere. Aha, the support for $account is much more hard-coded than I had realized. It doesn’t allow any expression after a $ sign, but /only/ $account. I’ve attached the patch you need for

Re: How to use account_base

2024-07-05 Thread Igbanam Ogbuluijah
If it's meant to work this way, then there may be a bug somewhere. With *= ^IncomeLiabilities:Tax:$account_base -0.1$account 0.12024-07-04 * SaleAssets10 USDIncome:Customer A* the bal query yields * 10 USD Assets -11

Re: How to use account_base

2024-07-04 Thread John Wiegley
I think you would then use $account_base? John > On Jul 4, 2024, at 7:46 AM, Igbanam Ogbuluijah wrote: > > > account_base — from man ledger — is an expression to "Return the base > account, i.e. everything after the last account delimiter ':'". > > How do I use this within a ledger? > >

How to use account_base

2024-07-04 Thread Igbanam Ogbuluijah
account_base — from man ledger — is an expression to "Return the base account, i.e. everything after the last account delimiter ':'". How do I use this within a ledger? Use case: I want to record tax for sales per customer. = ^Income Liabilities:Tax:$account -0.1 $account