Initial commit – AufmaßCreater v2.35

This commit is contained in:
2026-06-10 11:03:43 +02:00
commit 84c933ea9c
2823 changed files with 490495 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from flask import render_template
TEMPLATE = 'components/modul_sto_sammler.html'
def get_formular_html():
return render_template(TEMPLATE)
def berechne(form_data):
pos = []
liste = form_data.get('sto_liste', '').strip()
if liste:
lines = [l.strip() for l in liste.split('\n') if l.strip()]
for i, line in enumerate(lines):
pos.append(dict(pos_nr='10038100', kurztext=f'Störung: {line}', menge=1, einheit='ST'))
return pos
def _float(val, default=0):
try: return float(str(val).replace(',', '.'))
except: return default
def _int(val, default=0):
try: return int(float(str(val).replace(',', '.')))
except: return default