mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
feat(costs): let a trip keep its costs as totals only (#1714)
Travellers who track what a trip costs but never split it saw an Unfinished warning on every expense and a settle-up they had no use for. A trip now has a costs mode (appended migration, trips.costs_mode, split by default); totals leaves payers, shares and settling up out of Costs on desktop and phone through the same gate as a trip of one, and saves new expenses without a payer. PUT /api/trips/:id and update_trip take it on budget_edit. The split chips move into their own component.
This commit is contained in:
@@ -139,6 +139,9 @@ const budget: TranslationStrings = {
|
||||
'Dona a cada persona un nombre de parts, com ara les nits que s’hi ha allotjat; el total es reparteix en aquesta proporció.',
|
||||
'costs.splitSharesOf': 'Parts de {name}',
|
||||
'costs.splitSharesNone': 'Dona una part a almenys una persona',
|
||||
'costs.mode.label': 'Repartir les despeses entre els viatgers',
|
||||
'costs.mode.hintSplit': 'Qui ha pagat i qui comparteix cada despesa, i el saldo final.',
|
||||
'costs.mode.hintTotals': 'Només els totals: sense pagadors, parts ni saldo. El que s’havia repartit es manté desat.',
|
||||
'costs.splitHint.ticket': 'Llista el que hi havia al rebut i marca qui ha pres cada article.',
|
||||
'costs.pickSomeone': 'Tria almenys una persona amb qui dividir-ho.',
|
||||
'costs.splitSummary': 'Dividit entre {count} persones · {amount} cadascú',
|
||||
|
||||
Reference in New Issue
Block a user