From a4f82359c7aca0594f05cae0c855a7bbe73c3510 Mon Sep 17 00:00:00 2001 From: louispaulb Date: Thu, 4 Jun 2026 15:38:04 -0400 Subject: [PATCH] Shift Template: champ on_call (quart de garde, non offert au booking) 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 891278b..9198666 100644 --- a/frappe-setup/setup_dispatch_custom_fields.py +++ b/frappe-setup/setup_dispatch_custom_fields.py @@ -27,6 +27,9 @@ FIELDS = [ ("Dispatch Technician", "cost_salary_h", "Salaire horaire ($/h)", "Float", None, "0", "efficiency", {}), ("Dispatch Technician", "cost_charges_pct", "Charges sociales (%)", "Float", None, "0", "cost_salary_h", {}), ("Dispatch Technician", "cost_other_h", "Autres coûts/h ($ véhicule, outils, frais)", "Float", None, "0", "cost_charges_pct", {}), + # ── Shift Template : quart de garde (sur appel) ── + ("Shift Template", "on_call", "Garde (sur appel — non offert au booking)", "Check", None, "0", "color", + {"description": "Quart de garde/urgence : capacité de réserve. NON offert au booking client et exclu du calcul de capacité offrable. S'affiche en bande hachurée sur la timeline."}), # ── Dispatch Job : prise de RDV ── ("Dispatch Job", "booking_prefs", "Préférences RDV (JSON)", "Small Text", None, None, "status", {}), ("Dispatch Job", "booking_status", "Statut RDV", "Select", "À planifier\nProposé\nConfirmé\nAnnulé\nÀ reporter", "À planifier", "booking_prefs", {}),