register installation SN after step 3

This commit is contained in:
Yinyin Liu 2026-04-28 12:51:07 +02:00
parent 78d67d77fd
commit bee5d8e1e7
6 changed files with 16 additions and 1 deletions

View File

@ -10,7 +10,12 @@ public static class ChecklistStepDefinitions
{ {
new( 1, "Order created, customer and partner info recorded in CRM", NoSubtasks), new( 1, "Order created, customer and partner info recorded in CRM", NoSubtasks),
new( 2, "Hardware assembled at Vebo", 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( 4, "Gateway SD card configured, VPN and gateway name registered", NoSubtasks),
new( 5, "Information tab filled out (customer, serials, VPN)", new( 5, "Information tab filled out (customer, serials, VPN)",
""" """

View File

@ -136,6 +136,12 @@ public static partial class Db
$"\"{oldText}\"", $"\"{key}\"", $"%\"{oldText}\"%"); $"\"{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 // 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. // to existing rows so already-seeded installations pick up the new subtask after deploy.
Connection.Execute( Connection.Execute(

View File

@ -729,6 +729,7 @@
"checklistStep14": "Benutzerkonto mit richtigen Ordnern und Zugriffen erstellt", "checklistStep14": "Benutzerkonto mit richtigen Ordnern und Zugriffen erstellt",
"checklistStep15": "Kundennachverfolgung abgeschlossen, Feedback eingeholt", "checklistStep15": "Kundennachverfolgung abgeschlossen, Feedback eingeholt",
"checklistStep16": "Weitere Anliegen werden über das Ticket-System verfolgt", "checklistStep16": "Weitere Anliegen werden über das Ticket-System verfolgt",
"checklistStep3Sub1": "Installations-Seriennummer",
"checklistStep5Sub1": "Kundeninformationen (E-Mail, Adresse)", "checklistStep5Sub1": "Kundeninformationen (E-Mail, Adresse)",
"checklistStep5Sub2": "Installationsinformationen (externes EMS, Stromanbieter, Datenerfassung)", "checklistStep5Sub2": "Installationsinformationen (externes EMS, Stromanbieter, Datenerfassung)",
"checklistStep5Sub3": "Batterie-Seriennummer", "checklistStep5Sub3": "Batterie-Seriennummer",

View File

@ -477,6 +477,7 @@
"checklistStep14": "User account created with correct folders and access", "checklistStep14": "User account created with correct folders and access",
"checklistStep15": "Customer follow-up completed, feedback collected", "checklistStep15": "Customer follow-up completed, feedback collected",
"checklistStep16": "Further issues tracked via Ticket system", "checklistStep16": "Further issues tracked via Ticket system",
"checklistStep3Sub1": "Installation serial number",
"checklistStep5Sub1": "Customer information (email, address)", "checklistStep5Sub1": "Customer information (email, address)",
"checklistStep5Sub2": "Installation information (external EMS, grid provider, data collection)", "checklistStep5Sub2": "Installation information (external EMS, grid provider, data collection)",
"checklistStep5Sub3": "Battery serial number", "checklistStep5Sub3": "Battery serial number",

View File

@ -729,6 +729,7 @@
"checklistStep14": "Compte utilisateur créé avec les dossiers et accès corrects", "checklistStep14": "Compte utilisateur créé avec les dossiers et accès corrects",
"checklistStep15": "Suivi client effectué, retour recueilli", "checklistStep15": "Suivi client effectué, retour recueilli",
"checklistStep16": "Problèmes ultérieurs suivis via le système de tickets", "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)", "checklistStep5Sub1": "Informations client (e-mail, adresse)",
"checklistStep5Sub2": "Informations d'installation (EMS externe, fournisseur réseau, collecte de données)", "checklistStep5Sub2": "Informations d'installation (EMS externe, fournisseur réseau, collecte de données)",
"checklistStep5Sub3": "Numéro de série de la batterie", "checklistStep5Sub3": "Numéro de série de la batterie",

View File

@ -729,6 +729,7 @@
"checklistStep14": "Account utente creato con cartelle e accessi corretti", "checklistStep14": "Account utente creato con cartelle e accessi corretti",
"checklistStep15": "Follow-up cliente completato, feedback raccolto", "checklistStep15": "Follow-up cliente completato, feedback raccolto",
"checklistStep16": "Ulteriori problemi tracciati tramite il sistema di ticket", "checklistStep16": "Ulteriori problemi tracciati tramite il sistema di ticket",
"checklistStep3Sub1": "Numero di serie dell'installazione",
"checklistStep5Sub1": "Informazioni cliente (e-mail, indirizzo)", "checklistStep5Sub1": "Informazioni cliente (e-mail, indirizzo)",
"checklistStep5Sub2": "Informazioni installazione (EMS esterno, fornitore di rete, raccolta dati)", "checklistStep5Sub2": "Informazioni installazione (EMS esterno, fornitore di rete, raccolta dati)",
"checklistStep5Sub3": "Numero di serie batteria", "checklistStep5Sub3": "Numero di serie batteria",