|
|
@@ -18,6 +18,7 @@ $field_names = [
|
|
|
"Test ID",
|
|
|
"Test Cost",
|
|
|
"Play Cost",
|
|
|
+ "Bar Cost",
|
|
|
];
|
|
|
|
|
|
fputcsv($handle, $field_names);
|
|
|
@@ -36,6 +37,7 @@ foreach($tests as $test) {
|
|
|
$output[] = $test->id;
|
|
|
$output[] = $test->getCustomerFee();
|
|
|
$output[] = bcadd($values["play_spent"] ?? "0.00", 0, 2);
|
|
|
+ $output[] = bcadd($values["bar_expenditure"] ?? "0.00", 0, 2);
|
|
|
|
|
|
fputcsv($handle, $output);
|
|
|
}
|