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                   0.1

2024-07-04 * Sale
    Assets    10 USD
    Income:Customer A

This results in a Liabilities:Tax:Income:Customer A account automatically
created. What I would like to end up with is Liabilities:Tax:Customer A — is
this possible?

Thanks


- Igbanam

-- 

--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAOmRJrdYZq_mHEO5QXZQurXTLrX6X5f6bORN1TCWZui27bZ%2BOQ%40mail.gmail.com.

Reply via email to