mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +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:
@@ -152,6 +152,9 @@ const budget: TranslationStrings = {
|
||||
'costs.splitHint.shares': 'תנו לכל אדם מספר חלקים, למשל מספר הלילות שנשאר; הסכום הכולל מתחלק ביחס הזה.',
|
||||
'costs.splitSharesOf': 'החלקים של {name}',
|
||||
'costs.splitSharesNone': 'תנו חלק לאדם אחד לפחות',
|
||||
'costs.mode.label': 'חלוקת ההוצאות בין המטיילים',
|
||||
'costs.mode.hintSplit': 'מי שילם ומי מתחלק בכל הוצאה, והתחשבנות בסוף.',
|
||||
'costs.mode.hintTotals': 'סכומים בלבד: בלי משלמים, חלקים או התחשבנות. מה שחולק כבר נשאר שמור.',
|
||||
'costs.splitHint.ticket': 'רשמו מה היה בקבלה וסמנו מי לקח כל פריט.',
|
||||
'costs.pickSomeone': 'בחרו לפחות אדם אחד לחלוקה.',
|
||||
'costs.splitSummary': 'חלוקה ל-{count} · {amount} לכל אחד',
|
||||
|
||||
Reference in New Issue
Block a user