From f62a90951c458540e005e768063f3fc88d3f539e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 18:20:39 +0000 Subject: [PATCH] Show sats and whole kroner in the shared formatters --- static/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)