Feature/shipping note refinements

This commit is contained in:
Luca Haid
2024-11-13 12:28:45 +00:00
parent 4ea9a5aea0
commit c3bf25f668

View File

@@ -244,7 +244,7 @@ class WarehouseShippingNoteController extends TTCrud {
foreach ($hoursEntries as $hoursEntry) {
$positions[] = [
'articleTitle' => "Arbeitsstunden",
'articleDescription' => $hoursEntry['note'],
'articleDescription' => "Mitarbeiter: " . UserModel::getOne($hoursEntry['userId'])->name,
'articleUnit' => 'Std.',
'amount' => $hoursEntry['hourCount'],
'price' => $hoursEntry['hourlyPrice'] * $hoursEntry['hourCount'] ?? 0,