Sure, I'll make a pull request.
Something I was a bit confused about. If I change the automated transaction
to:
= "Liabilities:Apple Card" and has_tag("cashback")
It doesn't seem to work. There is no error, it just doesn't apply the
transaction. Do you happen to know the right way to use has_tag() here?
Thanks,
Viraj.
On Fri, Jun 9, 2023 at 9:14 PM John Wiegley <[email protected]> wrote:
> >>>>> "VA" == Viraj Alankar <[email protected]> writes:
>
> VA> I found one way that I think should work:
> VA> = "Liabilities:Apple Card" and %cashback
> VA> Assets:Apple Cash (-tag("cashback"))
> VA> Income:Credit Card Rewards (tag("cashback"))
>
> VA> 2023/06/06 McDonalds
> VA> ; cashback:: 0.02
> VA> Expenses:Food:Restaurants $23.98
> VA> Liabilities:Apple Card
> VA> 2023/06/07 Transfer
> VA> Liabilities:Apple Card $23.98
> VA> Assets:Some bank
>
> VA> Mainly found by searching bugs. The manual would really benefit with
> some
> VA> more realistic examples in the Automated Transactions section.
>
> Interesting example! Please feel free to submit it as an addition to the
> docs,
> if you’d be willing.
>
> John
>
--
---
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/CAM502dPODwCWuNWjM9bx0xt4UU2_pdp5BkdCxDitsDbmoULyUQ%40mail.gmail.com.