summPrice 2decimal
This commit is contained in:
@@ -35,7 +35,7 @@ class TankGuruDirectusModel {
|
||||
if (liter != null && pricePerLiter != null) {
|
||||
double literValue = double.tryParse(liter!) ?? 0.0;
|
||||
double pricePerLiterValue = double.tryParse(pricePerLiter!) ?? 0.0;
|
||||
szPriceTotal = (literValue * pricePerLiterValue).toStringAsFixed(3);
|
||||
szPriceTotal = (literValue * pricePerLiterValue).toStringAsFixed(2);
|
||||
} else {
|
||||
szPriceTotal = '0.00';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user