hari ini
This commit is contained in:
@@ -212,7 +212,11 @@
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
|
||||
const formatter = new Intl.NumberFormat('en-US', {
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
@@ -242,65 +246,60 @@
|
||||
$.each(data, function(key,val) {
|
||||
|
||||
|
||||
$('#bundle1').val(parseFloat(val.bd1).toFixed(2));
|
||||
$('#totalb1').val(parseFloat(val.b1).toFixed(2));
|
||||
$('#bundle1').val(val.bd1);
|
||||
$('#totalb1').val(formatter.format(val.b1));
|
||||
|
||||
$('#bundle20').val(parseFloat(val.bd20).toFixed(2));
|
||||
$('#totalb20').val(parseFloat(val.b20).toFixed(2));
|
||||
$('#bundle20').val(val.bd20);
|
||||
$('#totalb20').val(formatter.format(val.b20));
|
||||
|
||||
$('#bundle5').val(parseFloat(val.bd5).toFixed(2));
|
||||
$('#totalb5').val(parseFloat(val.b5).toFixed(2));
|
||||
$('#bundle5').val(val.bd5);
|
||||
$('#totalb5').val(formatter.format(val.b5));
|
||||
|
||||
$('#bundle50').val(parseFloat(val.bd50).toFixed(2));
|
||||
$('#totalb50').val(parseFloat(val.b50).toFixed(2));
|
||||
$('#bundle50').val(val.bd50);
|
||||
$('#totalb50').val(formatter.format(val.b50));
|
||||
|
||||
$('#bundle10').val(parseFloat(val.bd10).toFixed(2));
|
||||
$('#totalb10').val(parseFloat(val.b10).toFixed(2));
|
||||
$('#bundle10').val(val.bd10);
|
||||
$('#totalb10').val(formatter.format(val.b10));
|
||||
|
||||
$('#bundle100').val(parseFloat(val.bd100).toFixed(2));
|
||||
$('#totalb100').val(parseFloat(val.b100).toFixed(2));
|
||||
$('#bundle100').val(val.bd100);
|
||||
$('#totalb100').val(formatter.format(val.b100));
|
||||
|
||||
$('#sen1').val(parseFloat(val.txtsen1).toFixed(2));
|
||||
$('#totalsen1').val(parseFloat(val.k01).toFixed(2));
|
||||
$('#sen1').val(val.txtsen1);
|
||||
$('#totalsen1').val(formatter.format(val.k01));
|
||||
|
||||
$('#sen5').val(parseFloat(val.txtsen5).toFixed(2));
|
||||
$('#totalsen5').val(parseFloat(val.k05).toFixed(2));
|
||||
$('#sen5').val(val.txtsen5);
|
||||
$('#totalsen5').val(formatter.format(val.k05));
|
||||
|
||||
$('#sen10').val(parseFloat(val.txtsen10).toFixed(2));
|
||||
$('#totalsen10').val(parseFloat(val.k010).toFixed(2));
|
||||
$('#sen10').val(val.txtsen10);
|
||||
$('#totalsen10').val(formatter.format(val.k010));
|
||||
|
||||
$('#sen20').val(parseFloat(val.txtsen20).toFixed(2));
|
||||
$('#totalsen20').val(parseFloat(val.k020).toFixed(2));
|
||||
$('#sen20').val(val.txtsen20);
|
||||
$('#totalsen20').val(formatter.format(val.k020));
|
||||
|
||||
$('#sen50').val(parseFloat(val.txtsen50).toFixed(2));
|
||||
$('#totalsen50').val(parseFloat(val.k050).toFixed(2));
|
||||
$('#sen50').val(val.txtsen50);
|
||||
$('#totalsen50').val(formatter.format(val.k050));
|
||||
|
||||
$('#ringgit1').val(parseFloat(val.txtring1).toFixed(2));
|
||||
$('#totalring1').val(parseFloat(val.k1).toFixed(2));
|
||||
$('#ringgit1').val(val.txtring1);
|
||||
$('#totalring1').val(formatter.format(val.k1));
|
||||
|
||||
$('#ringgit5').val(parseFloat(val.txtring5).toFixed(2));
|
||||
$('#totalring5').val(parseFloat(val.k5).toFixed(2));
|
||||
$('#ringgit5').val(val.txtring5);
|
||||
$('#totalring5').val(formatter.format(val.k5));
|
||||
|
||||
$('#ringgit10').val(parseFloat(val.txtring10).toFixed(2));
|
||||
$('#totalring10').val(parseFloat(val.k10).toFixed(2));
|
||||
$('#ringgit10').val(val.txtring10);
|
||||
$('#totalring10').val(formatter.format(val.k10));
|
||||
|
||||
$('#ringgit20').val(parseFloat(val.txtring20).toFixed(2));
|
||||
$('#totalring20').val(parseFloat(val.k20).toFixed(2));
|
||||
|
||||
$('#ringgit50').val(parseFloat(val.txtring50).toFixed(2));
|
||||
$('#totalring50').val(parseFloat(val.k50).toFixed(2));
|
||||
|
||||
$('#ringgit100').val(parseFloat(val.txtring100).toFixed(2));
|
||||
$('#totalring100').val(parseFloat(val.k100).toFixed(2));
|
||||
|
||||
|
||||
|
||||
$('#amaunkeping').val(parseFloat(val.jumlahkeping).toFixed(2));
|
||||
$('#amaunbundle').val(parseFloat(val.jumlahbundle).toFixed(2));
|
||||
$('#amaunkeseluruhan').val(parseFloat(val.txtjumlah).toFixed(2));
|
||||
$('#ringgit20').val(val.txtring20);
|
||||
$('#totalring20').val(formatter.format(val.k20));
|
||||
|
||||
$('#ringgit50').val(val.txtring50);
|
||||
$('#totalring50').val(formatter.format(val.k50));
|
||||
|
||||
$('#ringgit100').val(val.txtring100);
|
||||
$('#totalring100').val(formatter.format(val.k100));
|
||||
|
||||
$('#amaunkeping').val(formatter.format(val.jumlahkeping));
|
||||
$('#amaunbundle').val(formatter.format(val.jumlahbundle));
|
||||
$('#amaunkeseluruhan').val(formatter.format(val.txtjumlah));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user