|
@@ -344,9 +344,9 @@ class Pro extends Model
|
|
|
}
|
|
|
|
|
|
function get_notes_pending_signature_count_as_mcp() {
|
|
|
- $query = Client::whereNull('shadow_pro_id');
|
|
|
- return $query->where('mcp_pro_id', $this->id)
|
|
|
- ->where('has_mcp_done_onboarding_visit', '!=', 'YES')
|
|
|
+ return Note::where('hcp_pro_id', $this->id)
|
|
|
+ ->where('is_cancelled', '<>', true)
|
|
|
+ ->where('is_signed_by_hcp', '<>', true)
|
|
|
->count();
|
|
|
}
|
|
|
|