Merge branch 'atie' into 'main'
update harga dlm semakan marhun See merge request online-sistem1/lelong!46
This commit is contained in:
@@ -316,6 +316,7 @@ class MarhunController extends Controller
|
||||
|
||||
$detailsinfo = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('lelong_id',$info['lelong_id'])
|
||||
->where('cawangan.caw_code', $user->kodcaw)
|
||||
->get()
|
||||
->toArray();
|
||||
array_push($arrayinfo,['info'=>$info, 'detailsinfo'=>$detailsinfo]);
|
||||
@@ -470,6 +471,7 @@ class MarhunController extends Controller
|
||||
|
||||
$detailsinfo = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('lelong_id',$info['lelong_id'])
|
||||
->where('cawangan.caw_code', $user->kodcaw)
|
||||
->get()
|
||||
->toArray();
|
||||
array_push($arrayinfo,['info'=>$info, 'detailsinfo'=>$detailsinfo]);
|
||||
|
||||
@@ -336,9 +336,9 @@
|
||||
{
|
||||
console.log(item);
|
||||
var beratemas = $('#berat_emastambahan').val();
|
||||
var total_tambahan = item.harga * parseFloat(beratemas);
|
||||
var total_tambahan = item.harga2 * parseFloat(beratemas);
|
||||
var harga_asastambahan = Math.round(total_tambahan);
|
||||
$('#hargatambahan').val(parseFloat(item.harga).toFixed(2));
|
||||
$('#hargatambahan').val(parseFloat(item.harga2).toFixed(2));
|
||||
$('#nilai_marhuntambahan').val(parseFloat(total_tambahan).toFixed(2));
|
||||
$('#harga_asastambahan').val(parseFloat(harga_asastambahan).toFixed(2));
|
||||
}
|
||||
@@ -388,9 +388,9 @@
|
||||
karatall.forEach((item) =>{
|
||||
if(item.karat == $(e).val())
|
||||
{
|
||||
var total = item.harga * $('#berat_emas').val();
|
||||
var total = item.harga2 * $('#berat_emas').val();
|
||||
var hargaasas = Math.round(total);
|
||||
$('#harga').val(parseFloat(item.harga).toFixed(2));
|
||||
$('#harga').val(parseFloat(item.harga2).toFixed(2));
|
||||
$('#nilai_marhun').val(parseFloat(total).toFixed(2));
|
||||
$('#harga_asas').val(parseFloat(hargaasas).toFixed(2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user