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

Logic fix: Note->overallStatus()

Vijayakrishnan 3 жил өмнө
parent
commit
55ab4b16a1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      app/Models/Note.php

+ 1 - 1
app/Models/Note.php

@@ -50,7 +50,7 @@ class Note extends Model
         $status = 'New';
         if ($this->is_cancelled) $status = 'Cancelled';
         else {
-            if ($this->hasTreatmentServicesBillByHCP()) $status = 'Billed';
+            if ($this->is_billing_marked_done) $status = 'Billed';
             else if ($this->is_signed_by_hcp) $status = 'Signed';
         }
         return $status . ' **';