Browse Source

AccountingItem integration for bills

Vijayakrishnan Krishnan 16 hours ago
parent
commit
df182bdb6b

+ 4 - 0
app/Http/Controllers/AdminController.php

@@ -900,4 +900,8 @@ class AdminController extends Controller
 
 
         return view('app.admin.patients-notes-points-filter', compact('records', 'filters'));
         return view('app.admin.patients-notes-points-filter', compact('records', 'filters'));
     }
     }
+
+    public function manageAccountingItemsForBill(Request $request, Bill $bill) {
+        return view('app.admin.accounting-items-for-bill', ['bill' => $bill]);
+    }
 }
 }

+ 3 - 0
resources/views/app/admin/accounting-items-for-bill.blade.php

@@ -0,0 +1,3 @@
+<div class="popup-content-container p-3">
+    @include('app.patient.partials.accounting-items', ['entityType' => 'Bill', 'entityUid' => $bill->uid])
+</div>

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

@@ -316,6 +316,15 @@ $genericBills = genericBills($pro, @$patient, @$careMonth, @$entityType, @$entit
                                     @endif
                                     @endif
                                 @endif
                                 @endif
                             </div>
                             </div>
+                            <div>
+                                <a href="{{ route('manage-accounting-items-for-bill', ['bill' => $bill]) }}"
+                                   native target="_blank"
+                                   open-in-stag-popup
+                                   popup-style="tall"
+                                   title="Manage Accounting Items">
+                                    Manage Accounting Items
+                                </a>
+                            </div>
                         </td>
                         </td>
                         @endif
                         @endif
                     </tr>
                     </tr>

+ 9 - 0
resources/views/app/patient/note/partials/cpp-bills-claims-container.blade.php

@@ -571,6 +571,15 @@
                                 @endif
                                 @endif
                             @endif
                             @endif
                         </div>
                         </div>
+                        <div>
+                            <a href="{{ route('manage-accounting-items-for-bill', ['bill' => $bill]) }}"
+                               native target="_blank"
+                               open-in-stag-popup
+                               popup-style="tall"
+                               title="Manage Accounting Items">
+                                Manage Accounting Items
+                            </a>
+                        </div>
                     </td>
                     </td>
                 </tr>
                 </tr>
             @endforeach
             @endforeach

+ 2 - 0
routes/web.php

@@ -701,6 +701,8 @@ Route::middleware('pro.auth')->group(function () {
     Route::get('/manage-ccm/{patient}', 'PatientController@manageCCM')->name('manage-ccm');
     Route::get('/manage-ccm/{patient}', 'PatientController@manageCCM')->name('manage-ccm');
     Route::get('/manage-rpm/{patient}', 'PatientController@manageRPM')->name('manage-rpm');
     Route::get('/manage-rpm/{patient}', 'PatientController@manageRPM')->name('manage-rpm');
 
 
+    Route::get('/manage-accounting-items-for-bill/{bill}', 'AdminController@manageAccountingItemsForBill')->name('manage-accounting-items-for-bill');
+
     Route::get('/protocol-builder/{patient}', 'PatientController@protocolBuilder')->name('protocol-builder');
     Route::get('/protocol-builder/{patient}', 'PatientController@protocolBuilder')->name('protocol-builder');
     Route::get('/point/edit-hpi/{note}/{point}', 'NoteController@editHPI')->name('point-edit-hpi');
     Route::get('/point/edit-hpi/{note}/{point}', 'NoteController@editHPI')->name('point-edit-hpi');
     Route::get('/point/hpi-log/{point}', 'NoteController@hpiLog')->name('point-hpi-log');
     Route::get('/point/hpi-log/{point}', 'NoteController@hpiLog')->name('point-hpi-log');