Sfoglia il codice sorgente

Fix fail count for merged counts

Alan Lam 2 anni fa
parent
commit
33d0e81c59

+ 4 - 4
template_processing/age_verification_greene_king/reports_process_test.php

@@ -147,13 +147,13 @@ if($test->void_secondary) {
 	$total_data->blendedCounts["void"]++;
 }
 else if($test->challenge_stage === 5 || $test->void_primary) {
-	$alcohol_pass = (bool) ($test_values->bar_age_verification ?? false);
-	$av_key = $alcohol_pass ? "pass" : "fail";
+	$av_pass = (bool) ($test_values->bar_age_verification ?? false);
+	$av_key = $av_pass ? "pass" : "fail";
 	$data[$key]->barAgeVerificationCounts[$av_key]++;
 	$total_data->barAgeVerificationCounts[$av_key]++;
 
-	$alcohol_purchased = (bool) ($test_values->alcohol_purchased ?? false);
-	$alcohol_key = ($alcohol_purchased === false) ? "pass" : "fail";
+	$alcohol_pass = (bool) ($test_values->alcohol_purchased ?? false);
+	$alcohol_key = ($alcohol_pass === false) ? "pass" : "fail";
 
 	$data[$key]->barCounts[$alcohol_key]++;
 	$total_data->barCounts[$alcohol_key]++;