diff --git a/static/app.js b/static/app.js index cd656c3..89604c0 100644 --- a/static/app.js +++ b/static/app.js @@ -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)