Merge branch 'pipi/ujrah_staging' into ujrah_master_fix

This commit is contained in:
Hafifie PKB
2024-03-06 21:28:28 +08:00
17 changed files with 638 additions and 25 deletions
+17 -1
View File
@@ -34,6 +34,7 @@ use Illuminate\Http\Request;
use App\Services\MasterServices;
use App\Support\OnePercent;
use App\Services\Transaction\AnsuranServices as AnsServ;
use Log;
use Illuminate\Support\Facades\DB;
@@ -1130,7 +1131,8 @@ class GadaiController extends Controller
$updatehistory = Gadai::on($cawangan['mysql'])
->where('norujukan','=',$norujukan)
->update(array(
'historygadaian' => $request->historygadaian
'historygadaian' => $request->historygadaian,
'tag_tebus' => $request->jenistebus,
));
return response()->json($updatehistory,200);
@@ -3647,4 +3649,18 @@ class GadaiController extends Controller
return $keuntungan;
}
public function deleteAnsuran(Request $request){
$ansuranserv = new AnsServ($request->kodcaw);
$delete = $ansuranserv->delete($request);
Log::info($delete);
return response()->json($delete);
}
public function getLatestAdvanceWithoutDelete(Request $request){
$ansuranserv = new AnsServ($request->kodcaw);
$view = $ansuranserv->getLatestAdvanceWithoutDelete($request);
return response()->json($view);
}
}