isAllowed()): ?> isFullyPaidAfterCustomerBalanceApplication = isFullyPaidAfterApplication() ? 'true' : 'false'); ?>; quoteBaseGrandTotal = getQuote()->getBaseGrandTotal(); ?>; function setCustomerBalanceAvailable(balance, formattedBalance) { if ($('customerbalance_placer')) { if (balance == 0) { $('use_customer_balance').checked = false; $('use_customer_balance').disabled = true; $('customerbalance_placer').hide(); } else { $('use_customer_balance').disabled = false; $('customerbalance_placer').show(); } } if ($('customerbalance_available_amount')) { $('customerbalance_available_amount').innerHTML = formattedBalance; } } setCustomerBalanceAvailable('getBalance(); ?>', 'currency($this->getBalance()); ?>');