gcflames5 / ynab-splitwise-integration

A tool to copy transactions from Splitiwise to YNAB for budgeting purposes.
25 stars 6 forks source link

Clarifying the logic in Bob example #15

Open atlambert opened 1 year ago

atlambert commented 1 year ago

Thanks for writing this plug-in! I am evaluating whether this fits my needs. In your example, you describe Bob lending you $45 but then you settle up with him and pay him $20. Why wouldn’t you settle up with him for $45 in that scenario? Or, are there other transactions that have taken place which are omitted in this example, such that the net is $20 owed to Bob? I believe this is the case since you mention Splitwise’s debt simplification.

Once I understand the logic, I can determine whether this is a fit for my needs.

gcflames5 commented 1 year ago

That example is showing a case where Alice, Bob, and the user are all in a single Splitwise group and debt simplification is enabled. After the first transaction, Alice owes me $25. After the second transaction, Alice still owes me $25 but I now owe Bob $45. Splitwise will optimize the payments here and make it so that Alice owes me nothing, and instead owes Bob $25 directly. I then owe Bob the remaining $20. This is Splitwise's "debt simplification" feature that attempts to minimize the number of actual transactions that have to happen to settle debts.