mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +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:
@@ -175,6 +175,10 @@ const budget: TranslationStrings = {
|
||||
'Geef iedereen een aantal delen, zoals het aantal overnachtingen; het totaal wordt in die verhouding verdeeld.',
|
||||
'costs.splitSharesOf': 'Delen voor {name}',
|
||||
'costs.splitSharesNone': 'Geef ten minste één persoon een deel',
|
||||
'costs.mode.label': 'Kosten verdelen tussen de reizigers',
|
||||
'costs.mode.hintSplit': 'Wie betaalde en wie elke uitgave deelt, en aan het eind de verrekening.',
|
||||
'costs.mode.hintTotals':
|
||||
'Alleen totalen: geen betalers, aandelen of verrekening. Wat al verdeeld was, blijft bewaard.',
|
||||
'costs.splitHint.ticket': 'Zet op een rij wat er op de bon stond en vink aan wie welk item had.',
|
||||
'costs.filter.allCategories': 'Alle categorieën',
|
||||
'costs.filter.allDays': 'Alle dagen',
|
||||
|
||||
Reference in New Issue
Block a user