Merge branch 'amir_dev_2' into 'main'
Fix scan_marhun See merge request online-sistem1/lelong!231
This commit is contained in:
@@ -85,7 +85,7 @@ class CartController extends Controller
|
||||
$cart[$index1]['lelongbidmarhun'] = $marhun;
|
||||
}
|
||||
$groupCawangan[$index]['total_surat'] = $total_surat;
|
||||
$groupCawangan[$index]['total_berat'] = $total_berat;
|
||||
$groupCawangan[$index]['total_berat'] = number_format((float)$total_berat, 2, '.', '');
|
||||
$groupCawangan[$index]['total_bidaan'] = number_format((float)$total_hargabida, 2, '.', '');
|
||||
|
||||
$groupCawangan[$index]['lelongbid'] = $cart;
|
||||
|
||||
@@ -1626,6 +1626,9 @@ class MarhunController extends Controller
|
||||
|
||||
$scanMasuk = ScanSemak::where('norujukan', '=', $request->norujukan_barcode)
|
||||
->whereNotNull('serah_marhun')
|
||||
->whereNotNull('terima_marhun')
|
||||
->whereNull('scan_masuk')
|
||||
->orderBy('id', 'desc')
|
||||
->first();
|
||||
|
||||
if ($scanMasuk) {
|
||||
@@ -1639,16 +1642,6 @@ class MarhunController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function senaraiScanKeluar(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
|
||||
$senaraiScanKeluar = ScanMarhun::where('lelong_id', '=', $request->lelong_id)
|
||||
->where('kodcaw', '=', $caw)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function addPhotoMarhun(Request $request)
|
||||
{
|
||||
$data = base64_encode($request->gambarMarhun->get());
|
||||
|
||||
Reference in New Issue
Block a user