thierry <[email protected]> writes:

> $ ledger --args-only --decimal-comma -f /tmp/thierry.ledger register 
> While parsing file "/tmp/thierry.ledger", line 2: 
> While parsing posting:
>   Actif:Courant:BnpCc                    7849,42 F = 7849,42 F
>                                                      ^^^^^^^^^
> Error: Cannot subtract an amount from an uninitialized amount

I get something like this from HEAD too.  A minimal example:

--- begin foo.ledger ---
2014/01/01 Foo
  Foo £0 = £0
---  end foo.ledger  ---

csr21@aleph-null:~/src/misc/ledger (payee-uuid-mapping)$ ledger -f
/tmp/foo.ledger bal
While parsing file "/tmp/foo.ledger", line 2: 
While parsing posting:
  Foo  £0 = £0
             ^^^
Error: Cannot subtract an amount from an uninitialized amount

This error seems to crop up only when the first transaction for an
account contains a balance assertion; all the other balance assertions
in my ledger are fine once I removed the initial balance one.

--- begin foo2.ledger ---
2014/01/01 Foo
  Foo  £0

2014/01/02 Foo
  Foo  £0 = £0 
---  end foo2.ledger  ---

Christophe

-- 

--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to