From 0f1f21a9663086492e9b2658ca70f1ec4a95d42e Mon Sep 17 00:00:00 2001 From: louispaulb Date: Sat, 6 Jun 2026 10:05:46 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20champ=20Dispatch=20Job.legacy=5Fdept=20?= =?UTF-8?q?(coloriage=20cartes=20par=20type,=20pont=20legacy=E2=86=92dispa?= =?UTF-8?q?tch)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- frappe-setup/setup_dispatch_custom_fields.py | 3 +++ 1 file changed, 3 insertions(+) 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é."}),