Hello folks,
I have a credit card with a credit limit of ₹150,000. When I use the credit card, I not only want to know how much I owe the bank (i.e., liability), but also how much remains of my credit limit.
So I want to calculate, ₹(150,000 - (Liabilities:Payable:Credit Card)). Given that "line of credit" doesn't fall into any of the main accounts, I can't use real accounts to calculate it, and would need to use a virtual account and an automated transaction.
I looked at
but I'm still having difficulty with additions/subtractions.
Ideally, I would like something like:
= Liabilities:Payable:Credit Card
(Assets:Credit Card) ₹150000-*1
or
= Liabilities:Payable:Credit Card
(Assets:Credit Card) ₹150000+*-1
But hledger doesn't work with "+" or "-" in the line. I get the following error:
> unexpected '-'
> expecting ';', '=', '@', '{', digit, end of input, exponent, newline, or space
Is there anyway that I can do this using automated transactions? Or are there any other suggestions on how to keep track of remaining credit limit?
Thanks,
Pranesh