update detail hapus buku
penambahan history penagihan, history jaminan, history pembayaran
This commit is contained in:
parent
c7981a7c31
commit
cbb487c572
@ -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)
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user