Browse Source

Remove "please contact billing" from memo default if individual

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
63fdf2229b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      resources/views/app/generic-bills/inline.blade.php

+ 2 - 2
resources/views/app/generic-bills/inline.blade.php

@@ -142,7 +142,7 @@ $genericBills = genericBills($pro, @$patient, @$entityType, @$entityUid);
                                         <p>Update Cancellation Memo</p>
                                         <div class="mb-2">
                                             <textarea class="text form-control form-control-sm" name="cancellationMemo"
-                                                      placeholder="">{{$bill->cancellation_memo ? $bill->cancellation_memo : 'Please contact billing.'}}</textarea>
+                                                      placeholder="">{{$bill->cancellation_memo ? $bill->cancellation_memo : ($pro->pro_type === 'ADMIN' ? 'Please contact billing.' : '')}}</textarea>
                                         </div>
                                         <div>
                                             <button class="btn btn-success btn-sm" submit>Submit</button>
@@ -158,7 +158,7 @@ $genericBills = genericBills($pro, @$patient, @$entityType, @$entityUid);
                                         <p class="mb-2">Cancel this bill?</p>
                                         <div class="mb-2">
                                             <label class="mb-1 text-secondary">Cancellation Memo</label>
-                                            <textarea type="text" name="memo" placeholder="Memo" class="form-control form-control-sm">Please contact billing.</textarea>
+                                            <textarea type="text" name="memo" placeholder="Memo" class="form-control form-control-sm">@if($pro->pro_type === 'ADMIN')Please contact billing.@endif</textarea>
                                         </div>
                                         <div class="mb-0">
                                             <button class="btn btn-danger btn-sm" submit>Yes</button>