update sikit
This commit is contained in:
@@ -1066,33 +1066,33 @@ class MarhunController extends Controller
|
||||
}
|
||||
|
||||
|
||||
|
||||
$totalnewhargaasas = $totalnewhargaasas + $newhargaasas;
|
||||
// dd($totalnewhargaasas);
|
||||
$lelong = Lelong::where('id', $id)->get();
|
||||
$sumcajlelong = $totalnewhargaasas * ($lelong[0]['cajlelong'] / 100);
|
||||
$totalbaki = $totalnewhargaasas - $lelongbid->pinjaman - $lelongbid->bakiupah - bcdiv($sumcajlelong, 1, 1);
|
||||
if ($totalbaki > 0) {
|
||||
$bakilelong = $totalbaki;
|
||||
} else {
|
||||
$rugilelong = $totalbaki;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// $marhuns[$index1]['harga_gadai'] = $marhunsgadai['harga'];
|
||||
$marhuns[$index1]['nmarhun_gadai'] = $marhun['old_nmarhun'];
|
||||
$marhuns[$index1]['old_marhun'] = $marhun['marhun'];
|
||||
$marhuns[$index1]['status_ubah'] = $status;
|
||||
$marhuns[$index1]['karatnew'] = $getkaratnew;
|
||||
|
||||
$marhuns[$index1]['newhargaasas'] = $newhargaasas;
|
||||
$marhuns[$index1]['totalnewhargaasas'] = $totalnewhargaasas;
|
||||
$marhuns[$index1]['pembiayaan'] = $lelongbid->pinjaman;
|
||||
$marhuns[$index1]['bakiupah'] = $lelongbid->bakiupah;
|
||||
$marhuns[$index1]['baki_lelong'] = $bakilelong;
|
||||
$marhuns[$index1]['rugi_lelong'] = $rugilelong;
|
||||
|
||||
$marhuns[$index1]['cajlelong'] = bcdiv($sumcajlelong, 1, 1);
|
||||
}
|
||||
$totalnewhargaasas += $newhargaasas;
|
||||
// dd($totalnewhargaasas);
|
||||
$lelong = Lelong::where('id', $id)->get();
|
||||
$sumcajlelong = $totalnewhargaasas * ($lelong[0]['cajlelong'] / 100);
|
||||
$totalbaki = $totalnewhargaasas - $lelongbid->pinjaman - $lelongbid->bakiupah - bcdiv($sumcajlelong, 1, 1);
|
||||
if ($totalbaki > 0) {
|
||||
$bakilelong = $totalbaki;
|
||||
} else {
|
||||
$rugilelong = $totalbaki;
|
||||
}
|
||||
$marhuns[$index1]['newhargaasas'] = $newhargaasas;
|
||||
$marhuns[$index1]['totalnewhargaasas'] = $totalnewhargaasas;
|
||||
$marhuns[$index1]['cajlelong'] = bcdiv($sumcajlelong, 1, 1);
|
||||
|
||||
array_push($arraylelbidmarhun, $marhuns);
|
||||
// dd($arraylelbidmarhun);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user