On Fri, May 17, 2024 at 06:55:12AM -0700, oliver wrote:
> I am afraid you are crediting me with more intelligence than I actually
> have.
> I find balance assertion to be very difficult to understand and the few
> lines in the docs don't make it
> any easier.
> Follwoing your example, I enter:
>
> 2024/04/08 * Balance Assertion:Ally_Savings
> Assets:Ally_Savings $0.00 = $47.19
> ($47.19 being the ending balance in the account as of April 8).
>
> In return I get:
> Warning: "home/oliver/ledger.dat", line 1003: Unknown account
> 'Assets:Ally_Savings $0.00 = $47.19'
>
> Obviously, I am doing something wrong, but what?
You need more whitespace.
- An account name on the entry line must be prefixed with at least one space.
- An account name must end with two or more spaces, or one or more tabs.
Per the docs:
| There must be at least two spaces, or a tab, between the amount and the
| account. If you do not have adequate separation between the amount and the
| account Ledger will give an error and stop calculating.
So easy fix for you:
2024/04/08 * Balance Assertion:Ally_Savings
Assets:Ally_Savings $0.00 = $47.19
--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail : [email protected]
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
--
---
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/robbat2-20240517T232604-542031603Z%40orbis-terrarum.net.