mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +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:
@@ -181,6 +181,9 @@ const budget: TranslationStrings = {
|
||||
'Dejte každé osobě počet podílů, třeba podle počtu nocí; celková částka se rozdělí v tomto poměru.',
|
||||
'costs.splitSharesOf': 'Podíly pro {name}',
|
||||
'costs.splitSharesNone': 'Dejte podíl alespoň jedné osobě',
|
||||
'costs.mode.label': 'Dělit náklady mezi cestující',
|
||||
'costs.mode.hintSplit': 'Kdo platil a kdo se na každém výdaji podílí, a vyrovnání na konci.',
|
||||
'costs.mode.hintTotals': 'Jen součty: bez plátců, podílů a vyrovnání. Co už bylo rozděleno, zůstává uložené.',
|
||||
'costs.splitHint.ticket': 'Vypište, co bylo na účtence, a zaškrtněte, kdo měl kterou položku.',
|
||||
'costs.filter.allCategories': 'Všechny kategorie',
|
||||
'costs.filter.allDays': 'Všechny dny',
|
||||
|
||||
Reference in New Issue
Block a user