This commit is contained in:
Mateusz Gruszczyński
2026-03-13 11:03:13 +01:00
commit 35571df778
132 changed files with 11197 additions and 0 deletions

8
app/utils/formatters.py Normal file
View File

@@ -0,0 +1,8 @@
from decimal import Decimal
def pln(value):
if value is None:
return '0,00 zł'
quantized = Decimal(value).quantize(Decimal('0.01'))
return f"{quantized:,.2f}".replace(',', 'X').replace('.', ',').replace('X', ' ')