Initial commit for Python Version

This commit is contained in:
2026-06-30 13:55:05 +00:00
commit 71d49c6f28
19 changed files with 14606 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
{
"_comment": "Naue Roll Calculator - General Configuration. Article data stays in article-data.json.",
"forklift_rules": {
"_comment": "Weight-based forklift and core diameter rules. Applies per product category.",
"applicable_categories": [
"bentofix"
],
"applicable_sites": [
"espelkamp",
"malaysia"
],
"rules": [
{
"id": "heavy_roll",
"condition": "weight_kg >= 1700",
"weight_threshold_kg": 1700,
"max_weight_kg": 2750,
"requirements": {
"min_core_outer_diameter_mm": 170,
"forklift_mandrel_diameter_mm": 140,
"forklift_capacity_t": 7.5
},
"messages": {
"en": {
"warning_title": "Heavy Roll – Special Equipment Required",
"requirements_label": "The following requirements apply for rolls ≥ 1700 kg (Bentofix):",
"req_core": "Core outer diameter ≥ 170 mm required (current: {core} mm)",
"req_mandrel": "Forklift mandrel diameter: 140 mm required",
"req_forklift": "Forklift capacity: 7.5 t required",
"core_ok": "Core diameter OK (≥ 170 mm)",
"core_nok": "Core diameter too small – minimum 170 mm required (current: {core} mm)"
},
"de": {
"warning_title": "Schwere Rolle – Sonderausrüstung erforderlich",
"requirements_label": "Für Rollen ≥ 1700 kg (Bentofix) gelten folgende Anforderungen:",
"req_core": "Kernaußendurchmesser ≥ 170 mm erforderlich (aktuell: {core} mm)",
"req_mandrel": "Gabelstapler-Dorn: 140 mm Durchmesser erforderlich",
"req_forklift": "Gabelstapler: 7,5 t Tragkraft erforderlich",
"core_ok": "Kerndurchmesser OK (≥ 170 mm)",
"core_nok": "Kerndurchmesser zu klein – Minimum 170 mm erforderlich (aktuell: {core} mm)"
}
}
}
],
"hard_limit": {
"max_weight_kg": 2750,
"messages": {
"en": {
"block_title": "Weight Limit Exceeded – Calculation Blocked",
"block_text": "The calculated roll weight of {weight} kg exceeds the absolute maximum of 2750 kg for Bentofix. Please adjust the product length or roll dimensions."
},
"de": {
"block_title": "Gewichtslimit überschritten – Berechnung gesperrt",
"block_text": "Das berechnete Rollengewicht von {weight} kg überschreitet das absolute Maximum von 2750 kg für Bentofix. Bitte Produktlänge oder Rollenmaße anpassen."
}
}
}
}
}