update detail hapus buku

penambahan history penagihan, history jaminan, history pembayaran
This commit is contained in:
daengdeni 2024-04-23 11:16:58 +07:00
parent c7981a7c31
commit cbb487c572
2 changed files with 9 additions and 2 deletions

View File

@ -11,7 +11,9 @@
use Modules\Writeoff\Entities\Approval;
use Modules\Writeoff\Entities\Branch;
use Modules\Writeoff\Entities\Currency;
use Modules\Writeoff\Entities\DetailJaminan;
use Modules\Writeoff\Entities\DetailPembayaran;
use Modules\Writeoff\Entities\DetailPenagihan;
use Modules\Writeoff\Entities\FacilityType;
use Modules\Writeoff\Entities\HapusBuku;
use Modules\Writeoff\Entities\LoanType;
@ -169,7 +171,12 @@
})
->get()
->first();
return view('writeoff::pencatatan.hapus_buku.add', compact('branch', 'loan_type', 'facility_type', 'currency', 'rekening', 'totalbayar', 'hapusbuku'));
$jaminan = DetailJaminan::with('guaranteeType')->where('nomor_pinjaman', $hapusbuku->nomor_pinjaman)->get();
$bayar = DetailPembayaran::where('nomor_pinjaman', $hapusbuku->nomor_pinjaman)->get();
$penagihan = DetailPenagihan::where('nomor_pinjaman', $hapusbuku->nomor_pinjaman)->get();
return view('writeoff::pencatatan.hapus_buku.add', compact('branch', 'loan_type', 'facility_type', 'currency', 'rekening', 'totalbayar', 'hapusbuku', 'jaminan', 'bayar', 'penagihan'));
} else {
$rekening = Rekening::with('loan_type', 'debitur', 'branch', 'currency')
->where('nomor_rekening', $request->rekening)

View File

@ -31,7 +31,7 @@
Route::put('hapus-buku/{id}', 'HapusBukuController@update')->name('hapus_buku.update');
Route::get('hapus-buku/{id}', 'HapusBukuController@edit')->name('hapus_buku.edit');
Route::get('create-hapus-buku', 'HapusBukuController@create')->name('hapus_buku.create');
Route::get('form-hapus-buku', 'HapusBukuController@create')->name('hapus_buku.create');
Route::get('klaim-jamkrindo', 'KlaimJamkrindoController@index')->name('klaim_jamkrindo.index');
Route::get('subrogasi-jamkrindo', 'SubrogasiJamkrindoController@index')->name('subrogasi_jamkrindo.index');