diff --git a/frappe-setup/setup_dispatch_custom_fields.py b/frappe-setup/setup_dispatch_custom_fields.py index 32c8f2e..8ed92f5 100644 --- a/frappe-setup/setup_dispatch_custom_fields.py +++ b/frappe-setup/setup_dispatch_custom_fields.py @@ -46,6 +46,9 @@ FIELDS = [ ("Dispatch Job", "legacy_ticket_id", "ID ticket legacy (pont)", "Data", None, None, "ticket_id", {"read_only": 1, "no_copy": 1, "search_index": 1, "description": "ID du ticket osTicket legacy (table `ticket`). Renseigné par le pont legacy→dispatch (lib/legacy-dispatch-sync.js) → idempotence : 1 ticket legacy = 1 Dispatch Job."}), + ("Dispatch Job", "legacy_dept", "Département legacy (pont)", "Data", None, None, "legacy_ticket_id", + {"read_only": 1, "no_copy": 1, + "description": "Département osTicket legacy (Installation Fibre / Réparation Fibre / Install-Réparation Télé / Téléphonie / Désinstallation…). Sert au coloriage des cartes dispatch « comme legacy »."}), # ── Service Contract : installation financée (conformité CRTC 2026-43, pas de clawback) ── ("Service Contract", "monthly_regular", "Forfait — prix original (barré)", "Currency", None, None, "monthly_rate", {"description": "Prix mensuel de référence barré (marketing). Le montant facturé reste monthly_rate. Vide/≤ = aucun barré."}),