mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +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:
@@ -166,6 +166,9 @@ const budget: TranslationStrings = {
|
||||
'costs.splitHint.shares': '泊数など、各メンバーに口数を指定してください。合計金額はその比率で分けられます。',
|
||||
'costs.splitSharesOf': '{name}の口数',
|
||||
'costs.splitSharesNone': '少なくとも1人に口数を指定してください',
|
||||
'costs.mode.label': '旅行者の間で費用を分ける',
|
||||
'costs.mode.hintSplit': '誰が支払い、誰が各支出を分担するか、そして最後に精算します。',
|
||||
'costs.mode.hintTotals': '合計のみ:支払者・分担・精算はありません。分担済みの内容は保存されたままです。',
|
||||
'costs.splitHint.ticket': 'レシートの品目を書き出し、それぞれ誰の分かにチェックを入れます。',
|
||||
'costs.filter.allCategories': 'すべてのカテゴリー',
|
||||
'costs.filter.allDays': 'すべての日',
|
||||
|
||||
Reference in New Issue
Block a user