Merge branch 'pipiv2' into 'master'
Pipiv2 See merge request online-sistem1/kaunter!104
This commit is contained in:
@@ -105,955 +105,6 @@ class AliranTunaiController extends Controller
|
||||
$tuntutbaki = Http::get(config('api.url').'/api/TuntutBaki/'.$auth_user['cawangan'])->json();
|
||||
|
||||
|
||||
//******************* INITIALIZE LEJER AM START HERE****************************//
|
||||
|
||||
|
||||
$get_glcode=Http::get(config('api.url').'/api/getProduct/'. $auth_user['cawangan'])->json();
|
||||
$gl=$get_glcode[0];
|
||||
$prCode=$gl['prkod'];
|
||||
$Gl_Code=$gl['glcode'];
|
||||
|
||||
//new glcode 2021-02-22
|
||||
$GL_Code_BayaranOnline="1000/210";
|
||||
$GL_CodeUntungSebenar="1000/213";
|
||||
$GL_CodeHutangArrahn="1000/211";
|
||||
$GL_CodeHutangAkru="2000/007";
|
||||
$GL_Code_Tawarruq="1000/017";// new glcode 20210405
|
||||
$GL_Code_Untung="5000/017";//new glcode 20210405
|
||||
$KOD_Upah='5000/013';
|
||||
$KOD_Rebate_L='5000/021';
|
||||
$KOD_Rebate_A='1000/021';
|
||||
|
||||
$Bayaran_Pendahuluan='1000/019';
|
||||
//dapat keterangan glcode
|
||||
// $gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())-
|
||||
$get_glCode_Details=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$Gl_Code])->json();
|
||||
|
||||
$gl_cdetails=$get_glCode_Details[0];
|
||||
$keterangan=$get_glCode_Details[0]['descpt']; //keterangan glcode
|
||||
$actype=$get_glCode_Details[0]['acttype']; //keterangan acctype
|
||||
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$Gl_Code])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah=0.0;
|
||||
|
||||
$getGLedjer=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$Gl_Code])->json();
|
||||
|
||||
if(sizeof($getGLedjer)==0)
|
||||
{
|
||||
$jumlah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam=$getGLedjer[0]['jumlah'];
|
||||
|
||||
$hariIniSemalam=$getGLedjer[0]['hariini'];
|
||||
$jumlah=$jumlahSemalam+$hariIniSemalam;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini=0.0;
|
||||
$get_GlejerBulan_Tahun=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$Gl_Code])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun)==0)
|
||||
{
|
||||
$jumlahBulan_ini=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini=$jumlah-$jumlahBulan_ini;
|
||||
|
||||
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni=0.0;
|
||||
$get_Glejer_Tahun=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$Gl_Code])->json();
|
||||
if(sizeof($get_Glejer_Tahun)==0)
|
||||
{
|
||||
$Jumlah_TahunIni=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$JumTahunIni=$get_Glejer_Tahun[0]['jumlah'];
|
||||
|
||||
$Jumlah_TahunIni=$jumlah-$JumTahunIni;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$HariIni=0.0;
|
||||
$kelmarin=$jumlah-$HariIni;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$Gl_Code,
|
||||
'descpt'=>$keterangan,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni,
|
||||
'kelmarin'=>$kelmarin,
|
||||
'jumlah'=>$jumlah,
|
||||
'bulanini'=>$jumlahBulan_ini,
|
||||
'tahunini'=>$Jumlah_TahunIni,
|
||||
'acttype'=> $actype
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$getBayarOnline_GL=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
|
||||
|
||||
$keteranganBayaranOnlie=$getBayarOnline_GL[0]['descpt']; //keterangan glcode
|
||||
$actypeBayaranOnline=$getBayarOnline_GL[0]['acttype']; //keterangan acctype
|
||||
|
||||
$get_current_GLejer_Details_BayaranOnline=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_BayaranOnline)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah=0.0;
|
||||
|
||||
$getGLedjer=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
|
||||
|
||||
if(sizeof($getGLedjer)==0)
|
||||
{
|
||||
$jumlah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam=$getGLedjer[0]['jumlah'];
|
||||
|
||||
$hariIniSemalam=$getGLedjer[0]['hariini'];
|
||||
$jumlah=$jumlahSemalam+$hariIniSemalam;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$jumlahBulan_ini=0.0;
|
||||
$get_GlejerBulan_Tahun=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun)==0)
|
||||
{
|
||||
$jumlahBulan_ini=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini=$jumlah-$jumlahBulan_ini;
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni=0.0;
|
||||
$get_Glejer_Tahun=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
|
||||
if(sizeof($get_Glejer_Tahun)==0)
|
||||
{
|
||||
$Jumlah_TahunIni=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$JumTahunIni=$get_Glejer_Tahun[0]['jumlah'];
|
||||
$Jumlah_TahunIni=$jumlah-$JumTahunIni;
|
||||
|
||||
}
|
||||
|
||||
$HariIni=0.0;
|
||||
$kelmarin=$jumlah-$HariIni;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw' =>$auth_user['cawangan'],
|
||||
'glcode' =>$GL_Code_BayaranOnline,
|
||||
'descpt' =>$keteranganBayaranOnlie,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni,
|
||||
'kelmarin'=>$kelmarin,
|
||||
'jumlah'=>$jumlah,
|
||||
'bulanini'=>$jumlahBulan_ini,
|
||||
'tahunini'=>$Jumlah_TahunIni,
|
||||
'acttype'=> $actypeBayaranOnline
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//GL Penghutang Ar-Rahn
|
||||
$GL_penghutang_Arrahn=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_CodeHutangArrahn])->json();
|
||||
$keterangan_PenghutangArrahn=$GL_penghutang_Arrahn[0]['descpt']; //keterangan glcode
|
||||
$actype_PenghutangArrahn=$GL_penghutang_Arrahn[0]['acttype']; //details_code
|
||||
|
||||
$jumlah_PenghutangArrahn=0.0;
|
||||
$get_current_GLejer_Details_PA=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_CodeHutangArrahn])->json();
|
||||
if( sizeof($get_current_GLejer_Details_PA)==0)
|
||||
{
|
||||
|
||||
$getGLedjer_Semalam=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangArrahn])->json();
|
||||
|
||||
$jumlah_hutangArrahn=0.0;
|
||||
if(sizeof($getGLedjer_Semalam)==0)
|
||||
{
|
||||
|
||||
$jumlah_hutangArrahn =0.0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahSemalam=$getGLedjer_Semalam[0]['jumlah'];
|
||||
$hariIniSemalam=$getGLedjer_Semalam[0]['hariini'];
|
||||
$jumlah_hutangArrahn=$jumlahSemalam+$hariIniSemalam;
|
||||
}
|
||||
|
||||
$jumlahBulan_iniArrahn=0.0;
|
||||
$get_GlejerBulan_Tahun=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangArrahn])->json();
|
||||
if(sizeof($get_GlejerBulan_Tahun)==0)
|
||||
{
|
||||
|
||||
$jumlahBulan_iniArrahn=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahBulan_iniArrahn=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_iniArrahn=$jumlah_hutangArrahn-$jumlahBulan_iniArrahn;
|
||||
|
||||
}
|
||||
|
||||
$Jumlah_TahunIni=0.0;
|
||||
$get_Glejer_Tahun=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangArrahn])->json();
|
||||
$jumlah=0.0;
|
||||
if(sizeof($get_Glejer_Tahun)==0)
|
||||
{
|
||||
$Jumlah_TahunIniArrahn=0.0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$Jumlah_TahunIniArrahn=$get_Glejer_Tahun[0]['jumlah'];
|
||||
$Jumlah_TahunIniArrahn=$jumlah_hutangArrahn-$Jumlah_TahunIniArrahn;
|
||||
|
||||
}
|
||||
|
||||
$HariIniHutangArrahn=0.0;
|
||||
$kelmarinHutangArrahn=$jumlah_hutangArrahn-$HariIniHutangArrahn;
|
||||
|
||||
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
'kodcaw' =>$auth_user['cawangan'],
|
||||
'glcode' =>$GL_CodeHutangArrahn,
|
||||
'descpt' =>$keterangan_PenghutangArrahn,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIniHutangArrahn,
|
||||
'kelmarin'=>$kelmarinHutangArrahn,
|
||||
'jumlah'=>$jumlah_hutangArrahn,
|
||||
'bulanini'=>$jumlahBulan_iniArrahn,
|
||||
'tahunini'=>$Jumlah_TahunIniArrahn,
|
||||
'acttype'=> $actype_PenghutangArrahn
|
||||
|
||||
]);
|
||||
|
||||
}//END OF CARIAN GET GLEJER PENGHUTANG AR-RAHN
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
//GL Penghutang Ar-Rahn
|
||||
$GL_penghutang_Akru=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_CodeHutangAkru])->json();
|
||||
$keterangan_PenghutangAkru=$GL_penghutang_Akru[0]['descpt']; //keterangan glcode
|
||||
$actype_PenghutangAkru=$GL_penghutang_Akru[0]['acttype']; //details_code
|
||||
|
||||
$get_current_GLejer_Details_HA=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_CodeHutangAkru])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_HA)==0)
|
||||
{
|
||||
$jumlahAkru=0.0;
|
||||
$getGLedjer_Semalam_HA=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangAkru])->json();
|
||||
if(sizeof($getGLedjer_Semalam_HA)==0)
|
||||
{
|
||||
$jumlahAkru=0.0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahSemalam=$getGLedjer_Semalam_HA[0]['jumlah'];
|
||||
$hariIniSemalam=$getGLedjer_Semalam_HA[0]['hariini'];
|
||||
$jumlahAkru=$jumlahSemalam+$hariIniSemalam;
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini_HA=0.0;
|
||||
$get_GlejerBulan_Tahun_HA=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangAkru])->json();
|
||||
if(sizeof($get_GlejerBulan_Tahun_HA)==0)
|
||||
{
|
||||
|
||||
$jumlahBulan_iniAkru=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahBulan_ini_HA=$get_GlejerBulan_Tahun_HA[0]['jumlah'];
|
||||
$jumlahBulan_ini_HA=$jumlahAkru-$jumlahBulan_ini_HA;
|
||||
|
||||
}
|
||||
|
||||
$Jumlah_TahunIni_HA=0.0;
|
||||
$get_Glejer_Tahun_HA=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_CodeHutangAkru])->json();
|
||||
if(sizeof($get_GlejerBulan_Tahun_HA)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_HA=0.0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$Jumlah_TahunIni_HA=$get_GlejerBulan_Tahun_HA[0]['jumlah'];
|
||||
$Jumlah_TahunIni_HA=$jumlahAkru-$Jumlah_TahunIni_HA;
|
||||
|
||||
|
||||
}
|
||||
$hariIni_akru=0.0;
|
||||
$kelmarin_akru= $jumlahAkru-$hariIni_akru;
|
||||
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
'kodcaw' =>$auth_user['cawangan'],
|
||||
'glcode' =>$GL_CodeHutangAkru,
|
||||
'descpt' =>$keterangan_PenghutangAkru,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$hariIni_akru,
|
||||
'kelmarin'=>$kelmarin_akru,
|
||||
'jumlah'=>$jumlahAkru,
|
||||
'bulanini'=>$jumlahBulan_ini_HA,
|
||||
'tahunini'=>$Jumlah_TahunIni_HA,
|
||||
'acttype'=> $actype_PenghutangAkru
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
|
||||
}
|
||||
|
||||
$get_KOD_UPAH=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$KOD_Upah])->json();
|
||||
|
||||
$gl_cdetails_upah= $get_KOD_UPAH[0];
|
||||
$keterangan_upah= $get_KOD_UPAH[0]['descpt']; //keterangan glcode
|
||||
$actype_upah= $get_KOD_UPAH[0]['acttype']; //keterangan acctype
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details_Upah=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$KOD_Upah])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Upah)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah_Upah=0.0;
|
||||
|
||||
$getGLedjer_Upah=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Upah])->json();
|
||||
|
||||
if(sizeof($getGLedjer_Upah)==0)
|
||||
{
|
||||
$jumlah_upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam_Upah=$getGLedjer_Upah[0]['jumlah'];
|
||||
$hariIniSemalam_Upah=$getGLedjer_Upah[0]['hariini'];
|
||||
$jumlah_Upah=$jumlahSemalam_Upah+$hariIniSemalam_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
$get_GlejerBulan_Tahun_Upah=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Upah])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun_Upah)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini_Upah=$get_GlejerBulan_Tahun_Upah[0]['jumlah']; //try mcm tadi
|
||||
$jumlahBulan_ini_Upah=$jumlah_Upah-$jumlahBulan_ini_Upah;
|
||||
|
||||
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
$get_Glejer_Tahun_Upah=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Upah])->json();
|
||||
if(sizeof($get_Glejer_Tahun_Upah)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$JumTahunIni_Upah=$get_Glejer_Tahun_Upah[0]['jumlah'];
|
||||
$Jumlah_TahunIni_Upah=$jumlah_Upah-$JumTahunIni_Upah;
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Upah=0.0;
|
||||
$kelmarin_Upah=$jumlah_Upah-$HariIni_Upah;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$KOD_Upah,
|
||||
'descpt'=>$keterangan_upah,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Upah,
|
||||
'kelmarin'=>$kelmarin_Upah,
|
||||
'jumlah'=>$jumlah_Upah,
|
||||
'bulanini'=>$jumlahBulan_ini_Upah,
|
||||
'tahunini'=>$Jumlah_TahunIni_Upah,
|
||||
'acttype'=> $actype_upah
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
//initial Pinjaman DiBeri untuk hari ini...
|
||||
$KOD_Pinjam='1000/013';
|
||||
|
||||
$get_KOD_Pinjam=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$KOD_Pinjam])->json();
|
||||
|
||||
$gl_cdetails_pinjam= $get_KOD_Pinjam[0];
|
||||
$keterangan_pinjam= $get_KOD_Pinjam[0]['descpt']; //keterangan glcode
|
||||
$actype_pinjam= $get_KOD_Pinjam[0]['acttype']; //keterangan acctype
|
||||
|
||||
$get_current_GLejer_Details_Pinjam=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$KOD_Pinjam])->json();
|
||||
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Pinjam)==0)
|
||||
{
|
||||
|
||||
|
||||
$jumlah_Pinjam=0.0;
|
||||
|
||||
$getGLedjer_Pinjam_Semalam=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Pinjam])->json();
|
||||
if(sizeof($getGLedjer_Pinjam_Semalam)==0)
|
||||
{
|
||||
$jumlah_pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahSemalam_Pinjam=$getGLedjer_Pinjam_Semalam[0]['jumlah'];
|
||||
|
||||
$hariIniSemalam_Pinjam=$getGLedjer_Pinjam_Semalam[0]['hariini'];
|
||||
$jumlah_Pinjam=$jumlahSemalam_Pinjam+$hariIniSemalam_Pinjam;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$jumlahBulan_ini_Pinjam=0.0;
|
||||
$get_GlejerBulan_Tahun_Pinjam=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Pinjam])->json();
|
||||
if( sizeof($get_GlejerBulan_Tahun_Pinjam)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahBulan_ini_Pinjam=$get_GlejerBulan_Tahun_Pinjam[0]['jumlah'];
|
||||
$jumlahBulan_ini_Pinjam=$jumlah_Pinjam-$jumlahBulan_ini_Pinjam;
|
||||
|
||||
}
|
||||
|
||||
$Jumlah_TahunIni_Pinjam=0.0;
|
||||
$get_Glejer_Tahun_Pinjam=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Pinjam])->json();
|
||||
|
||||
if(sizeof($get_Glejer_Tahun_Pinjam)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$JumTahunIni_Pinjam=$get_Glejer_Tahun_Pinjam[0]['jumlah'];
|
||||
$Jumlah_TahunIni_Pinjam=$jumlah_Pinjam-$JumTahunIni_Pinjam;
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Pinjam=0.0;
|
||||
$kelmarin_Pinjam=$jumlah_Pinjam-$HariIni_Pinjam;
|
||||
|
||||
$daftarGlejer_pinjam=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$KOD_Pinjam,
|
||||
'descpt'=>$keterangan_pinjam,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Pinjam,
|
||||
'kelmarin'=>$kelmarin_Pinjam,
|
||||
'jumlah'=>$jumlah_Pinjam,
|
||||
'bulanini'=>$jumlahBulan_ini_Pinjam,
|
||||
'tahunini'=>$Jumlah_TahunIni_Pinjam,
|
||||
'acttype'=> $actype_pinjam
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
}
|
||||
|
||||
|
||||
$get_KOD_PinjamTawaruqq=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_Code_Tawarruq])->json();
|
||||
|
||||
$gl_cdetails_pinjam= $get_KOD_PinjamTawaruqq [0];
|
||||
$keterangan_pinjam=$get_KOD_PinjamTawaruqq [0]['descpt']; //keterangan glcode
|
||||
$actype_pinjam= $get_KOD_PinjamTawaruqq[0]['acttype']; //keterangan acctype
|
||||
|
||||
$get_current_GLejer_Details_Pinjam_Tawaruqq=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_Code_Tawarruq])->json();
|
||||
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Pinjam_Tawaruqq)==0)
|
||||
{
|
||||
|
||||
|
||||
$jumlah_Pinjam=0.0;
|
||||
|
||||
$getGLedjer_Pinjam_Semalam=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Tawarruq])->json();
|
||||
if(sizeof($getGLedjer_Pinjam_Semalam)==0)
|
||||
{
|
||||
$jumlah_pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahSemalam_Pinjam=$getGLedjer_Pinjam_Semalam[0]['jumlah'];
|
||||
|
||||
$hariIniSemalam_Pinjam=$getGLedjer_Pinjam_Semalam[0]['hariini'];
|
||||
$jumlah_Pinjam=$jumlahSemalam_Pinjam+$hariIniSemalam_Pinjam;
|
||||
|
||||
|
||||
}
|
||||
$jumlahBulan_ini_Pinjam=0.0;
|
||||
$get_GlejerBulan_Tahun_Pinjam=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Tawarruq])->json();
|
||||
if( sizeof($get_GlejerBulan_Tahun_Pinjam)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahBulan_ini_Pinjam=$get_GlejerBulan_Tahun_Pinjam[0]['jumlah'];
|
||||
$jumlahBulan_ini_Pinjam=$jumlah_Pinjam-$jumlahBulan_ini_Pinjam;
|
||||
|
||||
}
|
||||
|
||||
$Jumlah_TahunIni_Pinjam=0.0;
|
||||
$get_Glejer_Tahun_Pinjam=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Tawarruq])->json();
|
||||
|
||||
if(sizeof($get_Glejer_Tahun_Pinjam)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Pinjam=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$JumTahunIni_Pinjam=$get_Glejer_Tahun_Pinjam[0]['jumlah'];
|
||||
$Jumlah_TahunIni_Pinjam=$jumlah_Pinjam-$JumTahunIni_Pinjam;
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Pinjam=0.0;
|
||||
$kelmarin_Pinjam=$jumlah_Pinjam-$HariIni_Pinjam;
|
||||
|
||||
$daftarGlejer_pinjam=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$GL_Code_Tawarruq,
|
||||
'descpt'=>$keterangan_pinjam,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Pinjam,
|
||||
'kelmarin'=>$kelmarin_Pinjam,
|
||||
'jumlah'=>$jumlah_Pinjam,
|
||||
'bulanini'=>$jumlahBulan_ini_Pinjam,
|
||||
'tahunini'=>$Jumlah_TahunIni_Pinjam,
|
||||
'acttype'=> $actype_pinjam
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
}
|
||||
|
||||
$get_KOD_UPAH=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_Code_Untung])->json();
|
||||
|
||||
$gl_cdetails_upah= $get_KOD_UPAH[0];
|
||||
$keterangan_upah= $get_KOD_UPAH[0]['descpt']; //keterangan glcode
|
||||
$actype_upah= $get_KOD_UPAH[0]['acttype']; //keterangan acctype
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details_Upah=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_Code_Untung])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Upah)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah_Upah=0.0;
|
||||
|
||||
$getGLedjer_Upah=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Untung])->json();
|
||||
|
||||
if(sizeof($getGLedjer_Upah)==0)
|
||||
{
|
||||
$jumlah_upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$jumlahSemalam_Upah=$getGLedjer_Upah[0]['jumlah'];
|
||||
$hariIniSemalam_Upah=$getGLedjer_Upah[0]['hariini'];
|
||||
$jumlah_Upah=$jumlahSemalam_Upah+$hariIniSemalam_Upah;
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
$get_GlejerBulan_Tahun_Upah=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Untung])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun_Upah)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini_Upah=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini_Upah=$jumlah_Upah-$jumlahBulan_ini_Upah;
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
$get_Glejer_Tahun_Upah=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_Untung])->json();
|
||||
if(sizeof($get_Glejer_Tahun_Upah)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$JumTahunIni_Upah=$get_Glejer_Tahun_Upah[0]['jumlah'];
|
||||
$Jumlah_TahunIni_Upah=$jumlah_Upah-$JumTahunIni_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Upah=0.0;
|
||||
$kelmarin_Upah=$jumlah_Upah-$HariIni_Upah;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$GL_Code_Untung,
|
||||
'descpt'=>$keterangan_upah,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Upah,
|
||||
'kelmarin'=>$kelmarin_Upah,
|
||||
'jumlah'=>$jumlah_Upah,
|
||||
'bulanini'=>$jumlahBulan_ini_Upah,
|
||||
'tahunini'=>$Jumlah_TahunIni_Upah,
|
||||
'acttype'=> $actype_upah
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
$get_KOD_UPAH=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$KOD_Rebate_L])->json();
|
||||
|
||||
$gl_cdetails_upah= $get_KOD_UPAH[0];
|
||||
$keterangan_upah= $get_KOD_UPAH[0]['descpt']; //keterangan glcode
|
||||
$actype_upah= $get_KOD_UPAH[0]['acttype']; //keterangan acctype
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details_Upah=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$KOD_Rebate_L])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Upah)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah_Upah=0.0;
|
||||
|
||||
$getGLedjer_Upah=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_L])->json();
|
||||
|
||||
if(sizeof($getGLedjer_Upah)==0)
|
||||
{
|
||||
$jumlah_upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam_Upah=$getGLedjer_Upah[0]['jumlah'];
|
||||
$hariIniSemalam_Upah=$getGLedjer_Upah[0]['hariini'];
|
||||
$jumlah_Upah=$jumlahSemalam_Upah+$hariIniSemalam_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
$get_GlejerBulan_Tahun_Upah=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_L])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun_Upah)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini_Upah=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini_Upah=$jumlah_Upah-$jumlahBulan_ini_Upah;
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
$get_Glejer_Tahun_Upah=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_L])->json();
|
||||
if(sizeof($get_Glejer_Tahun_Upah)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$JumTahunIni_Upah=$get_Glejer_Tahun_Upah[0]['jumlah'];
|
||||
$Jumlah_TahunIni_Upah=$jumlah_Upah-$JumTahunIni_Upah;
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Upah=0.0;
|
||||
$kelmarin_Upah=$jumlah_Upah-$HariIni_Upah;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$KOD_Rebate_L,
|
||||
'descpt'=>$keterangan_upah,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Upah,
|
||||
'kelmarin'=>$kelmarin_Upah,
|
||||
'jumlah'=>$jumlah_Upah,
|
||||
'bulanini'=>$jumlahBulan_ini_Upah,
|
||||
'tahunini'=>$Jumlah_TahunIni_Upah,
|
||||
'acttype'=> $actype_upah
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$get_KOD_UPAH=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$KOD_Rebate_A])->json();
|
||||
|
||||
$gl_cdetails_upah= $get_KOD_UPAH[0];
|
||||
$keterangan_upah= $get_KOD_UPAH[0]['descpt']; //keterangan glcode
|
||||
$actype_upah= $get_KOD_UPAH[0]['acttype']; //keterangan acctype
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details_Upah=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$KOD_Rebate_A])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Upah)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah_Upah=0.0;
|
||||
|
||||
$getGLedjer_Upah=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_A])->json();
|
||||
|
||||
if(sizeof($getGLedjer_Upah)==0)
|
||||
{
|
||||
$jumlah_upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam_Upah=$getGLedjer_Upah[0]['jumlah'];
|
||||
$hariIniSemalam_Upah=$getGLedjer_Upah[0]['hariini'];
|
||||
$jumlah_Upah=$jumlahSemalam_Upah+$hariIniSemalam_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
$get_GlejerBulan_Tahun_Upah=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_A])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun_Upah)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini_Upah=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini_Upah=$jumlah_Upah-$jumlahBulan_ini_Upah;
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
$get_Glejer_Tahun_Upah=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$KOD_Rebate_A])->json();
|
||||
if(sizeof($get_Glejer_Tahun_Upah)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$JumTahunIni_Upah=$get_Glejer_Tahun_Upah[0]['jumlah'];
|
||||
|
||||
$Jumlah_TahunIni_Upah=$jumlah_Upah-$JumTahunIni_Upah;
|
||||
|
||||
|
||||
}
|
||||
$HariIni_Upah=0.0;
|
||||
$kelmarin_Upah=$jumlah_Upah-$HariIni_Upah;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$KOD_Rebate_A,
|
||||
'descpt'=>$keterangan_upah,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Upah,
|
||||
'kelmarin'=>$kelmarin_Upah,
|
||||
'jumlah'=>$jumlah_Upah,
|
||||
'bulanini'=>$jumlahBulan_ini_Upah,
|
||||
'tahunini'=>$Jumlah_TahunIni_Upah,
|
||||
'acttype'=> $actype_upah
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$get_KOD_UPAH=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$Bayaran_Pendahuluan])->json();
|
||||
|
||||
$gl_cdetails_upah= $get_KOD_UPAH[0];
|
||||
$keterangan_upah= $get_KOD_UPAH[0]['descpt']; //keterangan glcode
|
||||
$actype_upah= $get_KOD_UPAH[0]['acttype']; //keterangan acctype
|
||||
|
||||
// carian perincian glejer untk glcode=1000/010
|
||||
$get_current_GLejer_Details_Upah=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$Bayaran_Pendahuluan])->json();
|
||||
|
||||
if(sizeof($get_current_GLejer_Details_Upah)==0)
|
||||
{ //start kalau xdak data
|
||||
$jumlah_Upah=0.0;
|
||||
|
||||
$getGLedjer_Upah=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$Bayaran_Pendahuluan])->json();
|
||||
|
||||
if(sizeof($getGLedjer_Upah)==0)
|
||||
{
|
||||
$jumlah_upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//$glejer=$getGLedjer[0];
|
||||
$jumlahSemalam_Upah=$getGLedjer_Upah[0]['jumlah'];
|
||||
$hariIniSemalam_Upah=$getGLedjer_Upah[0]['hariini'];
|
||||
$jumlah_Upah=$jumlahSemalam_Upah+$hariIniSemalam_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
$get_GlejerBulan_Tahun_Upah=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$Bayaran_Pendahuluan])->json();
|
||||
|
||||
if( sizeof($get_GlejerBulan_Tahun_Upah)==0)
|
||||
{
|
||||
$jumlahBulan_ini_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$jumlahBulan_ini_Upah=$get_GlejerBulan_Tahun[0]['jumlah'];
|
||||
$jumlahBulan_ini_Upah=$jumlah_Upah-$jumlahBulan_ini_Upah;
|
||||
}//end bulan tahun
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
$get_Glejer_Tahun_Upah=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$Bayaran_Pendahuluan])->json();
|
||||
if(sizeof($get_Glejer_Tahun_Upah)==0)
|
||||
{
|
||||
$Jumlah_TahunIni_Upah=0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$JumTahunIni_Upah=$get_Glejer_Tahun_Upah[0]['jumlah'];
|
||||
|
||||
$Jumlah_TahunIni_Upah=$jumlah_Upah-$JumTahunIni_Upah;
|
||||
|
||||
|
||||
}
|
||||
|
||||
$HariIni_Upah=0.0;
|
||||
$kelmarin_Upah=$jumlah_Upah-$HariIni_Upah;
|
||||
//insert glejer untuk current date /hari ini
|
||||
$daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
|
||||
|
||||
'kodcaw'=>$auth_user['cawangan'],
|
||||
'glcode'=>$Bayaran_Pendahuluan,
|
||||
'descpt'=>$keterangan_upah,
|
||||
'debit'=>0.0,
|
||||
'kredit'=>0.0,
|
||||
'hariini'=>$HariIni_Upah,
|
||||
'kelmarin'=>$kelmarin_Upah,
|
||||
'jumlah'=>$jumlah_Upah,
|
||||
'bulanini'=>$jumlahBulan_ini_Upah,
|
||||
'tahunini'=>$Jumlah_TahunIni_Upah,
|
||||
'acttype'=> $actype_upah
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//************************ END LEJER AM**********************************
|
||||
|
||||
return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url','GT','denominasi','gadai_tebus','tuntutbaki'));
|
||||
}
|
||||
|
||||
@@ -1203,4 +254,23 @@ class AliranTunaiController extends Controller
|
||||
|
||||
return view('aliran_tunai.laporan.laporanserahan',compact('tarikh_cetak','cawangan_info','cawangan','api_url','cawangan_detail','array_requestteller'));
|
||||
}
|
||||
|
||||
public function kemaskiniupah(Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$requestkodlaluan = Http::get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
|
||||
|
||||
$requestupah = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
|
||||
$requestalirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||
|
||||
$upah = $requestupah['baki'];
|
||||
$alirantunaisemasa = $requestalirantunai['baki'];
|
||||
|
||||
$totalalirantunai = floatval($upah) + floatval($alirantunaisemasa);
|
||||
|
||||
return response($totalalirantunai);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -565,10 +565,15 @@ class GadaianController extends Controller
|
||||
"norujukan" => $history
|
||||
])->json();
|
||||
|
||||
array_push($arrayhist,["pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $history,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
|
||||
if(sizeof($gadai) > 0)
|
||||
$history = $gadai[0][0]['historygadaian'];
|
||||
{
|
||||
if($history == $gadai[0][0]['historygadaian'])
|
||||
$history = 0;
|
||||
else{
|
||||
array_push($arrayhist,["hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''), "pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $history,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
$history = $gadai[0][0]['historygadaian'];
|
||||
}
|
||||
}
|
||||
|
||||
$count++;
|
||||
|
||||
@@ -580,7 +585,7 @@ class GadaianController extends Controller
|
||||
])->json();
|
||||
|
||||
|
||||
array_push($arrayhist,["pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $norujukan,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
array_push($arrayhist,["hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''),"pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $norujukan,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -229,13 +229,11 @@ class KhazanahController extends Controller
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$update=Http::put(config('api.url').'/api/updatetagterima/'.$auth_user['cawangan'].'/'.$request->norujukan_barcode)->json();
|
||||
|
||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan_barcode)->json();
|
||||
$gadai_detail = $gadai[0];
|
||||
|
||||
$tebus = Http::get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],['norujukan' => $request->norujukan_barcode])->json();
|
||||
//dd($tebus);
|
||||
|
||||
$tebus_detail = $tebus[0];
|
||||
$pinjaman=$tebus[0]['pinjaman'];
|
||||
|
||||
@@ -252,19 +250,6 @@ class KhazanahController extends Controller
|
||||
$bakiakhir = $getTunai2['baki'];
|
||||
$totalkeluar = 0;
|
||||
|
||||
// initialized value glcode lejer_am
|
||||
$KOD_tunai='1000/010';
|
||||
$KOD_Pembiayaan='1000/017';
|
||||
$KOD_BP='1000/019';
|
||||
$Rebet_A='1000/021';
|
||||
$Rebet_B='5000/021';
|
||||
$Untung_Semasa='5000/017';
|
||||
$U_TG='1000/211';
|
||||
$U_HG='2000/007';
|
||||
$jum_bayaran=Http::get(config('api.url').'/api/transaction/one/'.$request->norujukan_barcode)->json();
|
||||
$jumlah_bayaran=$jum_bayaran['duit_masuk'];
|
||||
|
||||
|
||||
if($tebus_detail['jenistebus'] == 'P')
|
||||
{
|
||||
|
||||
@@ -272,104 +257,6 @@ class KhazanahController extends Controller
|
||||
$totalmasuk = $tebus_detail['pinjaman'] + $tebus_detail['bakiupah'] + $masuk;
|
||||
// $bakiakhir = $bakiawal-$totalkeluar+$totalmasuk+$pendahuluan-$serahan;
|
||||
|
||||
|
||||
//KIRAAN LEJER AM PENEBUSAN P BERMULA
|
||||
$get_GLCode_Tunai=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$keterangan_Tunai=$get_GLCode_Tunai[0]['descpt'];
|
||||
$acctype_Tunai=$get_GLCode_Tunai[0]['acttype'];
|
||||
$get_lejerTunai=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$hariIni_Tunai=$get_lejerTunai[0]['hariini'];
|
||||
$kelmarin_Tunai=$get_lejerTunai[0]['kelmarin'];
|
||||
$jumlah_Tunai=$get_lejerTunai[0]['jumlah'];
|
||||
$kredit_Tunai=$get_lejerTunai[0]['kredit'];
|
||||
$debit_Tunai=$get_lejerTunai[0]['debit'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
|
||||
|
||||
$debit_Tunai=$debit_Tunai+$jumlah_bayaran;
|
||||
$hariIni_Tunai=$debit_Tunai-$kredit_Tunai;
|
||||
$kelmarin_Tunai=$jumlah_Tunai-$hariIni_Tunai;
|
||||
|
||||
$updateGlejer_Tunai=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Tunai,
|
||||
'debit'=>$debit_Tunai,
|
||||
'kredit'=>$kredit_Tunai,
|
||||
'hariini'=>$hariIni_Tunai,
|
||||
'kelmarin' =>$kelmarin_Tunai,
|
||||
|
||||
]);
|
||||
|
||||
$get_lejerPinjaman=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Pembiayaan])->json();
|
||||
|
||||
$hariIni_Pinjaman=$get_lejerPinjaman[0]['hariini'];
|
||||
$kelmarin_Pinjaman=$get_lejerPinjaman[0]['kelmarin'];
|
||||
$jumlah_Pinjaman=$get_lejerPinjaman[0]['jumlah'];
|
||||
$kredit_Pinjaman=$get_lejerPinjaman[0]['kredit'];
|
||||
$debit_Pinjaman=$get_lejerPinjaman[0]['debit'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$hariIni=$debit_Pinjaman-$kredit_Pinjaman;
|
||||
$kelmarin_Pinjaman=$jumlah_Pinjaman-$hariIni_Pinjaman;
|
||||
|
||||
$updateGlejer_Pinjaman=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Pinjaman,
|
||||
'debit'=>$debit_Pinjaman,
|
||||
'kredit'=>$kredit_Pinjaman,
|
||||
'hariini'=>$hariIni_Pinjaman,
|
||||
'kelmarin' =>$kelmarin_Pinjaman,
|
||||
|
||||
]);
|
||||
|
||||
$get_latest_bayarUntung=Http::get(config('api.url').'/api/latest_transaksi_untung/data/'.$request->norujukan_barcode)->json();
|
||||
$bayaran_latest_untung=$get_latest_bayarUntung[0]['bayaran_keuntungan'];
|
||||
$get_lejer_Untung=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=>$Untung_Semasa])->json();
|
||||
|
||||
$hariini_untung=$get_lejer_Untung[0]['hariini'];
|
||||
$kelmarin_untung=$get_lejer_Untung[0]['kelmarin'];
|
||||
$jumlah_untung=$get_lejer_Untung[0]['jumlah'];
|
||||
$debit_untung=$get_lejer_Untung[0]['debit'];
|
||||
$recno_untung=$get_lejer_Untung[0]['recno'];
|
||||
$kredit_untung=$get_lejer_Untung[0]['kredit'];
|
||||
|
||||
$kredit_untung=$kredit_untung+$bayaran_latest_untung;
|
||||
$hariini_untung=$debit_untung-$kredit_untung;
|
||||
$kelmarin_untung=$jumlah_untung-$hariini_untung;
|
||||
|
||||
$updateGlejer_Untung=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_untung,
|
||||
'debit'=>$debit_untung,
|
||||
'kredit'=>$kredit_untung,
|
||||
'hariini'=>$hariini_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
|
||||
]);
|
||||
|
||||
$get_bayaranPD=Http::get(config('api.url').'/api/jumlah_bayaran_pendahuluan/'.$request->norujukan)->json();
|
||||
$jumlah_bp=$get_bayaranPD[0]['total_byr_pendahuluan'];
|
||||
|
||||
$get_lejerBayaran_Pendahuluan=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=>$KOD_BP])->json();
|
||||
$hariini_bp= $get_lejerBayaran_Pendahuluan[0]['hariini'];
|
||||
$kelmarin_bp=$get_lejerBayaran_Pendahuluan[0]['kelmarin'];
|
||||
$jumlah_bp= $get_lejerBayaran_Pendahuluan[0]['jumlah'];
|
||||
$debit_bp=$get_lejerBayaran_Pendahuluan[0]['debit'];
|
||||
$recno_bp=$get_lejerBayaran_Pendahuluan[0]['recno'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
|
||||
$debit_bp=$debit_bp+$jumlah_bp;
|
||||
$hariini_bp=$debit_bp-$kredit_bp;
|
||||
$kelmarin_bp=$jumlah_bp-$hariini_bp;
|
||||
|
||||
$updateGlejer_BP=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_bp,
|
||||
'debit'=>$debit_bp,
|
||||
'kredit'=>$kredit_bp,
|
||||
'hariini'=>$hariini_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
|
||||
]);
|
||||
//KIRAAN LEJER AM PENEBUSAN P BERAKHIR
|
||||
|
||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||
'kodlaluan' => $tebus_detail['teller'],
|
||||
'keluar'=>$keluar,
|
||||
@@ -377,246 +264,22 @@ class KhazanahController extends Controller
|
||||
'bakiakhir'=>$bakiakhir
|
||||
]);
|
||||
|
||||
}else{
|
||||
if($updateTunai)
|
||||
{
|
||||
$update=Http::put(config('api.url').'/api/updatetagterima/'.$auth_user['cawangan'].'/'.$request->norujukan_barcode)->json();
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
if($tebus_detail['jenistebus'] == 'S')
|
||||
{
|
||||
$totalmasuk = $tebus_detail['pinjaman'] + $tebus_detail['bakiupah'] + $masuk;
|
||||
|
||||
|
||||
//KIRAAN LEJER AM UNTUK PENEBUSAN S
|
||||
|
||||
$get_GLCode_Tunai=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$keterangan_Tunai=$get_GLCode_Tunai[0]['descpt'];
|
||||
$acctype_Tunai=$get_GLCode_Tunai[0]['acttype'];
|
||||
|
||||
$get_lejerTunai=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$hariIni_Tunai=$get_lejerTunai[0]['hariini'];
|
||||
$kelmarin_Tunai=$get_lejerTunai[0]['kelmarin'];
|
||||
$jumlah_Tunai=$get_lejerTunai[0]['jumlah'];
|
||||
$kredit_Tunai=$get_lejerTunai[0]['kredit'];
|
||||
$debit_Tunai=$get_lejerTunai[0]['debit'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
|
||||
|
||||
$debit_Tunai=$debit_Tunai+$jumlah_bayaran;
|
||||
$hariIni_Tunai=$debit_Tunai-$kredit_Tunai;
|
||||
$kelmarin_Tunai=$jumlah_Tunai-$hariIni_Tunai;
|
||||
|
||||
|
||||
$updateGlejer_Tunai=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Tunai,
|
||||
'debit'=>$debit_Tunai,
|
||||
'kredit'=>$kredit_Tunai,
|
||||
'hariini'=>$hariIni_Tunai,
|
||||
'kelmarin' =>$kelmarin_Tunai,
|
||||
|
||||
]);
|
||||
|
||||
|
||||
$get_lejerPinjaman=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Pembiayaan])->json();
|
||||
|
||||
$hariIni_Pinjaman=$get_lejerPinjaman[0]['hariini'];
|
||||
$kelmarin_Pinjaman=$get_lejerPinjaman[0]['kelmarin'];
|
||||
$jumlah_Pinjaman=$get_lejerPinjaman[0]['jumlah'];
|
||||
$kredit_Pinjaman=$get_lejerPinjaman[0]['kredit'];
|
||||
$debit_Pinjaman=$get_lejerPinjaman[0]['debit'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$hariIni_Pinjaman=$debit_Pinjaman-$kredit_Pinjaman;
|
||||
$kelmarin_Pinjaman=$jumlah_Pinjaman-$hariIni_Pinjaman;
|
||||
|
||||
$updateGlejer_Pinjaman=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Pinjaman,
|
||||
'debit'=>$debit_Pinjaman,
|
||||
'kredit'=>$kredit_Pinjaman,
|
||||
'hariini'=>$hariIni_Pinjaman,
|
||||
'kelmarin' =>$kelmarin_Pinjaman,
|
||||
|
||||
]);
|
||||
|
||||
$get_latest_bayarUntung=Http::get(config('api.url').'/api/latest_transaksi_untung/data/'.$request->norujukan_barcode)->json();
|
||||
$bayaran_latest_untung=$get_latest_bayarUntung[0]['bayaran_keuntungan'];
|
||||
$get_lejer_Untung=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=>$Untung_Semasa])->json();
|
||||
|
||||
$hariini_untung=$get_lejer_Untung[0]['hariini'];
|
||||
$kelmarin_untung=$get_lejer_Untung[0]['kelmarin'];
|
||||
$jumlah_untung=$get_lejer_Untung[0]['jumlah'];
|
||||
$debit_untung=$get_lejer_Untung[0]['debit'];
|
||||
$recno_untung=$get_lejer_Untung[0]['recno'];
|
||||
$kredit_untung=$get_lejer_Untung[0]['kredit'];
|
||||
$kredit_untung=$get_lejer_Untung[0]['kredit'];
|
||||
$kredit_untung=$get_lejer_Untung[0]['kredit'];
|
||||
|
||||
$kredit_untung=$kredit_untung+$bayaran_latest_untung;
|
||||
$hariini_untung=$debit_untung-$kredit_untung;
|
||||
$kelmarin_untung=$jumlah_untung-$hariini_untung;
|
||||
|
||||
$updateGlejer_Untung=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_untung,
|
||||
'debit'=>$debit_untung,
|
||||
'kredit'=>$kredit_untung,
|
||||
'hariini'=>$hariini_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
|
||||
]);
|
||||
|
||||
|
||||
$get_bayaranPD=Http::get(config('api.url').'/api/jumlah_bayaran_pendahuluan/'.$request->norujukan_barcode)->json();
|
||||
$jumlah_bp=$get_bayaranPD[0]['total_byr_pendahuluan'];
|
||||
|
||||
$get_lejerBayaran_Pendahuluan=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=>$KOD_BP])->json();
|
||||
|
||||
$hariini_bp=$get_lejerBayaran_Pendahuluan[0]['hariini'];
|
||||
$kelmarin_bp=$get_lejerBayaran_Pendahuluan[0]['kelmarin'];
|
||||
$jumlah_bp=$get_lejerBayaran_Pendahuluan[0]['jumlah'];
|
||||
$debit_bp=$get_lejerBayaran_Pendahuluan[0]['debit'];
|
||||
$recno_bp=$get_lejerBayaran_Pendahuluan[0]['recno'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
|
||||
$debit_bp=$debit_bp+$jumlah_bp;
|
||||
$hariini_bp=$debit_bp-$kredit_bp;
|
||||
$kelmarin_bp=$jumlah_bp-$hariini_bp;
|
||||
|
||||
$updateGlejer_BP=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_bp,
|
||||
'debit'=>$debit_bp,
|
||||
'kredit'=>$kredit_bp,
|
||||
'hariini'=>$hariini_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
|
||||
]);
|
||||
|
||||
//KIRAAN LEJER AM PENEBUSAN S BERAKHIR
|
||||
|
||||
}else{
|
||||
|
||||
$totalmasuk = $tebus_detail['bakipjm'] + $masuk;
|
||||
|
||||
|
||||
// KIRAAN LEJER AM BERMULA UNYTUK PENEBUSAN JENIS 'T'
|
||||
|
||||
$get_GLCode_Tunai=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$keterangan_Tunai=$get_GLCode_Tunai[0]['descpt'];
|
||||
$acctype_Tunai=$get_GLCode_Tunai[0]['acttype'];
|
||||
$get_lejerTunai=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||
$hariIni_Tunai=$get_lejerTunai[0]['hariini'];
|
||||
$kelmarin_Tunai=$get_lejerTunai[0]['kelmarin'];
|
||||
$jumlah_Tunai=$get_lejerTunai[0]['jumlah'];
|
||||
$kredit_Tunai=$get_lejerTunai[0]['kredit'];
|
||||
$debit_Tunai=$get_lejerTunai[0]['debit'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
$recno_Tunai=$get_lejerTunai[0]['recno'];
|
||||
|
||||
|
||||
$debit_Tunai=$debit_Tunai+$jumlah_bayaran;
|
||||
$hariIni_Tunai=$debit_Tunai-$kredit_Tunai;
|
||||
$kelmarin_Tunai=$jumlah_Tunai-$hariIni_Tunai;
|
||||
|
||||
|
||||
$updateGlejer_Tunai=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Tunai,
|
||||
'debit'=>$debit_Tunai,
|
||||
'kredit'=>$kredit_Tunai,
|
||||
'hariini'=>$hariIni_Tunai,
|
||||
'kelmarin' =>$kelmarin_Tunai,
|
||||
|
||||
]);
|
||||
|
||||
$get_lejerPinjaman=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_Pembiayaan])->json();
|
||||
|
||||
$hariIni_Pinjaman=$get_lejerPinjaman[0]['hariini'];
|
||||
$kelmarin_Pinjaman=$get_lejerPinjaman[0]['kelmarin'];
|
||||
$jumlah_Pinjaman=$get_lejerPinjaman[0]['jumlah'];
|
||||
$kredit_Pinjaman=$get_lejerPinjaman[0]['kredit'];
|
||||
$debit_Pinjaman=$get_lejerPinjaman[0]['debit'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
$recno_Pinjaman=$get_lejerPinjaman[0]['recno'];
|
||||
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
|
||||
$hariIni_Pinjaman=$debit_Pinjaman-$kredit_Pinjaman;
|
||||
$kelmarin_Pinjaman=$jumlah_Pinjaman-$hariIni_Pinjaman;
|
||||
|
||||
$updateGlejer_Pinjaman=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_Pinjaman,
|
||||
'debit'=>$debit_Pinjaman,
|
||||
'kredit'=>$kredit_Pinjaman,
|
||||
'hariini'=>$hariIni_Pinjaman,
|
||||
'kelmarin' =>$kelmarin_Pinjaman,
|
||||
|
||||
]);
|
||||
|
||||
$get_latest_bayarUntung=Http::get(config('api.url').'/api/latest_transaksi_untung/data/'.$request->norujukan_barcode)->json();
|
||||
$bayaran_latest_untung=$get_latest_bayarUntung[0]['bayaran_keuntungan'];
|
||||
$get_lejer_Untung=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=>$Untung_Semasa])->json();
|
||||
|
||||
$hariini_untung=$get_lejer_Untung[0]['hariini'];
|
||||
$kelmarin_untung=$get_lejer_Untung[0]['kelmarin'];
|
||||
$jumlah_untung=$get_lejer_Untung[0]['jumlah'];
|
||||
$debit_untung=$get_lejer_Untung [0]['debit'];
|
||||
$recno_untung=$get_lejer_Untung [0]['recno'];
|
||||
$kredit_untung=$get_lejer_Untung [0]['kredit'];
|
||||
$kredit_untung=$get_lejer_Untung [0]['kredit'];
|
||||
$kredit_untung=$get_lejer_Untung [0]['kredit'];
|
||||
$kredit_untung=$kredit_untung+$bayaran_latest_untung;
|
||||
$hariini_untung=$debit_untung-$kredit_untung;
|
||||
$kelmarin_untung=$jumlah_untung-$hariini_untung;
|
||||
|
||||
$updateGlejer_Untung=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_untung,
|
||||
'debit'=>$debit_untung,
|
||||
'kredit'=>$kredit_untung,
|
||||
'hariini'=>$hariini_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
'kelmarin' =>$kelmarin_untung,
|
||||
]);
|
||||
|
||||
$get_bayaranPD=Http::get(config('api.url').'/api/jumlah_bayaran_pendahuluan/'.$request->norujukan_barcode)->json();
|
||||
$jumlah_bp=$get_bayaranPD[0]['total_byr_pendahuluan'];
|
||||
$get_lejerBayaran_Pendahuluan=Http::get(config('api.url').'/api/getGlejer/'.$request->kodcaw,['glcode'=> $KOD_BP])->json();
|
||||
|
||||
$hariini_bp= $get_lejerBayaran_Pendahuluan[0]['hariini'];
|
||||
$kelmarin_bp=$get_lejerBayaran_Pendahuluan[0]['kelmarin'];
|
||||
$jumlah_bp= $get_lejerBayaran_Pendahuluan[0]['jumlah'];
|
||||
$debit_bp=$get_lejerBayaran_Pendahuluan[0]['debit'];
|
||||
$recno_bp=$get_lejerBayaran_Pendahuluan[0]['recno'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
$kredit_bp=$get_lejerBayaran_Pendahuluan[0]['kredit'];
|
||||
|
||||
$debit_bp=$debit_bp+$jumlah_bp;
|
||||
$hariini_bp=$debit_bp-$kredit_bp;
|
||||
$kelmarin_bp=$jumlah_bp-$hariini_bp;
|
||||
|
||||
$updateGlejer_BP=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$request->kodcaw,[
|
||||
'recno'=>$recno_bp,
|
||||
'debit'=>$debit_bp,
|
||||
'kredit'=>$kredit_bp,
|
||||
'hariini'=>$hariini_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
'kelmarin' =>$kelmarin_bp,
|
||||
|
||||
]);
|
||||
// KIRAAN LEJER AM PENEBUSAN T BERAKHIR
|
||||
|
||||
}
|
||||
// $bakiakhir = $bakiawal-$keluar+$totalmasuk+$pendahuluan-$serahan;
|
||||
|
||||
@@ -627,14 +290,19 @@ class KhazanahController extends Controller
|
||||
'bakiakhir'=>$bakiakhir
|
||||
]);
|
||||
|
||||
if($updateTunai)
|
||||
{
|
||||
$update=Http::put(config('api.url').'/api/updatetagterima/'.$auth_user['cawangan'].'/'.$request->norujukan_barcode)->json();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// $bakiakhir = $bakiawal-$keluar+$totalmasuk+$pendahuluan-$serahan;
|
||||
|
||||
//masuk dalam tunai aliran
|
||||
|
||||
|
||||
return $this->tebus();
|
||||
// return $this->tebus();
|
||||
return redirect()->route('khazanah.tebus');
|
||||
// return redirect()->route('khazanah.gadaian');
|
||||
}
|
||||
|
||||
//END KHAZANAH FARIS
|
||||
@@ -1519,7 +1187,7 @@ class KhazanahController extends Controller
|
||||
|
||||
$kurang=$kurangT;
|
||||
$keluarT = $keluar;
|
||||
$bakiAkhirT=$bakiAwal+$tambahT+$masukT-$keluarT-$kurang;
|
||||
$bakiAkhirT=$bakiAwal + $tambahT + $masukT - $keluarT - $kurang;
|
||||
|
||||
$updateTunai=Http::put( config('api.url').'/api/updateTunai/'.$auth_user['cawangan'], [
|
||||
'kodlaluan'=>$kodlaluan,
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<a href="{{ route('laporan.serahanteller') }}" class="btn btn-primary">Teller Serahan</a>
|
||||
<button type="button" onclick="kemaskiniupah()" class="btn btn-primary float-right" disabled>Kemaskini</button>
|
||||
<nav>
|
||||
<div class="nav nav-tabs mb-4" id="nav-tab" role="tablist">
|
||||
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Tunai</a>
|
||||
@@ -235,11 +235,11 @@
|
||||
var tabletuntutbaki = $('#tabletuntutbaki').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
var tele = "{{ $auth_user['name'] }}";
|
||||
|
||||
$(document).ready( function () {
|
||||
var api = '{{ $api_url }}';
|
||||
var kodcaw = "{{ $auth_user['cawangan'] }}";
|
||||
var tele = "{{ $auth_user['name'] }}";
|
||||
|
||||
function getData(){
|
||||
$.ajax({
|
||||
@@ -284,6 +284,19 @@
|
||||
});
|
||||
}
|
||||
|
||||
function kemaskiniupah()
|
||||
{
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: "{{ route('kemaskini.upah') }}",
|
||||
data: { "namateller" : tele },
|
||||
success: function(data){
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
let pusherenv = "{{ env('PUSHER_APP_KEY') }}";
|
||||
let laporanroute = "{{ route('laporan.serahanteller') }}";
|
||||
</script>
|
||||
|
||||
@@ -713,8 +713,6 @@
|
||||
var counter = 1;
|
||||
historytebusbayaran.clear().draw();
|
||||
|
||||
console.table(data);
|
||||
|
||||
$.each(data,function(index,tebusaz){
|
||||
|
||||
switch(tebusaz['jenistebus']) {
|
||||
@@ -723,8 +721,17 @@
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
break;
|
||||
case 'T':
|
||||
var urlroute = '{{ route("resit.tebus", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
|
||||
if(tebusaz['hargajualan'] === '')
|
||||
{
|
||||
var urlroute = '{{ route("resit.belumtebus", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
|
||||
}else{
|
||||
var urlroute = '{{ route("resit.tebus", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
}
|
||||
|
||||
break;
|
||||
case 'A':
|
||||
var urlroute = '{{ route("resit.belumansurans", ":id") }}';
|
||||
@@ -750,7 +757,7 @@
|
||||
}
|
||||
|
||||
|
||||
function ubahfunc(e){
|
||||
async function ubahfunc(e){
|
||||
|
||||
let ubahid = $('input[name="belum"]:checked').val();
|
||||
let harini = new Date();harini.setHours(0, 0, 0, 0);
|
||||
@@ -792,11 +799,34 @@
|
||||
}
|
||||
|
||||
if($("input[name='options']:checked").val() == 'sudah_tebus'){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Ubah Gadai Tidak Dibenarkan'
|
||||
const { value: amaun } = await Swal.fire({
|
||||
title: 'Kad Pengenalan Wakil',
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Kad Pengenalan',
|
||||
confirmButtonText: 'Terima',
|
||||
showCancelButton:true,
|
||||
cancelButtonText:'Batal',
|
||||
allowOutsideClick: true,
|
||||
inputValidator: (value) => {
|
||||
if (!value) {
|
||||
return 'Isikan tempat kosong diatas!'
|
||||
}
|
||||
|
||||
if(value <= 0){
|
||||
return 'Masukkan No Kad Pengenalan yang betul!';
|
||||
}
|
||||
|
||||
if(isNaN(value))
|
||||
{
|
||||
return 'Kad Pengenalan hendaklah dalam bentuk nombor!'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(amaun)
|
||||
{
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -168,8 +168,8 @@
|
||||
</div>
|
||||
<div class="tab-pane fade" id="gadaian-belum-serah" role="tabpanel" aria-labelledby="gadaian-belum-serah-tab">
|
||||
<div class="float-right mb-3">
|
||||
<button class="btn btn-primary mt-4 pull-left" onclick="checkallfunc()">Check All</button>
|
||||
<button class="btn btn-primary mt-4 pull-left" onclick="uncheckallfunc()">Uncheck All</button>
|
||||
<button class="btn btn-primary mt-4 pull-left" onclick="checkallfunc()" disabled>Check All</button>
|
||||
<button class="btn btn-primary mt-4 pull-left" onclick="uncheckallfunc()" disabled>Uncheck All</button>
|
||||
</div>
|
||||
<table class='table table-striped table-hover' id='table-gadaian-belum-serah'>
|
||||
<thead class="thead-dark">
|
||||
@@ -263,16 +263,16 @@
|
||||
setTimeout("location.reload(true);",timeoutPeriod);
|
||||
}
|
||||
|
||||
window.onload = timedRefresh(300000);
|
||||
window.onload = timedRefresh(100000);
|
||||
var table_gadaian_semasa = $('#table-gadaian-semasa').DataTable({
|
||||
"ordering": false
|
||||
"ordering": true
|
||||
});
|
||||
var table_gadaian_belum_serah = $('#table-gadaian-belum-serah').DataTable({
|
||||
"ordering": false
|
||||
"ordering": true
|
||||
});
|
||||
|
||||
var table_rekod_gadaian = $('#table-rekod-gadaian').DataTable({
|
||||
"ordering": false
|
||||
"ordering": true
|
||||
});
|
||||
|
||||
$('#tarikh_rekod').datepicker({
|
||||
@@ -289,19 +289,26 @@
|
||||
});
|
||||
|
||||
function checkallfunc(){
|
||||
|
||||
|
||||
let totalmarhun = 0;
|
||||
$(':checkbox').each(function() {
|
||||
let marhun = Number($(this).data("marhun"));
|
||||
totalmarhun += marhun;
|
||||
this.checked = true;
|
||||
});
|
||||
|
||||
$("#btn-serah").prop('disabled', false);
|
||||
$('#marhunpilih').val(formatter.format(totalmarhun.toFixed(2)));
|
||||
}
|
||||
|
||||
function uncheckallfunc(){
|
||||
|
||||
let totalmarhun = 0;
|
||||
$(':checkbox').each(function() {
|
||||
let marhun = Number($(this).data("marhun"));
|
||||
totalmarhun -= marhun;
|
||||
this.checked = false;
|
||||
});
|
||||
|
||||
$('#marhunpilih').val(0);
|
||||
$("#btn-serah").prop('disabled', true);
|
||||
}
|
||||
|
||||
function fetchRekodGadaian(){
|
||||
|
||||
@@ -195,6 +195,19 @@
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
//modal
|
||||
|
||||
var tablegadaianmasuk = $('#table-gadaian-semasa').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
var pengesahanmarhun = $('#table-gadaian-belum-serah').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#norujukan_barcode').focus();
|
||||
})
|
||||
|
||||
$('#marhunModal').on('show.bs.modal', function(event) {
|
||||
var button = $(event.relatedTarget); // button yg trigger
|
||||
var arraymarhun = button.data('marhun');
|
||||
|
||||
@@ -168,13 +168,17 @@
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
|
||||
|
||||
var table_gadaian_semasa = $('#table-gadaian-semasa').DataTable({
|
||||
"ordering": false
|
||||
var table_gadaian_semasa = $('#table-gadaian-semasa').DataTable({
|
||||
"ordering": true
|
||||
});
|
||||
var table_gadaian_belum_serah = $('#table-gadaian-belum-serah').DataTable({
|
||||
"ordering": false
|
||||
"ordering": true
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#norujukan_barcode').focus();
|
||||
})
|
||||
|
||||
//modal
|
||||
$('#marhunModal').on('show.bs.modal', function(event) {
|
||||
var button = $(event.relatedTarget); // button yg trigger
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<div id="app">
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ url('/') }}">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
||||
</a>
|
||||
<div class="col-2">
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<div id="app">
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ url('/') }}">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
||||
</a>
|
||||
|
||||
|
||||
@@ -409,7 +409,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -422,6 +422,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">A</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -435,7 +436,7 @@ hr.new5 {
|
||||
<td style="width:10px">(-) Bayaran Pelanggan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($transaction['duit_masuk'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($transaction['bakiharga'],2) }} </td>
|
||||
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($transaction['bakiharga'],2) }}</b> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -465,7 +466,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@@ -502,7 +503,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -515,6 +516,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">A</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -528,7 +531,7 @@ hr.new5 {
|
||||
<td style="width:10px">(-) Bayaran Pelanggan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($transaction['duit_masuk'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($transaction['bakiharga'],2) }}</td>
|
||||
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($transaction['bakiharga'],2) }}</b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -558,7 +561,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -422,6 +422,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">A</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -515,6 +516,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">A</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
|
||||
@@ -409,7 +409,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: Tempoh Simpan</td><td> {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -422,6 +422,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">P</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -438,7 +439,7 @@ hr.new5 {
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakiupah'],2) }} </td>
|
||||
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($penebusan['bakiupah'],2) }} </b> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -468,7 +469,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@@ -505,7 +506,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: Tempoh Simpan</td><td> {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
|
||||
@@ -517,6 +518,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">P</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -533,7 +536,7 @@ hr.new5 {
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakiupah'],2) }} </td>
|
||||
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($penebusan['bakiupah'],2) }} </b> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -563,7 +566,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -423,6 +423,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -442,7 +443,7 @@ hr.new5 {
|
||||
<td style="width:10px">(-) Rebate</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }}</td>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -472,7 +473,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@@ -509,7 +510,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -525,6 +526,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -544,7 +546,7 @@ hr.new5 {
|
||||
<td style="width:10px">(-) Rebate</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }}</td>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }}</b></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
@@ -573,7 +575,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -368,6 +368,8 @@ hr.new5 {
|
||||
color: black;
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
@@ -400,6 +402,8 @@ hr.new5 {
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
<table id="inside">
|
||||
|
||||
<tr>
|
||||
@@ -410,7 +414,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -423,6 +427,7 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -436,7 +441,7 @@ hr.new5 {
|
||||
<td style="width:10px">Jumlah Upah</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakiupah'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}</td>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -466,9 +471,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
|
||||
|
||||
<td colspan="3"> Ar-Rahn<br><b>{{ Auth::user()->name }}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
@@ -503,7 +506,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -519,6 +522,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -532,7 +537,7 @@ hr.new5 {
|
||||
<td style="width:10px">Jumlah Upah</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakiupah'],2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}</td>
|
||||
<td style="width:10px"><b>Tebus Keseluruhan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}</b></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
@@ -561,8 +566,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
|
||||
<td colspan="3"> Ar-Rahn<br><b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -423,6 +423,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
<tr>
|
||||
@@ -444,7 +446,7 @@ hr.new5 {
|
||||
<td style="width:10px"><b>Jumlah Bayaran</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakipjm'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}</td>
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}</b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -474,7 +476,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@@ -511,7 +513,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -527,6 +529,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
<tr>
|
||||
@@ -548,7 +552,7 @@ hr.new5 {
|
||||
<td style="width:10px"><b>Jumlah Bayaran</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakipjm'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}</td>
|
||||
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -578,7 +582,7 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">Cagaran Diterima </td>
|
||||
<td></td>
|
||||
<td colspan="3"> Ar-Rahn</td>
|
||||
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -423,6 +423,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
|
||||
@@ -519,6 +521,8 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
|
||||
|
||||
|
||||
<table id="payment">
|
||||
|
||||
|
||||
+4
-1
@@ -86,6 +86,9 @@ Route::post('/createwakil',['as'=>'wakil.create','uses'=>'PenebusanController@cr
|
||||
Route::get('/firstwakil',['as'=>'wakil.first','uses'=>'PenebusanController@getfirstWakil'])->middleware('auth','teller');
|
||||
Route::get('/history',['as'=>'gadai.history','uses'=>'GadaianController@history'])->middleware('auth','teller');
|
||||
|
||||
//Kemaskini Upah
|
||||
Route::get('/kemaskiniupah',['as'=>'kemaskini.upah','uses'=>'AliranTunaiController@kemaskiniupah'])->middleware('auth','teller');
|
||||
|
||||
|
||||
//MAINTENANCE
|
||||
Route::get('/tebusseparuh',['as'=>'tebus.separuh','uses'=>'PenebusanController@tebusseparuh'])->middleware('auth','teller');
|
||||
@@ -103,7 +106,7 @@ Route::post('/printsag',['as'=>'printsag','uses'=>'GadaianController@printSAG'])
|
||||
Route::get('/menu','KhazanahController@menu')->middleware('auth','khazanah');
|
||||
Route::get('/pendahuluanserahan','KhazanahController@pendahuluanserahandaftar')->middleware('auth','khazanah');
|
||||
Route::get('/khazanahgadaian',['as'=>'khazanah.gadaian','uses'=>'KhazanahController@gadaian'])->middleware('auth','khazanah');
|
||||
Route::get('/khazanahtebus','KhazanahController@tebus')->middleware('auth','khazanah');
|
||||
Route::get('/khazanahtebus',['as'=>'khazanah.tebus','uses'=>'KhazanahController@tebus'])->middleware('auth','khazanah');
|
||||
Route::get('/kelulusan','KhazanahController@kelulusan')->middleware('auth','khazanah');
|
||||
Route::get('/kelulusanrekodlepas',['as'=>'khazanah.rekodlepas','uses'=>'KhazanahController@kelulusanrekodlepas'])->middleware('auth','khazanah');
|
||||
Route::get('/pendahuluan',['as'=>'khazanah.pendahulu','uses'=>'KhazanahController@pendahuluan'])->middleware('auth','khazanah');
|
||||
|
||||
Reference in New Issue
Block a user