@happychef/algorithm 1.2.27 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nul CHANGED
@@ -1,13 +0,0 @@
1
-
2
- Envoi d'une requ�te 'Ping' 127.0.0.1 avec 32 octets de donn�es�:
3
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
4
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
5
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
6
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
7
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
8
- R�ponse de 127.0.0.1�: octets=32 temps<1ms TTL=128
9
-
10
- Statistiques Ping pour 127.0.0.1:
11
- Paquets�: envoy�s = 6, re�us = 6, perdus = 0 (perte 0%),
12
- Dur�e approximative des boucles en millisecondes :
13
- Minimum = 0ms, Maximum = 0ms, Moyenne = 0ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happychef/algorithm",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "Restaurant and reservation algorithm utilities",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -503,7 +503,7 @@ function isTimeAvailableSync(restaurantData, date, time, guests, reservations, s
503
503
  } else {
504
504
  // ... simulation log ...
505
505
  console.log(`[isTimeAvailableSync] No actual table data, simulating assignment for reservation`);
506
- assignedTables = assignTablesForGivenTime(restaurantData, r.date, r.time, r.guests, tableOccupiedSlots, null, rDuration); // Simulation
506
+ assignedTables = assignTablesForGivenTime(restaurantData, r.date, r.time, r.guests, tableOccupiedSlots, r.zitplaats || null, rDuration); // Simulation - use reservation's own zitplaats
507
507
  }
508
508
 
509
509
  // Update the occupancy map based on the actual or simulated assignment
@@ -679,9 +679,9 @@ function getAvailableTablesForTime(restaurantData, date, time, guests, reservati
679
679
  if (actualTables.length > 0) {
680
680
  assignedTables = actualTables;
681
681
  } else {
682
- assignedTables = assignTablesForGivenTime(restaurantData, r.date, r.time, r.guests, tableOccupiedSlots, null, rDuration);
682
+ assignedTables = assignTablesForGivenTime(restaurantData, r.date, r.time, r.guests, tableOccupiedSlots, r.zitplaats || null, rDuration);
683
683
  }
684
-
684
+
685
685
  if (assignedTables.length > 0) {
686
686
  const rSlots = computeRequiredSlots(r.time, rDuration, intervalReservatie);
687
687
  if (!rSlots || rSlots.length === 0) continue;