Просмотр исходного кода

Add "Bar Cost" column to GK account CSV export

Alan Lam 2 лет назад
Родитель
Сommit
d5a3f2c10f

+ 2 - 0
template_processing/age_verification_greene_king/project_account_csv.php

@@ -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);
 }