Merged in izzati-hotfix-distict-laporan-lelong (pull request #268)
update sort laporan lelong
This commit is contained in:
@@ -1807,7 +1807,6 @@ class LelongController extends Controller
|
|||||||
if ($request->has('batchno') && !empty($request->batchno)) {
|
if ($request->has('batchno') && !empty($request->batchno)) {
|
||||||
$lelong_query->where('lelong.batchno', $request->batchno);
|
$lelong_query->where('lelong.batchno', $request->batchno);
|
||||||
}
|
}
|
||||||
// dd($lelong_query);
|
|
||||||
// Select required fields
|
// Select required fields
|
||||||
$lelong_data = $lelong_query->select(
|
$lelong_data = $lelong_query->select(
|
||||||
'lelong.batchno', 'lelong.t_lelong', 'gadai.t_gadai', 'gadai.nokp', 'lelong.pinjaman',
|
'lelong.batchno', 'lelong.t_lelong', 'gadai.t_gadai', 'gadai.nokp', 'lelong.pinjaman',
|
||||||
@@ -1816,8 +1815,11 @@ class LelongController extends Controller
|
|||||||
'pembeli.nama', 'pembeli.nokp AS nokppembeli', 'lelong.tagujrah', 'lelong.ujrah',
|
'pembeli.nama', 'pembeli.nokp AS nokppembeli', 'lelong.tagujrah', 'lelong.ujrah',
|
||||||
'lelong.onepercent', 'lelong.teller'
|
'lelong.onepercent', 'lelong.teller'
|
||||||
)
|
)
|
||||||
->orderBy('lelong.t_lelong')
|
|
||||||
->distinct()
|
->distinct()
|
||||||
|
->orderByRaw("
|
||||||
|
SUBSTRING_INDEX(SUBSTRING_INDEX(lelong.norujukan, '-', 1), 'WCY', -1),
|
||||||
|
CAST(SUBSTRING_INDEX(lelong.norujukan, '-', -1) AS UNSIGNED)
|
||||||
|
")
|
||||||
->get();
|
->get();
|
||||||
// dd($lelong_data);
|
// dd($lelong_data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user