update tukar-tempoh-notis-peringatan

This commit is contained in:
BTMS2
2025-02-17 15:36:02 +08:00
parent 54d9feb823
commit 2c187b32b3
@@ -462,7 +462,7 @@ class CallCenterController extends Controller
if($fasa == 1){
$datagadai = Gadai::on($cawangan['mysql'])
->where([['t_matang','<=',$monthscoming],['lelong_tawarruq','=',1],['tempoh','>=',5],['tempoh','<=',5.5],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->where([['t_matang','<=',$monthscoming],['lelong_tawarruq','=',1],['tempoh','>=',5],['tempoh','<=',7],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->orderBy('t_gadai', 'ASC')
->orderBy('sirig', 'ASC');
// ->get();
@@ -470,7 +470,7 @@ class CallCenterController extends Controller
}elseif($fasa == 2){
$datagadai = Gadai::on($cawangan['mysql'])
->where([['t_matang1','<=',$monthscoming],['lelong_tawarruq','=',0],['tempoh','>=',11],['tempoh','<=',11.5],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->where([['t_matang1','<=',$monthscoming],['lelong_tawarruq','=',0],['tempoh','>=',11],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->orderBy('t_gadai', 'ASC')
->orderBy('sirig', 'ASC');
// ->get();
@@ -510,12 +510,12 @@ class CallCenterController extends Controller
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
if($fasa == 1){
$datagadai = Gadai::on($cawangan['mysql'])
->where([['t_matang','<=',$monthscoming],['lelong_tawarruq','=',1],['tempoh','>=',5],['tempoh','<=',5.5],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->where([['t_matang','<=',$monthscoming],['lelong_tawarruq','=',1],['tempoh','>=',5],['tempoh','<=',7],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0],['tagnotis','=',0]])
->orderBy('t_gadai', 'ASC')
->orderBy('sirig', 'ASC');
}elseif($fasa == 2){
$datagadai = Gadai::on($cawangan['mysql'])
->where([['t_matang1','<=',$monthscoming],['lelong_tawarruq','=',0],['tempoh','>=',11],['tempoh','<=',11.5],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0]])
->where([['t_matang1','<=',$monthscoming],['lelong_tawarruq','=',0],['tempoh','>=',11],['tagpalsu','=',0],['sttebus','=',''],['taglel','=',0]])
->orderBy('t_gadai', 'ASC')
->orderBy('sirig', 'ASC');
}
@@ -530,7 +530,7 @@ class CallCenterController extends Controller
$caw_notis->kodcaw = $kodcaw;
$caw_notis->peringatan = 1;
$caw_notis->daritempoh = 5;
$caw_notis->hinggatempoh = 5;
$caw_notis->hinggatempoh = 7;
$caw_notis->status = 1;
$caw_notis->save();
@@ -540,7 +540,7 @@ class CallCenterController extends Controller
$caw_notis->kodcaw = $kodcaw;
$caw_notis->peringatan = 1;
$caw_notis->daritempoh = 11;
$caw_notis->hinggatempoh = 11;
$caw_notis->hinggatempoh = 12;
$caw_notis->status = 1;
$caw_notis->save();
@@ -599,7 +599,7 @@ class CallCenterController extends Controller
$notis = Notis::create([
'tarikh_notis' => $tarikh_notis,
'daritempoh' => 5,
'hinggatempoh' => 5,
'hinggatempoh' => 7,
'sts_notis' => 1,
'peringatan' => 1
]);
@@ -607,7 +607,7 @@ class CallCenterController extends Controller
$notis = Notis::create([
'tarikh_notis' => $tarikh_notis,
'daritempoh' => 11,
'hinggatempoh' => 11,
'hinggatempoh' => 12,
'sts_notis' => 1,
'peringatan' => 1
]);