Something like this:
$ ledger -f foo.dat bal '--account=tag("INV")'
0 0001
$1000.00 Assets:Checking:FOO
$-1000.00 Income:Customer
0 0002
$1200.00 Assets:Checking:FOO
$-1200.00 Income:Customer
$250.00 Assets:Checking:FOO
$-250.00 Equity:Opening Balances
--------------------
0
I got that output by breaking it into 2 transactions:
2017/03/07 (1000) Check from Customer
; INV: 0001
Assets:Accounts Receivable:Customer $-1000.00
Assets:Checking:FOO
2017/03/07 (1000) Check from Customer
; INV: 0002
Assets:Accounts Receivable:Customer $-1200.00
Assets:Checking:FOO
Thanks for the quick reply. Ledger is great btw, appreciate all the work
you've put into it.
Justin
On Saturday, September 23, 2017 at 10:58:44 AM UTC-4, John Wiegley wrote:
>
> >>>>> "JW" == Justin Woody <[email protected] <javascript:>> writes:
>
> JW> The output for individual invoices gets a little confusing:
> JW> $ ledger -f foo.dat bal '--account=tag("INV")'
> JW> $2200.00 0001
> JW> $3200.00 Assets
> JW> $1000.00 Accounts Receivable:Customer
> JW> $2200.00 Checking:FOO
> JW> $-1000.00 Income:Customer
> JW> $-1000.00 0002
> JW> $200.00 Assets:Accounts Receivable:Customer
> JW> $-1200.00 Income:Customer
> JW> $-950.00 Assets
> JW> $-1200.00 Accounts Receivable:Customer
> JW> $250.00 Checking:FOO
> JW> $-250.00 Equity:Opening Balances
> JW> --------------------
> JW> 0
> JW> Is there a way to accomplish this in a single transaction and have the
> JW> respective amounts applied to the invoices? Appreciate the help.
>
> What output did you want to see?
>
> --
> John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
>
--
---
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.