|
@@ -17,6 +17,7 @@ $field_names = [
|
|
|
"Date",
|
|
"Date",
|
|
|
"Test ID",
|
|
"Test ID",
|
|
|
"Test Cost",
|
|
"Test Cost",
|
|
|
|
|
+ "Play Cost",
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
fputcsv($handle, $field_names);
|
|
fputcsv($handle, $field_names);
|
|
@@ -25,6 +26,8 @@ foreach($tests as $test) {
|
|
|
$location = $test->getLocation();
|
|
$location = $test->getLocation();
|
|
|
$project = $test->getProject();
|
|
$project = $test->getProject();
|
|
|
|
|
|
|
|
|
|
+ $values = $test->getValues(true);
|
|
|
|
|
+
|
|
|
$output = [];
|
|
$output = [];
|
|
|
$output[] = $location->internal_id;
|
|
$output[] = $location->internal_id;
|
|
|
$output[] = $location->name;
|
|
$output[] = $location->name;
|
|
@@ -32,6 +35,7 @@ foreach($tests as $test) {
|
|
|
$output[] = $test->getDateTimeStart()->format("d/m/Y");
|
|
$output[] = $test->getDateTimeStart()->format("d/m/Y");
|
|
|
$output[] = $test->id;
|
|
$output[] = $test->id;
|
|
|
$output[] = $test->getCustomerFee();
|
|
$output[] = $test->getCustomerFee();
|
|
|
|
|
+ $output[] = bcadd($values["play_spent"] ?? "0.00", 0, 2);
|
|
|
|
|
|
|
|
fputcsv($handle, $output);
|
|
fputcsv($handle, $output);
|
|
|
}
|
|
}
|