On 19.04.16,07:52, Sébastien Gross wrote:
Hi there,

This might be an ultra-classic use-case of ledger here I am facing.

Let's plot the scene:


- They have their own bank account (Alice and Bob) and a Join account

- Alice and Bob rent a flat ($1500/mo), which for some reasons is paid
 by Bob from his own account (not for the Join one).

- Every month Alice wires half the rent ($750) to Bob's checking account
- Every month wire the rent to the owner


For clean readability I always use the following scheme:
 (Assets|Income|Expenses|Liabilities|Equity):(Alice|Bob|Join):Account


I assume the following opening balances:

 2016/01/01 * Opening balance
     Assets:Bob:Bank:Checking            $12345
     Equity:Bob:Bank:Checking

 2016/01/01 * Opening balance
     Assets:Join:Bank:Checking             $123
     Equity:Join:Bank:Checking


This can be written as follow:


 2016/01/01 Alice
     Assets:Bob:Bank:Checking              $750
     Income:Bob:Alice:Rent

 2016/01/01 Owner
     Assets:Bob:Bank:Checking
     Expenses:Bob:Rent                    $1500

The balance is then:

 $ ./test.ledger bal
               $11718  Assets
               $11595    Bob:Bank:Checking
                 $123    Join:Bank:Checking
              $-12468  Equity
              $-12345    Bob:Bank:Checking
                $-123    Join:Bank:Checking
                $1500  Expenses:Bob:Rent
                $-750  Income:Bob:Alice:Rent
 --------------------
                    0

This is good and works fine but hides a few things:

a) Who pays the rent
b) If Alice made a mistake in the wire there is no way to check it
c) An extra income is shown for Bob which should disappear after bob
  paid the rent

I would do this:

Make a separate file for each of the accounts including join with their
own euqity, assests, liabilities setup. Ledger can query all these as
one file. Then when Alice transfers money to Bob from her account it
should be visible as an Expense in her account. Then also use tags for
the transfers to describe what happens, like for Bob:

; Rent: Transfer from Alice March 2016

You can then separate what you need in your queries.
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.

Reply via email to