Historic bill fix decimal

This commit is contained in:
Luca Haid
2025-01-21 10:57:23 +00:00
parent 42a10a5c17
commit 29416611bc

View File

@@ -286,8 +286,8 @@ class WarehouseShippingNoteController extends TTCrud {
'articleTitle' => "Fahrkostenpauschale (hin und retour)",
'articleDescription' => "Datum: ". date("d.m.Y", strtotime($hoursEntry['date'])) . " | Fahrzeug: " . TimerecordingCarModel::getOne($hoursEntry['carId'])->number_plate,
'articleUnit' => 'Km',
'amount' => $hoursEntry['kilometerCount'],
'price' => 1 * $hoursEntry['kilometerCount'] ?? 0,
'amount' => $hoursEntry['kilometerCount'] * 2,
'price' => 2 * $hoursEntry['kilometerCount'] ?? 0,
];
}