This commit is contained in:
Luca Haid
2025-05-05 12:16:24 +02:00
parent a33a4e861b
commit 4c4dc1b00c
3 changed files with 6 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ 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'] * 2,
'amount' => $hoursEntry['kilometerCount'],
'price' => 2 * $hoursEntry['kilometerCount'] ?? 0,
];
} else if (!empty($hoursEntry['carId_text']) && $hoursEntry['kilometerCount'] > 0) {
@@ -262,7 +262,7 @@ class WarehouseShippingNoteController extends TTCrud {
'articleTitle' => "Fahrkostenpauschale (hin und retour)",
'articleDescription' => "Datum: ". date("d.m.Y", strtotime($hoursEntry['date'])) . " | Fahrzeug: " . $hoursEntry['carId_text'],
'articleUnit' => 'km',
'amount' => $hoursEntry['kilometerCount'] * 2,
'amount' => $hoursEntry['kilometerCount'],
'price' => 2 * $hoursEntry['kilometerCount'] ?? 0,
];
}