Show sats and whole kroner in the shared formatters
This commit is contained in:
1 parent
03547c2916
commit
f62a90951c
1 file changed
+4
-4
+4
-4
@@ -6,12 +6,12 @@
|
|||||||
*
|
*
|
||||||
* Exported as window.Skuld:
|
* Exported as window.Skuld:
|
||||||
* api(method, path, body) fetch JSON, throws {status, error, field}
|
* api(method, path, body) fetch JSON, throws {status, error, field}
|
||||||
* formatOre(ore) "1 234 567,89"
|
* formatOre(ore) "1 234,50", the exact stored value, for inputs
|
||||||
* formatKroner(ore) "1 234 567,89 kr"
|
* formatKroner(ore) "1 060 375 kr", whole kroner
|
||||||
* formatSats(sats) "1,50000000"
|
* formatSats(sats) "1 500 000", whole sats, no unit
|
||||||
* formatPercent(value) "33,3 %"
|
* formatPercent(value) "33,3 %"
|
||||||
* formatDate(iso) "31.12.2025"
|
* 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)
|
* sheetRow(account), totalsRow(totals, sats), gapRow(), totRow(row)
|
||||||
* fieldValue(name), fieldChecked(name), setFieldValue(name, value),
|
* fieldValue(name), fieldChecked(name), setFieldValue(name, value),
|
||||||
* setFieldChecked(name, checked), setFieldVisible(name, visible)
|
* setFieldChecked(name, checked), setFieldVisible(name, visible)
|
||||||
|
|||||||
Reference in new issue
Block a user