Martin Blais <bl...@furius.ca> writes:

> Hi Eric,
> I tried reproducing the problem you describe but cannot (I hit other
> problems, but eventually get it working).
> Can you provide a minimal example ledger file where it fails? (Just a
> couple of transactions that highlight the problem.)

Sure! I'm responsible for handing out translation payments for a
literary magazine. I am given cash, and hand that out to people. Here's
my test file:

09/01 * Magazine Company
    Assets:Cash                                  100 USD
    Liabilities:Payable:Magazine                 -20 USD ; Payee: Bob Jones
    Liabilities:Payable:Magazine                 -55 USD ; Payee: Sam Bob 
    Liabilities:Payable:Magazine                 -25 USD ; Payee: Jane Doe 

09/02 * Bob Jones
    Liabilities:Payable:Magazine                  20 USD
    Assets:Cash 

So I got the money, then paid one of the translators. I run:

ledger -f ~/.ledger/test.dat bal payable --pivot=payee

And get:

  20 USD  Liabilities:Payable:Magazine
-100 USD  payee
 -20 USD    Bob Jones:Liabilities:Payable:Magazine
 -25 USD    Jane Doe:Liabilities:Payable:Magazine
 -55 USD    Sam Bob:Liabilities:Payable:Magazine
--------
 -80 USD


This tells me that I've paid back 20 USD so far, but not to whom! When
there are a big pile of payees, it becomes impossible to tell who hasn't
been paid. What I'm after is a command that will produce this:

 -80 USD  payee
 -25 USD    Jane Doe:Liabilities:Payable:Magazine
 -55 USD    Sam Bob:Liabilities:Payable:Magazine
--------
 -80 USD

Ie, just remove the postings that cancel out. Is that possible, do you
think? I guess, with the --pivot option, ledger would have to treat each
payee as if it were sort of an account of its own, so it knew *how* to
cancel them out...

Thanks again,
Eric

-- 

--- 
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.

Reply via email to