|
|
@@ -34,12 +34,14 @@ foreach($tests as $test) {
|
|
|
$bar_cost = bcadd($values["bar_expenditure"] ?? "0.00", 0, 2);
|
|
|
$test_and_bar_cost = bcadd($test_cost, $bar_cost, 2);
|
|
|
|
|
|
+ $dt_start = $test->getDateTimeStart();
|
|
|
+
|
|
|
$output = [];
|
|
|
$output[] = $location->internal_id;
|
|
|
$output[] = $location->name;
|
|
|
$output[] = $location->brand;
|
|
|
$output[] = $template->name;
|
|
|
- $output[] = $test->getDateTimeStart()->format("d/m/Y");
|
|
|
+ $output[] = $dt_start ? $dt_start->format("d/m/Y") : "";
|
|
|
$output[] = $test->id;
|
|
|
$output[] = $test_cost;
|
|
|
$output[] = $bar_cost;
|