Selaa lähdekoodia

Use rpm strategy and amount from the caremonth instead of pro

Vijayakrishnan 3 vuotta sitten
vanhempi
commit
8788eff008
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Models/CareMonth.php

+ 2 - 2
app/Models/CareMonth.php

@@ -146,7 +146,7 @@ class CareMonth extends Model
     public function calculateBillabilityForMcp(){
 
 
-        $strategy = $this->mcp->mcp_rpm_payment_strategy; 
+        $strategy = $this->mcp_rpm_payment_strategy;
         if(!$strategy){
             return [
                 'billable' => false, 
@@ -154,7 +154,7 @@ class CareMonth extends Model
             ];
         }
         
-        $mcpRpmPaymentAmount =  $this->mcp->mcp_rpm_payment_amount;
+        $mcpRpmPaymentAmount =  $this->mcp_rpm_payment_amount;
         $has16PlusDays = $this->number_of_days_with_remote_measurements >= 16;
         $hasMcpBilled20Minutes = $this->rm_total_time_in_seconds_by_mcp >= 1200;
         $hasMcpInteracted = $this->has_mcp_interacted_with_client_about_rm;