GUI Kostenpositionen nach dem Speichern anzeigen
This commit is contained in:
1 parent
4758aecec2
commit
de10e37a0c
2 files changed
+12
-4
No files matched your search
@@ -974,6 +974,14 @@ function market_management_get_occurrence(PDO $pdo, int $occurrenceId, bool $inc
|
||||
);
|
||||
$costs->execute([':occurrence_id' => $occurrenceId]);
|
||||
$occurrence['cost_items'] = $costs->fetchAll();
|
||||
$occurrence['cost_items_text'] = null;
|
||||
foreach ($occurrence['cost_items'] as $costItem) {
|
||||
$description = trim((string) ($costItem['description'] ?? ''));
|
||||
if ($description !== '') {
|
||||
$occurrence['cost_items_text'] = $description;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$costSummary = $pdo->prepare(
|
||||
'SELECT COALESCE(SUM(gross_amount), 0) AS gross_amount,
|
||||
COALESCE(SUM(net_amount), 0) AS net_amount,
|
||||
|
||||
Reference in new issue
Block a user