|
|
|
@ -636,7 +636,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
if (detail.estCadeau) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 8, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -655,7 +655,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
), |
|
|
|
] else if (detail.aRemise) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 8, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -664,7 +664,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
) |
|
|
|
), |
|
|
|
pw.Text( |
|
|
|
'${(detail.prixFinal / detail.quantite).toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal / detail.quantite)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 10, |
|
|
|
color: PdfColors.orange700, |
|
|
|
@ -709,7 +709,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
), |
|
|
|
] else if (detail.aRemise) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.sousTotal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.sousTotal)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 8, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -718,7 +718,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
) |
|
|
|
), |
|
|
|
pw.Text( |
|
|
|
'${detail.prixFinal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 10, |
|
|
|
fontWeight: pw.FontWeight.bold, |
|
|
|
@ -727,7 +727,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
), |
|
|
|
] else |
|
|
|
pw.Text( |
|
|
|
'${detail.prixFinal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal)}', |
|
|
|
style: smallTextStyle |
|
|
|
), |
|
|
|
], |
|
|
|
@ -759,7 +759,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
pw.Text('SOUS-TOTAL:', style: smallTextStyle), |
|
|
|
pw.SizedBox(width: 10), |
|
|
|
pw.Text('${sousTotal.toStringAsFixed(0)}', style: smallTextStyle), |
|
|
|
pw.Text('${NumberFormat('#,##0', 'fr_FR').format(sousTotal)}', style: smallTextStyle), |
|
|
|
], |
|
|
|
), |
|
|
|
pw.SizedBox(height: 2), |
|
|
|
@ -771,7 +771,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
pw.Text('REMISES:', style: pw.TextStyle(color: PdfColors.orange, fontSize: 10, font: regularFont)), |
|
|
|
pw.SizedBox(width: 10), |
|
|
|
pw.Text('-${totalRemises.toStringAsFixed(0)}', style: pw.TextStyle(color: PdfColors.orange, fontSize: 10, font: regularFont)), |
|
|
|
pw.Text('-${NumberFormat('#,##0', 'fr_FR').format(totalRemises)}', style: pw.TextStyle(color: PdfColors.orange, fontSize: 10, font: regularFont)), |
|
|
|
], |
|
|
|
), |
|
|
|
pw.SizedBox(height: 2), |
|
|
|
@ -783,7 +783,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
pw.Text('CADEAUX ($nombreCadeaux):', style: pw.TextStyle(color: PdfColors.green700, fontSize: 10, font: regularFont)), |
|
|
|
pw.SizedBox(width: 10), |
|
|
|
pw.Text('-${totalCadeaux.toStringAsFixed(0)}', style: pw.TextStyle(color: PdfColors.green700, fontSize: 10, font: regularFont)), |
|
|
|
pw.Text('-${NumberFormat('#,##0', 'fr_FR').format(totalCadeaux)}', style: pw.TextStyle(color: PdfColors.green700, fontSize: 10, font: regularFont)), |
|
|
|
], |
|
|
|
), |
|
|
|
pw.SizedBox(height: 2), |
|
|
|
@ -1197,7 +1197,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
pw.Container( |
|
|
|
width: 180, height: 1, color: PdfColors.black), |
|
|
|
pw.SizedBox(height: 4), |
|
|
|
pw.Text('${client?.nom} \n ${client?.prenom}', |
|
|
|
pw.Text('${client?.nom} ${client?.prenom}', |
|
|
|
style: boldTextStyle), |
|
|
|
pw.SizedBox(height: 4), |
|
|
|
pw.Text(client?.telephone ?? 'Non spécifié', |
|
|
|
@ -1357,7 +1357,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
if (detail.estCadeau) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 7, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -1373,19 +1373,19 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
detail.prixUnitaire != |
|
|
|
detail.sousTotal / detail.quantite) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 7, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
color: PdfColors.grey600, |
|
|
|
)), |
|
|
|
pw.Text( |
|
|
|
'${(detail.prixFinal / detail.quantite).toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal / detail.quantite)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 9, color: PdfColors.orange)), |
|
|
|
] else |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: normalTextStyle), |
|
|
|
], |
|
|
|
), |
|
|
|
@ -1419,7 +1419,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
if (detail.estCadeau) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.sousTotal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.sousTotal)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 7, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -1434,20 +1434,20 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
] else if (detail.aRemise && |
|
|
|
detail.sousTotal != detail.prixFinal) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.sousTotal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.sousTotal)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 7, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
color: PdfColors.grey600, |
|
|
|
)), |
|
|
|
pw.Text( |
|
|
|
'${detail.prixFinal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 9, |
|
|
|
fontWeight: pw.FontWeight.bold)), |
|
|
|
] else |
|
|
|
pw.Text( |
|
|
|
'${detail.prixFinal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal)}', |
|
|
|
style: normalTextStyle), |
|
|
|
], |
|
|
|
), |
|
|
|
@ -1475,7 +1475,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
pw.SizedBox(width: 20), |
|
|
|
pw.Container( |
|
|
|
width: 80, |
|
|
|
child: pw.Text('${sousTotal.toStringAsFixed(0)}', |
|
|
|
child: pw.Text('${NumberFormat('#,##0', 'fr_FR').format(sousTotal)}', |
|
|
|
style: normalTextStyle, |
|
|
|
textAlign: pw.TextAlign.right), |
|
|
|
), |
|
|
|
@ -1494,7 +1494,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
pw.Container( |
|
|
|
width: 80, |
|
|
|
child: pw.Text( |
|
|
|
'-${totalRemises.toStringAsFixed(0)}', |
|
|
|
'-${NumberFormat('#,##0', 'fr_FR').format(totalRemises)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
color: PdfColors.orange, |
|
|
|
fontWeight: pw.FontWeight.bold, |
|
|
|
@ -1516,7 +1516,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
pw.Container( |
|
|
|
width: 80, |
|
|
|
child: pw.Text( |
|
|
|
'-${totalCadeaux.toStringAsFixed(0)}', |
|
|
|
'-${NumberFormat('#,##0', 'fr_FR').format(totalCadeaux)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
color: PdfColors.green700, |
|
|
|
fontWeight: pw.FontWeight.bold, |
|
|
|
@ -1543,7 +1543,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
pw.Container( |
|
|
|
width: 80, |
|
|
|
child: pw.Text( |
|
|
|
'${commande.montantTotal.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(commande.montantTotal)}', |
|
|
|
style: boldTextStyle, |
|
|
|
textAlign: pw.TextAlign.right), |
|
|
|
), |
|
|
|
@ -2103,7 +2103,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
children: [ |
|
|
|
if (detail.estCadeau) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 6, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
@ -2119,18 +2119,18 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
detail.prixUnitaire != |
|
|
|
detail.prixFinal / detail.quantite) ...[ |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: pw.TextStyle( |
|
|
|
fontSize: 6, |
|
|
|
decoration: pw.TextDecoration.lineThrough, |
|
|
|
color: PdfColors.grey600, |
|
|
|
)), |
|
|
|
pw.Text( |
|
|
|
'${(detail.prixFinal / detail.quantite).toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixFinal / detail.quantite)}', |
|
|
|
style: const pw.TextStyle(fontSize: 7)), |
|
|
|
] else |
|
|
|
pw.Text( |
|
|
|
'${detail.prixUnitaire.toStringAsFixed(0)}', |
|
|
|
'${NumberFormat('#,##0', 'fr_FR').format(detail.prixUnitaire)}', |
|
|
|
style: const pw.TextStyle(fontSize: 7)), |
|
|
|
], |
|
|
|
), |
|
|
|
@ -2857,7 +2857,7 @@ class _GestionCommandesPageState extends State<GestionCommandesPage> { |
|
|
|
), |
|
|
|
const SizedBox(width: 2), |
|
|
|
Text( |
|
|
|
'-${totalRemises.toStringAsFixed(0)}', |
|
|
|
'-${NumberFormat('#,##0', 'fr_FR').format(totalRemises)}', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 10, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|