This commit is contained in:
Mateusz Gruszczyński
2026-06-03 22:31:29 +02:00
parent 4bdb20d9f5
commit 85ffc36e75
3 changed files with 52 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const $ = (id) => document.getElementById(id);
const money = (v) => new Intl.NumberFormat('pl-PL', { style: 'currency', currency: 'PLN', maximumFractionDigits: 0 }).format(v || 0);
const money = (v) => new Intl.NumberFormat('pl-PL', { style: 'currency', currency: 'PLN', minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(Number(v) || 0);
const num = (id) => Number($(id).value || 0);
let lineChart, pieChart, barChart, detailChart;