fix: Récupérer l'opération active depuis la table operations

- Corrige l'erreur SQL 'Unknown column fk_operation in users'
- L'opération active est récupérée depuis operations.chk_active = 1
- Jointure avec users pour filtrer par entité de l'admin créateur
- Query: SELECT o.id FROM operations o INNER JOIN users u ON u.fk_entite = o.fk_entite WHERE u.id = ? AND o.chk_active = 1
This commit is contained in:
2026-01-26 16:57:08 +01:00
parent c24a3afe6a
commit 0687900564
3040 changed files with 77204 additions and 1578 deletions

10
app/lib/presentation/widgets/btn_passages.dart Normal file → Executable file
View File

@@ -193,7 +193,8 @@ class BtnPassages extends StatelessWidget {
Text(
total > 1 ? 'passages' : 'passage',
style: TextStyle(
fontSize: 10,
fontSize: 11,
fontWeight: FontWeight.w500,
color: Colors.grey[700],
),
textAlign: TextAlign.center,
@@ -297,7 +298,8 @@ class BtnPassages extends StatelessWidget {
child: Text(
titre,
style: const TextStyle(
fontSize: 10,
fontSize: 11,
fontWeight: FontWeight.w500,
color: Colors.white,
),
textAlign: TextAlign.center,
@@ -371,9 +373,9 @@ class BtnPassages extends StatelessWidget {
Text(
'Nouveau',
style: TextStyle(
fontSize: 10,
fontSize: 11,
fontWeight: FontWeight.w500,
color: Colors.grey[700],
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),