From 4c3660c9f930bedb0279f0e982fcaefdea52f73f Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Fri, 3 Apr 2026 17:48:06 +0300 Subject: [PATCH] Add how many came include company --- frontend/src/components/GuestList.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/components/GuestList.jsx b/frontend/src/components/GuestList.jsx index c159d20..38fb862 100644 --- a/frontend/src/components/GuestList.jsx +++ b/frontend/src/components/GuestList.jsx @@ -374,6 +374,9 @@ function GuestList({ eventId, onBack, onShowMembers }) { confirmed: guests.filter(g => g.rsvp_status === 'confirmed').length, declined: guests.filter(g => g.rsvp_status === 'declined').length, invited: guests.filter(g => g.rsvp_status === 'invited').length, + totalCompany: guests + .filter(g => g.rsvp_status === 'confirmed') + .reduce((sum, g) => sum + (g.companion_count > 0 ? g.companion_count : 1), 0), } const exportToExcel = () => { @@ -523,6 +526,10 @@ function GuestList({ eventId, onBack, onShowMembers }) { {he.invited} {stats.invited} +
+ סה"כ מגיעים + {stats.totalCompany} +
{showColumnSettings && (