diff --git a/lib/Views/commandManagement.dart b/lib/Views/commandManagement.dart index 9949c66..ae54868 100644 --- a/lib/Views/commandManagement.dart +++ b/lib/Views/commandManagement.dart @@ -251,7 +251,9 @@ Future buildIconGift() async { } // Bon de livraison============================================== - + bool verifAdmin() { + return userController.role == 'Super Admin'; + } Future _generateBonLivraison(Commande commande) async { final details = await _database.getDetailsCommande(commande.id!); final client = await _database.getClientById(commande.clientId); @@ -372,7 +374,7 @@ Future _generateBonLivraison(Commande commande) async { pw.Text('📞 033 37 808 18', style: tinyTextStyle), pw.Text('🌐 www.guycom.mg', style: tinyTextStyle), pw.SizedBox(height: 2), - pw.Text('NIF: 1026/GC78-20-02-22', + pw.Text('NIF: 4000106673 - STAT 95210 11 2017 1 003651', style: pw.TextStyle(fontSize: 7, fontWeight: pw.FontWeight.bold)), ], ),