1
0
Эх сурвалжийг харах

Update CSV exports to be aware of custom labels for regions, brand and area managers

Alan Lam 1 жил өмнө
parent
commit
e142f004a2

+ 7 - 1
template_processing/age_verification/project_csv.php

@@ -9,11 +9,17 @@
 
 
 $config = $template->getConfiguration();
 $config = $template->getConfiguration();
 
 
+$customer = $template->getCustomer();
+
+$brand_label = $customer->getBrandLabel(1);
+$region_label = $customer->getRegionLabel(1);
+$area_manager_label = $customer->getAreaManagerLabel(1);
+
 $field_names = [
 $field_names = [
 	"Project ID", "Project Name",
 	"Project ID", "Project Name",
 	"Template Name",
 	"Template Name",
 	"Test ID", "Test Status", "Test Void", "Gaming Void", "Alcohol Void", "Test Result",
 	"Test ID", "Test Status", "Test Void", "Gaming Void", "Alcohol Void", "Test Result",
-	"Location Name", "Legal Entity", "Address", "Email", "Phone", "Brand", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Legal Entity", "Address", "Email", "Phone", $brand_label, $region_label, "Internal ID", $area_manager_label,
 	"Tester Age", "Tester Gender", "Travel Costs",
 	"Tester Age", "Tester Gender", "Travel Costs",
 
 
 	"Date", "Start Time", "End Time", "Duration",
 	"Date", "Start Time", "End Time", "Duration",

+ 7 - 1
template_processing/age_verification/project_customer_csv.php

@@ -10,9 +10,15 @@
 
 
 $config = $template->getConfiguration();
 $config = $template->getConfiguration();
 
 
+$customer = $template->getCustomer();
+
+$brand_label = $customer->getBrandLabel(1);
+$region_label = $customer->getRegionLabel(1);
+$area_manager_label = $customer->getAreaManagerLabel(1);
+
 $field_names = [
 $field_names = [
 	"Test Result", "Test Void",
 	"Test Result", "Test Void",
-	"Location Name", "Address", "Brand", "Region", "Internal ID", "Area Manager",
+	"Location Name", "Address", $brand_label, $region_label, "Internal ID", $area_manager_label,
 
 
 	"Date",
 	"Date",
 	"All-Time Test Count", "Current Year Period Test Count"
 	"All-Time Test Count", "Current Year Period Test Count"