On 26.04.16,08:08, Sébastien Gross wrote:
Hi,
Every months I put some money (100 EUR) on a saving account. My bank is
charging 3% for that.
My ledger file looks like:
--8<--
#!/usr/bin/env ledger -f
= /^(?:Assets:Bank:Invests:Plan$)/ and not %/^noauto$/ and expr date >=
[2016/01/01]
$account -1
$account 0.97
Expenses:Bank:Invests:Plan 0.03
2016/01/31 * Bob
Assets:Bank:Invests:Plan 100.00 EUR
Equity:Invests:Plan
2016/02/29 * Bob
Assets:Bank:Invests:Plan 100.00 EUR
Equity:Invests:Plan
2016/03/31 * Bob
Assets:Bank:Invests:Plan 100.00 EUR
Equity:Invests:Plan
--8<--
The balance is correct:
./automated-bug.ledger bal -E
291.00 EUR Assets:Bank:Invests:Plan
-300.00 EUR Equity:Invests:Plan
9.00 EUR Expenses:Bank:Invests:Plan
--------------------
0
Now I want to add some assertion to reconcile against my bank statements:
--8<--
2016/04/01 * Check Invest total
; ;noauto;
(Assets:Bank:Invests:Plan) 0 EUR = 291EUR
--8<--
Now it yields:
While parsing posting:
(Assets:Bank:Invests:Plan) 0 EUR = 291EUR
^^^^^^
Error: Balance assertion off by -9.00 EUR (expected to see 300.00 EUR)
It seems that the balance assertion is done BEFORE any of the automated
transaction are done. Is there a way Am I missing something here?
Have you tried entering this like in the manual to check if that works
better?
2012-03-10 KFC
Expenses:Food $20.00
Assets:Cash $-20.00 = $500.00
Jostein
--
---
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.
For more options, visit https://groups.google.com/d/optout.