示例#1
0
		var new_balance = parseFloat(old_balance) - parseFloat(payment);
		$('#new_balance').val(parseFloat(new_balance).toFixed(2));
	<?php 
} else {
    ?>
		var new_balance = parseFloat(old_balance) + parseFloat(payment);
		$('#new_balance').val(parseFloat(new_balance).toFixed(2));
	<?php 
}
?>
}
</script>


</div> <!-- /#transactions -->





<div class="tab-pane fade in" id="history">
	<?php 
get_log_table(array('invoice_id' => $invoice['id']), 'ASC');
?>
</div> <!-- #history -->

</div> <!-- /#myTabContent -->

<?php 
calc_account_balance($invoice['account_id']);
示例#2
0
<?php

calc_account_balance($account_id);
$account = get_account(array('id' => $account_id));
?>


<ol class="breadcrumb">
  <li><a href="<?php 
echo site_url();
?>
"><?php 
lang('Dashboard');
?>
</a></li>
  <li><a href="<?php 
echo site_url('account');
?>
"><?php 
lang('Account');
?>
</a></li>
  <li><a href="<?php 
echo site_url('account/list_account');
?>
"><?php 
lang('Account List');
?>
</a></li>
  <li class="active"><?php 
echo $account['code'];