add ListView Summs Liter Price per Year

This commit is contained in:
atseirjo
2025-08-25 14:22:10 +02:00
parent c183d84a86
commit 085a7648f3
6 changed files with 92 additions and 39 deletions

View File

@@ -10,6 +10,7 @@ class AppWriteTankModel {
String? imageFileName;
String? imageFileUrl;
int? mnIndexCount;
String? szSummePreis;
AppWriteTankModel({
required this.documentId,
@@ -22,7 +23,9 @@ class AppWriteTankModel {
this.imageFileId,
this.imageFileName,
this.imageFileUrl,
});
}):szSummePreis = (double.tryParse(liters) != null && double.tryParse(pricePerLiter) != null)
? (double.parse(liters) * double.parse(pricePerLiter)).toStringAsFixed(2)
: null;
factory AppWriteTankModel.fromMap(Map<String, dynamic> map) {
return AppWriteTankModel(