Suppose I have a.ledger:
= /^Expenses:/
[Share] 1
[Share:Person:A] -0.5
[Share:Person:B] -0.5
= /^Person:/
[Share:$account] -1
[Share] 1
commodity €
2017-03-09 * some xy
Expenses:X €58
Person:A
and b.ledger:
= /^Expenses:/
[Share] 1
[Share:Person:A] -0.5
[Share:Person:B] -0.5
= /^Person:/
[Share:$account] -1
[Share] 1
commodity €
2017-03-19 * some xygfd
Expenses:X €58
Person:B
The only difference is that the same amount is payed on another day for
something different by another person
Now when I call ledger -f a.ledger -f b.ledger balance, the output is
€116 Expenses:X
€-116 Person
€-58 A
€-58 B
0 Share:Person
€-29 A
€29 B
--------------------
0
Now my assumption would have been that Share:Person:A and Share:Person:B
would have come out as zero for each account A and B, as expenses have been
equally shared between the two accountants in sum.
If I take the output of the balance command, Person A would owe Person B
€29 which is not true.
Please help me to understand what is going on here and how (if) I
could/should use ledger to calculate what A owes B given multiple ledger
files with shared expenses using automated transactions.
--
---
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.