Initial version of the E-Invoice solution of JR IT Services

This commit is contained in:
2026-02-16 17:02:03 +01:00
commit e0c15fc7f2
36 changed files with 1407 additions and 0 deletions

9
jr_einvoice/utils.py Normal file
View File

@@ -0,0 +1,9 @@
from __future__ import annotations
def money_fmt(value, currency: str = "EUR") -> str:
try:
v = float(value)
except Exception:
v = 0.0
# de-DE formatting (simple, stable)
return f"{v:,.2f} {currency}".replace(",", "X").replace(".", ",").replace("X", ".")