Răsfoiți Sursa

fixed claim summary

= 4 ani în urmă
părinte
comite
8a0ab8f9e2

+ 3 - 3
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -122,15 +122,15 @@
                                 </a>
                                 </a>
                             </td>
                             </td>
                             <td>{{$patient->mcp}}</td>
                             <td>{{$patient->mcp}}</td>
-                            <td>{{$patient->medicare_advantage_plan?$patient->medicare_advantage_plan:'Manual: '.$patient->payer_name}}</td>
+                            <td>{{$patient->is_part_b_primary == 'YES'?'Medicare Part B':($patient->medicare_advantage_plan?$patient->medicare_advantage_plan:'Manual: '.$patient->payer_name)}}</td>
                             <td>{{$patient->notes_without_billing_closed}}</td>
                             <td>{{$patient->notes_without_billing_closed}}</td>
                             <td>{{$patient->notes_without_claiming_closed}}</td>
                             <td>{{$patient->notes_without_claiming_closed}}</td>
                             <td>{{$patient->notes_total}}</td>
                             <td>{{$patient->notes_total}}</td>
                             <td>
                             <td>
                                 <div class="d-flex align-items-center">
                                 <div class="d-flex align-items-center">
-                                    <span class="fill-percent-value">{{round(($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total, 1)}}%</span>
+                                    <span class="fill-percent-value">{{$patient->notes_total? round(($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total, 1): 0}}%</span>
                                     <div class="flex-grow-1 position-relative fill-bar">
                                     <div class="flex-grow-1 position-relative fill-bar">
-                                        <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total}}%"></div>
+                                        <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$patient->notes_total?($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total:0}}%"></div>
                                     </div>
                                     </div>
                                 </div>
                                 </div>
                             </td>
                             </td>