mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +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:
@@ -164,6 +164,9 @@ const budget: TranslationStrings = {
|
||||
'Hər kəsə pay sayı verin, məsələn qaldığı gecələrin sayı; ümumi məbləğ bu nisbətdə bölünür.',
|
||||
'costs.splitSharesOf': '{name} üçün paylar',
|
||||
'costs.splitSharesNone': 'Ən azı bir nəfərə pay verin',
|
||||
'costs.mode.label': 'Xərcləri səyahətçilər arasında bölmək',
|
||||
'costs.mode.hintSplit': 'Hər xərci kimin ödədiyi və kimlərin bölüşdüyü, sonda isə hesablaşma.',
|
||||
'costs.mode.hintTotals': 'Yalnız yekunlar: ödəyən, pay və hesablaşma yoxdur. Əvvəl bölünənlər saxlanılır.',
|
||||
'costs.splitHint.ticket': 'Qəbzdə olanları sadalayın və hər elementi kimin götürdüyünü işarələyin.',
|
||||
'costs.pickSomeone': 'Bölüşdürmək üçün ən azı bir nəfər seçin.',
|
||||
'costs.splitSummary': '{count} nəfər arasında bölünüb · hərəsinə {amount}',
|
||||
|
||||
Reference in New Issue
Block a user