Am Donnerstag, 7. Dezember 2017 15:06:41 UTC+1 schrieb Ismaël Bouya:
>
> > I am really new to "personal" accounting and ledger-cli in particular. 
> But 
> > that would mean that these two ledgers are physically and logically 
> > separated? So if I pay the water bill I would have 
> > 
> > * in my very personal ledger eg. 
> > 
> > 2017/12/05 * Water bill 
> >   Expenses:House:Supply:Water     €50 
> >   Assets:Bank:Checking 
> > 
> > * in the shared ledger 
> > (https://mumble.net/~campbell/2017/02/26/ledger/HOWTO-sharedexpense) 
> eg. 
> > 2017/12/05 * Water bill 
> >   Expenses:House:Supply:Water     €50 
> >   Person:Johann 
>
> You can do that, but you probably don’t need to be so specific in your 
> personal account (as it’s already tracked in your house file): 
> --- my_file ---- 
> 2017/12/05 * Water bill 
>   Expenses:House expense     €50 
>   Assets:Bank:Checking 
> ----------------- 
> And in the other file: 
> --- house_file ---- 
> 2017/12/05 * Water bill 
>   Expenses:Supply:Water        €50 
>   Person:Johann 
> ------------------- 
>
> Several other ideas to handle your files, up to you to decide how you 
> want to handle it: 
>
> You can merge both files and add a namespace in front of the first: 
>
> Either you want to have everything in one file: 
> ---- single_file ---- 
> 2017/12/05 * Water bill 
>   Expenses:House expense     €50 
>   Assets:Bank:Checking 
>
> 2017/12/05 * Water bill 
>   House:Expenses:Supply:Water     €50 
>   House:Person:Johann 
> --------------------- 
>
> Problem: your personal accounting is in the middle of your house 
> accounting 
>
> Multiple files merged (my preferred one) 
> --- my_file ---- 
> apply account House 
> !include house_file 
> end apply account 
>
> 2017/12/05 * Water bill 
>   Expenses:House expense     €50 
>   Assets:Bank:Checking 
> ----------------- 
>
> --- house_file ---- 
> 2017/12/05 * Water bill 
>   Expenses:Supply:Water     €50 
>   Person:Johann 
> ------------------- 
>
> It is in practice equivalent to the previous one (it prepends all your 
> house expenses by "House"), but it’s possibly easier to edit (no need to 
> append it manually), and you can share this file with other persons in 
> House: It only contains the house expenses and is separate from your 
> own. 
> (one drawback: if you print register, it’s not sorted by date correctly 
> unless asked explicitely) 
>
> Then, if you want to know how to rebalance your account with other house 
> inhabitants: 
> ledger --current --flat bal 'House:Person:' 
>

I decided that I do not care that much where my money comes from when 
paying for Housing expenses. What I did not like on your proposal was that 
I now have to keep tracking in two ledgers expenses I pay. So I came up 
with this solution and unless somebody tells me the drawback I will go with 
that:

; central personal ledger file
= /Person:Johann/
    [Assets]                                       1
    [$account]                                    -1

apply account House
include Haus.ledger
end applay account

By having this rule, My assets always reflect my "wealth" and I do not have 
to track house expenses twice.


> And if you want to check that you didn’t forget some transactions in 
> your files: 
> ledger --format '%/%T' --current bal "^Expenses:House expense\$" 
> "^House:Person:Johann\$" 
> should give you 0 
>
> Hope it helps. 
>
> Cheers, 
> -- 
> Ismael 
>

-- 

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