mod price and date in pdf output
This commit is contained in:
parent
398294df42
commit
6600766724
@ -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(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user