mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix(costs): amounts follow their currency's decimals and format, and payments count on the local day
Several small things in the costs views, on desktop and phone alike: - The outstanding card no longer says "You're all settled up" while a payment is still open in Settle up. - The custom split shows its suggested shares as a faint placeholder in the currency's own form (30000 for won, not 30000.00), so it no longer reads like an amount already typed. - Amount fields take only the decimals the currency has: won and yen take none, KWD and the other three-decimal currencies three. A switch of currency cuts what was already typed. 1000.555 won was saved as typed, listed as 1,001 and reopened as 1001. - The expense sheet on the phone prints shares and sums with the same formatter as the list, with grouping and the currency's decimals. - A payment recorded with Settle or Settle all is dated on the viewer's own day, and one without a date of its own is grouped by its UTC record time read on the local calendar. In Seoul before 09:00 it landed on the day before. - "1 expenses need a payer" now uses the plural forms of each language. Refs #2604
This commit is contained in:
@@ -60,6 +60,8 @@ const budget: TranslationStrings = {
|
||||
'costs.outstanding': 'Nevyřízená částka',
|
||||
'costs.outstandingSub': 'Výdaje zatím bez plátce',
|
||||
'costs.outstandingItems': 'výdajů potřebuje plátce',
|
||||
'costs.outstandingItems.one': 'výdaj potřebuje plátce',
|
||||
'costs.outstandingItems.few': 'výdaje potřebují plátce',
|
||||
'costs.expenses': 'Výdaje',
|
||||
'costs.entries': '{count} položek',
|
||||
'costs.entries.one': '{count} položka',
|
||||
|
||||
Reference in New Issue
Block a user