瀏覽代碼

RPM matrix mcp/rmm/rme - no bill/sign

Vijayakrishnan 3 年之前
父節點
當前提交
be991514b9

+ 3 - 2
app/Helpers/helpers.php

@@ -580,8 +580,9 @@ if(!function_exists('year_part_from_date')) {
 }
 
 if(!function_exists('friendly_money')){
-    function friendly_money($value){
-        return number_format((float)$value, 2, '.', '');
+    function friendly_money($value, $decimals = 2) {
+        // if($decimals === 0) return intval($value);
+        return number_format((float)$value, $decimals, '.', '');
     }
 }
 

+ 9 - 2
resources/views/app/practice-management/remote-monitoring-row-markup-by-pro-type.blade.php

@@ -184,7 +184,7 @@
             <div class="d-flex align-items-baseline">
                 <i class="mr-1 text-sm fa {{$iPatient->number_of_days_with_remote_measurements >= 16 ? 'fa-check text-success' : 'fa-exclamation-triangle text-danger on-hover-opaque'}}"></i>
                 <span class="sort-data">{{$iPatient->number_of_days_with_remote_measurements ?: 0}}</span>
-                @if(!request()->input('not-enrolled'))
+                {{--@if(!request()->input('not-enrolled'))
                     @if($iPatient->number_of_days_with_remote_measurements < 16)
                         <div moe relative class="ml-2">
                             <a href="#" start show class="text-sm">SMS</a>
@@ -205,7 +205,7 @@
                             </form>
                         </div>
                     @endif
-                @endif
+                @endif--}}
             </div>
         </td>
     @endif
@@ -236,7 +236,9 @@
             @if($lastVisitWithin90Days && $iPatient->has_mcp_interacted_with_client_about_rm && $iPatient->number_of_days_with_remote_measurements >= 16 && $iPatient->rm_total_time_in_seconds_by_mcp >= 1200)
                 <span class="text-success font-weight-bold">
                     <i class="fa fa-check"></i>
+                    ${{friendly_money($pro->mcp_rpm_payment_amount, 0)}}
                 </span>
+                {{--
                 @if($iPatient->mcp_rm_generic_bill_uid)
                     ${{friendly_money($iPatient->mcp_rm_generic_bill_expected_payment_amount)}}
                     @if($iPatient->mcp_rm_generic_bill_signed)
@@ -269,6 +271,7 @@
                         </form>
                     </div>
                 @endif
+                --}}
             @else
                 <span class="text-danger font-weight-normal">
                     No
@@ -279,6 +282,8 @@
                 <span class="text-success font-weight-bold">
                     <i class="fa fa-check"></i>
                 </span>
+                ${{friendly_money($pro->rmm_payment_amount, 0)}}
+                {{--
                 @if($iPatient->rmm_rm_generic_bill_uid)
                     ${{friendly_money($iPatient->rmm_rm_generic_bill_expected_payment_amount)}}
                     @if($iPatient->rmm_rm_generic_bill_signed)
@@ -311,6 +316,7 @@
                         </form>
                     </div>
                 @endif
+                --}}
             @else
                 <span class="text-danger font-weight-normal">
                     No
@@ -321,6 +327,7 @@
                 <span class="text-success font-weight-bold">
                     <i class="fa fa-check"></i>
                 </span>
+                ${{friendly_money($pro->rme_payment_amount, 0)}}
             @else
                 <span class="text-danger font-weight-normal">
                     No