{% extends '../template.html' %}
{% block subcontent %}
<h2>Keuangan - Neraca Percobaan {{tahun}}</h2>
<br/><br/>

{% if data.length > 0 %}
<table class="data">
	<tr class="orders" valign="top">
		<td style="width:300px"><b>Akun</b></td>
		<td style="width:100px;text-align:right"><b>Debit</b></td>
		<td style="width:100px;text-align:right"><b>Kredit</b></td>
	</tr>
	{% for row in data.list %}
	<tr>
		<td>{{row.nama}}</td>
		<td style="text-align:right">{% if row.debit > 0 %}{{row.debit | currency}}{% endif %}</td>
		<td style="text-align:right">{% if row.kredit > 0 %}{{row.kredit | currency}}{% endif %}</td>
	</tr>
	{% endfor %}
	<tr>
		<td><b>Total</b></td>
		<td style="text-align:right;border-top:2px solid gray;font-size:16px"><b>{{data.totalDebit | currency}}</b></td>
		<td style="text-align:right;border-top:2px solid gray;font-size:16px"><b>{{data.totalKredit | currency}}</b></td>
	</tr>
</table>
{% else %}
	- Data Masih Kosong -<br/><br/>
{% endif %}
<br/><br/><br/>
{% endblock %}
{% block script %}
<script type="text/javascript">
	$(document).ready(function() {
		menuSelected("mLaporan","smNeracaPercobaan");
	});
</script>
{% endblock %}