Jelajahi Sumber

Fixed logic issue

Samson Mutunga 1 tahun lalu
induk
melakukan
aa9650eda2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Helpers/helpers.php

+ 1 - 1
app/Helpers/helpers.php

@@ -1205,7 +1205,7 @@ if(!function_exists('determineTier')) {
 			$tier = 'TIER_1';
 		}
 
-		if($careMonth->number_of_days_with_remote_measurements >= 16 && $careMonth->rm_total_time_in_seconds >= 20*60 && $careMonth->has_mcp_interacted_with_client_about_rm) {
+		if($careMonth->number_of_days_with_remote_measurements >= 16 && $careMonth->rm_total_time_in_seconds_by_mcp >= 20*60 && $careMonth->has_mcp_interacted_with_client_about_rm) {
 			$tier = 'TIER_2';
 		}
         return $tier;