From a77a596880507fa9e47eac22429a339dc1e3dc9b Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 1 Sep 2025 12:18:16 +0000 Subject: [PATCH] Show linkage badges on daily delivery and order items Add conditional rendering for linkage badges in `CalendarGrid.tsx` when an order has deliveries or a delivery is associated with an order. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/747GbQM --- client/src/components/CalendarGrid.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/components/CalendarGrid.tsx b/client/src/components/CalendarGrid.tsx index f71e447..918c248 100644 --- a/client/src/components/CalendarGrid.tsx +++ b/client/src/components/CalendarGrid.tsx @@ -211,6 +211,14 @@ function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrder {isOrder ? 'COMMANDE' : 'LIVRAISON'} + {/* Badge pour liaison - commandes avec livraisons ou livraisons avec commandes */} + {((isOrder && item.deliveries && item.deliveries.length > 0) || + (!isOrder && item.orderId)) && ( +