added server edited at 12/10/2024
This commit is contained in:
@@ -455,6 +455,12 @@ class Penebusan
|
||||
$rebet = 0;
|
||||
}
|
||||
|
||||
//check duplicate
|
||||
$data = Transaction::on('mysql7')->where('norujukan','=',$norujukan)->where('trans_type','=','T')->first();
|
||||
if(!empty($data)){
|
||||
return 'duplicate';
|
||||
}
|
||||
|
||||
$gadai = Gadai::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->first();
|
||||
|
||||
if($gadai['hargajualan'] == null){
|
||||
@@ -592,6 +598,12 @@ class Penebusan
|
||||
|
||||
$gadai = Gadai::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->first();
|
||||
|
||||
//check duplicate
|
||||
$data = Transaction::on('mysql7')->where('norujukan','=',$norujukan)->where('trans_type','=','AT')->first();
|
||||
if(!empty($data)){
|
||||
return 'duplicate';
|
||||
}
|
||||
|
||||
$update_gadai = Gadai::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->update(array(
|
||||
'sttebus' => "T",
|
||||
't_update' => $current->toDateString(),
|
||||
|
||||
Reference in New Issue
Block a user