mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +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:
@@ -188,6 +188,10 @@ const budget: TranslationStrings = {
|
||||
'Przypisz każdej osobie liczbę udziałów, np. liczbę nocy; kwota zostanie podzielona w tej proporcji.',
|
||||
'costs.splitSharesOf': 'Udziały: {name}',
|
||||
'costs.splitSharesNone': 'Przypisz udział co najmniej jednej osobie',
|
||||
'costs.mode.label': 'Dziel koszty między podróżnych',
|
||||
'costs.mode.hintSplit': 'Kto zapłacił i kto dzieli każdy wydatek, a na koniec rozliczenie.',
|
||||
'costs.mode.hintTotals':
|
||||
'Tylko sumy: bez płacących, udziałów i rozliczeń. To, co już podzielono, pozostaje zapisane.',
|
||||
'costs.splitHint.ticket': 'Wypisz, co było na paragonie, i zaznacz, kto miał którą pozycję.',
|
||||
'costs.filter.allCategories': 'Wszystkie kategorie',
|
||||
'costs.filter.allDays': 'Wszystkie dni',
|
||||
|
||||
Reference in New Issue
Block a user