Browse Source

Add "Brand" to CSV exports

Alan Lam 1 year ago
parent
commit
03845dcf69

+ 2 - 1
template_processing/age_verification/project_csv.php

@@ -13,7 +13,7 @@ $field_names = [
 	"Project ID", "Project Name",
 	"Template Name",
 	"Test ID", "Test Status", "Test Void", "Gaming Void", "Alcohol Void", "Test Result",
-	"Location Name", "Legal Entity", "Address", "Email", "Phone", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Legal Entity", "Address", "Email", "Phone", "Brand", "Region", "Internal ID", "Area Manager",
 	"Tester Age", "Tester Gender", "Travel Costs",
 
 	"Date", "Start Time", "End Time", "Duration",
@@ -97,6 +97,7 @@ foreach($tests as $test) {
 	$output[] = $location->getDisplayAddress();
 	$output[] = $location->email;
 	$output[] = $location->phone;
+	$output[] = $location->brand;
 	$output[] = $location->region;
 	$output[] = $location->internal_id;
 	$output[] = $location->area_manager;

+ 3 - 2
template_processing/mystery_shop/project_csv.php

@@ -4,7 +4,7 @@ $field_names = [
 	"Project ID", "Project Name",
 	"Template Name",
 	"Test ID", "Test Status",
-	"Location Name", "Legal Entity", "Address", "Email", "Phone", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Legal Entity", "Address", "Email", "Phone", "Brand", "Region", "Internal ID", "Area Manager",
 	"Tester Age", "Tester Gender", "Travel Costs",
 
 	"Date", "Start Time", "End Time", "Duration",
@@ -64,6 +64,7 @@ foreach($tests as $test) {
 	$output[] = $location->getDisplayAddress();
 	$output[] = $location->email;
 	$output[] = $location->phone;
+	$output[] = $location->brand;
 	$output[] = $location->region;
 	$output[] = $location->internal_id;
 	$output[] = $location->area_manager;
@@ -88,4 +89,4 @@ foreach($tests as $test) {
 	}
 
 	fputcsv($handle, $output);
-}
+}