Przeglądaj źródła

Add "Brand" to customer CSV exports

Alan Lam 1 rok temu
rodzic
commit
4707a9e996

+ 2 - 1
template_processing/age_verification/project_customer_csv.php

@@ -12,7 +12,7 @@ $config = $template->getConfiguration();
 
 $field_names = [
 	"Test Result", "Test Void",
-	"Location Name", "Address", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Address", "Brand", "Region", "Internal ID", "Area Manager",
 
 	"Date",
 	"All-Time Test Count", "Current Year Period Test Count"
@@ -94,6 +94,7 @@ foreach($tests as $test) {
 	}
 	$output[] = $location->name;
 	$output[] = $location->getDisplayAddress();
+	$output[] = $location->brand;
 	$output[] = $location->region;
 	$output[] = $location->internal_id;
 	$output[] = $location->area_manager;

+ 2 - 2
template_processing/mystery_shop/project_customer_csv.php

@@ -3,7 +3,7 @@
 $field_names = [
 	"Project Name",
 	"Test Status",
-	"Location Name", "Address", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Address", "Brand", "Region", "Internal ID", "Area Manager",
 
 	"Date",
 ];
@@ -26,7 +26,6 @@ foreach($tests as $test) {
 	$test_end = "";
 	$test_duration = "";
 
-
 	$age = "";
 	$gender = "";
 	$travel_costs = "";
@@ -57,6 +56,7 @@ foreach($tests as $test) {
 
 	$output[] = $location->name;
 	$output[] = $location->getDisplayAddress();
+	$output[] = $location->brand;
 	$output[] = $location->region;
 	$output[] = $location->internal_id;
 	$output[] = $location->area_manager;