Show sats and whole kroner in the shared formatters

This commit is contained in:
ai-bot committed 2026-11-14 18:20:39 +00:00
1 parent 03547c2916
commit f62a90951c
1 file changed
+4 -4
+4 -4
View File
@@ -6,12 +6,12 @@
*
* Exported as window.Skuld:
* api(method, path, body) fetch JSON, throws {status, error, field}
* formatOre(ore) "1 234 567,89"
* formatKroner(ore) "1 234 567,89 kr"
* formatSats(sats) "1,50000000"
* formatOre(ore) "1 234,50", the exact stored value, for inputs
* formatKroner(ore) "1 060 375 kr", whole kroner
* formatSats(sats) "1 500 000", whole sats, no unit
* formatPercent(value) "33,3 %"
* formatDate(iso) "31.12.2025"
* parseSats(text) "0,5" -> 50000000, null when unreadable
* parseSats(text) "1 500 000" -> 1500000, null on a decimal
* sheetRow(account), totalsRow(totals, sats), gapRow(), totRow(row)
* fieldValue(name), fieldChecked(name), setFieldValue(name, value),
* setFieldChecked(name, checked), setFieldVisible(name, visible)