From bee5d8e1e79f061a698183f9b6ff1adba80e5cf7 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Tue, 28 Apr 2026 12:51:07 +0200 Subject: [PATCH] register installation SN after step 3 --- csharp/App/Backend/DataTypes/ChecklistStepDefinitions.cs | 7 ++++++- csharp/App/Backend/Database/Db.cs | 6 ++++++ typescript/frontend-marios2/src/lang/de.json | 1 + typescript/frontend-marios2/src/lang/en.json | 1 + typescript/frontend-marios2/src/lang/fr.json | 1 + typescript/frontend-marios2/src/lang/it.json | 1 + 6 files changed, 16 insertions(+), 1 deletion(-) diff --git a/csharp/App/Backend/DataTypes/ChecklistStepDefinitions.cs b/csharp/App/Backend/DataTypes/ChecklistStepDefinitions.cs index f1cbdc9bf..3e64d2d68 100644 --- a/csharp/App/Backend/DataTypes/ChecklistStepDefinitions.cs +++ b/csharp/App/Backend/DataTypes/ChecklistStepDefinitions.cs @@ -10,7 +10,12 @@ public static class ChecklistStepDefinitions { new( 1, "Order created, customer and partner info recorded in CRM", NoSubtasks), new( 2, "Hardware assembled at Vebo", NoSubtasks), - new( 3, "Installation created on Monitor under correct product and folder", NoSubtasks), + new( 3, "Installation created on Monitor under correct product and folder", + """ + [ + {"text":"checklistStep3Sub1","checked":false} + ] + """), new( 4, "Gateway SD card configured, VPN and gateway name registered", NoSubtasks), new( 5, "Information tab filled out (customer, serials, VPN)", """ diff --git a/csharp/App/Backend/Database/Db.cs b/csharp/App/Backend/Database/Db.cs index 6e4d9b13a..63d0b7f10 100644 --- a/csharp/App/Backend/Database/Db.cs +++ b/csharp/App/Backend/Database/Db.cs @@ -136,6 +136,12 @@ public static partial class Db $"\"{oldText}\"", $"\"{key}\"", $"%\"{oldText}\"%"); } + // One-time backfill: step 3 originally had no subtasks; add the installation serial subtask + // to existing rows. + Connection.Execute( + "UPDATE ChecklistItem SET Subtasks = ? WHERE StepNumber = 3 AND (Subtasks IS NULL OR Subtasks = '')", + "[{\"text\":\"checklistStep3Sub1\",\"checked\":false}]"); + // One-time backfill: step 8 originally had no subtasks; add the delivery-receipt subtask // to existing rows so already-seeded installations pick up the new subtask after deploy. Connection.Execute( diff --git a/typescript/frontend-marios2/src/lang/de.json b/typescript/frontend-marios2/src/lang/de.json index bacaab0c1..f9ef3cfa4 100644 --- a/typescript/frontend-marios2/src/lang/de.json +++ b/typescript/frontend-marios2/src/lang/de.json @@ -729,6 +729,7 @@ "checklistStep14": "Benutzerkonto mit richtigen Ordnern und Zugriffen erstellt", "checklistStep15": "Kundennachverfolgung abgeschlossen, Feedback eingeholt", "checklistStep16": "Weitere Anliegen werden über das Ticket-System verfolgt", + "checklistStep3Sub1": "Installations-Seriennummer", "checklistStep5Sub1": "Kundeninformationen (E-Mail, Adresse)", "checklistStep5Sub2": "Installationsinformationen (externes EMS, Stromanbieter, Datenerfassung)", "checklistStep5Sub3": "Batterie-Seriennummer", diff --git a/typescript/frontend-marios2/src/lang/en.json b/typescript/frontend-marios2/src/lang/en.json index a78013c56..9f0911d59 100644 --- a/typescript/frontend-marios2/src/lang/en.json +++ b/typescript/frontend-marios2/src/lang/en.json @@ -477,6 +477,7 @@ "checklistStep14": "User account created with correct folders and access", "checklistStep15": "Customer follow-up completed, feedback collected", "checklistStep16": "Further issues tracked via Ticket system", + "checklistStep3Sub1": "Installation serial number", "checklistStep5Sub1": "Customer information (email, address)", "checklistStep5Sub2": "Installation information (external EMS, grid provider, data collection)", "checklistStep5Sub3": "Battery serial number", diff --git a/typescript/frontend-marios2/src/lang/fr.json b/typescript/frontend-marios2/src/lang/fr.json index 10281a664..1277120a7 100644 --- a/typescript/frontend-marios2/src/lang/fr.json +++ b/typescript/frontend-marios2/src/lang/fr.json @@ -729,6 +729,7 @@ "checklistStep14": "Compte utilisateur créé avec les dossiers et accès corrects", "checklistStep15": "Suivi client effectué, retour recueilli", "checklistStep16": "Problèmes ultérieurs suivis via le système de tickets", + "checklistStep3Sub1": "Numéro de série de l'installation", "checklistStep5Sub1": "Informations client (e-mail, adresse)", "checklistStep5Sub2": "Informations d'installation (EMS externe, fournisseur réseau, collecte de données)", "checklistStep5Sub3": "Numéro de série de la batterie", diff --git a/typescript/frontend-marios2/src/lang/it.json b/typescript/frontend-marios2/src/lang/it.json index 99e1f1002..2959bca2c 100644 --- a/typescript/frontend-marios2/src/lang/it.json +++ b/typescript/frontend-marios2/src/lang/it.json @@ -729,6 +729,7 @@ "checklistStep14": "Account utente creato con cartelle e accessi corretti", "checklistStep15": "Follow-up cliente completato, feedback raccolto", "checklistStep16": "Ulteriori problemi tracciati tramite il sistema di ticket", + "checklistStep3Sub1": "Numero di serie dell'installazione", "checklistStep5Sub1": "Informazioni cliente (e-mail, indirizzo)", "checklistStep5Sub2": "Informazioni installazione (EMS esterno, fornitore di rete, raccolta dati)", "checklistStep5Sub3": "Numero di serie batteria",