added server edited at 12/10/2024

This commit is contained in:
hafifierahman
2024-10-12 21:21:53 +08:00
parent 1bb813e22e
commit e438f8992d
7 changed files with 22 additions and 6 deletions
+12
View File
@@ -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(),