mod price and date in pdf output

This commit is contained in:
atseirjo 2025-08-28 09:09:54 +02:00
parent 398294df42
commit 6600766724

View File

@ -54,11 +54,12 @@ class PrintController extends GetxController {
pw.TextStyle(fontWeight: pw.FontWeight.bold, font: font), pw.TextStyle(fontWeight: pw.FontWeight.bold, font: font),
data: tankungen.map((item) { data: tankungen.map((item) {
var modDate = item.date.substring(5); var modDate = item.date.substring(5);
var modPreisPerLiter = item.pricePerLiter.padRight(5, '0');
return [ return [
modDate, modDate,
item.location, item.location,
item.liters, item.liters,
item.pricePerLiter, modPreisPerLiter,
item.szSummePreis ?? '0.0', item.szSummePreis ?? '0.0',
]; ];
}).toList(), }).toList(),