-
- ${Number(p.owed).toFixed(2)}
-
- {p.unconverted_count > 0 && (
-
- approx · {p.unconverted_count} unconverted
+ {/* A negative outstanding means they have paid more towards this
+ trip than their share of it — which reads as a typo unless the
+ sign is spelled out. Shown as a magnitude plus a word, the same
+ way Shared does it, so the two pages agree on what a direction
+ means. */}
+ {participant_splits.map((p) => {
+ const owed = Number(p.owed);
+ const square = Math.abs(owed) < 0.005;
+ const theyOweMe = owed > 0;
+ return (
+
+ );
+ })}
- {/* Settled/unsettled was reported from transaction_splits.settled,
- which nothing sets — so every trip showed 100% unsettled forever,
- including ones already paid in full. Settlement is tracked across
- the whole relationship, not per trip: payments carry no trip
- attribution, so a per-trip figure cannot be computed. */}
+ {/* This note used to say a per-trip figure could not be computed,
+ because payments carried no trip attribution. Migration 0022 added
+ split_payments.trip_id, so it can and now does — the figures above
+ are net of payments scoped to this trip. What the note has to say
+ instead is which payments are NOT in them. */}
- Settlement is tracked across all shared expenses, not per trip —
+ Net of payments recorded against this trip. Payments on the ongoing
+ household tab are not counted here —
see Shared for
- what is actually owed.
+ the overall balance.