Intégration fonctionnalites V1

This commit is contained in:
bastien
2026-07-04 22:46:14 +02:00
parent bf191d6396
commit 9f352b91d2
25 changed files with 779 additions and 184 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import '../../../core/time/server_time.dart';
/// Modèle réservation de créneau machine.
class Booking {
const Booking({
@@ -21,7 +23,7 @@ class Booking {
bool get canCancel =>
(status == 'confirmed' || status == 'pending') &&
slotStart != null &&
slotStart!.isAfter(DateTime.now());
slotStart!.isAfter(ServerTime.now());
bool get canModify => canCancel;