mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +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:
@@ -168,6 +168,7 @@ const budget: TranslationStrings = {
|
||||
'costs.outstanding': 'Import pendent',
|
||||
'costs.outstandingSub': 'Despeses encara sense pagador',
|
||||
'costs.outstandingItems': 'despeses necessiten un pagador',
|
||||
'costs.outstandingItems.one': 'despesa necessita un pagador',
|
||||
'costs.multiplePayers': 'Han pagat diverses persones',
|
||||
'costs.singlePayer': 'Ha pagat una sola persona',
|
||||
'costs.payersUnbalanced': 'Els imports dels pagadors han de sumar {amount}',
|
||||
|
||||
Reference in New Issue
Block a user