Merge branch 'historic-bill-fix-decimal' into 'master'

Historic bill fix decimal

See merge request fronk/thetool!931
This commit is contained in:
Luca Haid
2025-01-21 10:57:23 +00:00

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,
];
}