i want to skip javascript button press
this is a screenshot
i want it to print the total directly without the button press
this is my code
gtotal = formatDecimal(twt);
<?php if ($pos_settings->rounding) {?>
round_total = roundNumber(gtotal, <?=$pos_settings->rounding?>);
var rounding = formatDecimal(0 - (gtotal - round_total));
$('#twt').text(formatMoney(round_total) + ' (' + formatMoney(rounding) + ')');
$('#quick-payable').text(round_total);
<?php } else {?>
$('#twt').text(formatMoney(gtotal));
$('#quick-payable').text(gtotal);
<?php }
?>
$('#item_count').text(count - 1);
$('#paymentModal').appendTo("body").modal('show');
$('#amount_1').focus();