On 02.06.14,15:58, Esben Stien wrote:
> Jostein Berntsen <[email protected]> writes:
>
> > Could you check my example and see if that works for you?
>
> I created a file foo.ledger:
>
> = /Assets:1500/
> Income:Transaction (1 * amount)
> Income:3010 (-1 * amount)
>
> 2014-06-02 foo
> Assets:1500:foo:10101 1337
>
> ..then I run ledger -f foo.ledger and I get:
>
> Ledger 3.0.2-20140507, the command-line accounting tool
>
> While parsing file
> "foo.ledger",
> line 6:
> While balancing transaction from
> "foo.ledger",
> lines 5-6:
> > 2014-06-02 foo
> > Assets:1500:foo:10101 1337
> Unbalanced remainder is:
> 1337
> Amount to balance against:
> 1337
> Error: Transaction does not balance
>
This seems to work for me:
= /Assets:1500/
Assets:Total 1
Income:3010 -1
2014-06-02 foo
Assets:1500:foo:10101 1337
Assets:Total
2014-06-03 foo
Assets:1500:foo:20101 5100
Assets:Total
Can you use this?
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 [email protected].
For more options, visit https://groups.google.com/d/optout.