2014-07-14 09:22:49 +00:00
|
|
|
<div style="margin-bottom: 7px;" class="text-center">
|
|
|
|
{%= frappe.boot.letter_heads[frappe.defaults.get_default("letter_head")] %}
|
|
|
|
</div>
|
2014-06-13 06:30:40 +00:00
|
|
|
<h2 class="text-center">{%= __("Statement of Account") %}</h2>
|
2014-07-17 06:52:58 +00:00
|
|
|
<h4 class="text-center">{%= filters.account || "General Ledger" %}</h4>
|
|
|
|
<h5 class="text-center">
|
|
|
|
{%= dateutil.str_to_user(filters.from_date) %}
|
|
|
|
{%= __(" to ") %}
|
|
|
|
{%= dateutil.str_to_user(filters.to_date) %}
|
|
|
|
</h5>
|
2014-06-12 13:22:47 +00:00
|
|
|
<hr>
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 10%">{%= __("Date") %}</th>
|
|
|
|
<th style="width: 15%">{%= __("Ref") %}</th>
|
|
|
|
<th style="width: 45%">{%= __("Party") %}</th>
|
|
|
|
<th style="width: 15%">{%= __("Debit") %}</th>
|
|
|
|
<th style="width: 15%">{%= __("Credit") %}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for(var i=0, l=data.length; i<l; i++) { %}
|
|
|
|
<tr>
|
|
|
|
{% if(data[i].posting_date) { %}
|
|
|
|
<td>{%= dateutil.str_to_user(data[i].posting_date) %}</td>
|
2014-06-27 15:23:13 +00:00
|
|
|
<td>{%= data[i].voucher_type%}
|
|
|
|
<br>{%= data[i].voucher_no %}</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
<td>{%= data[i].account %}
|
|
|
|
<br>{%= __("Against") %}: {%= data[i].account %}
|
|
|
|
<br>{%= __("Remarks") %}: {%= data[i].remarks %}</td>
|
2014-06-27 15:23:13 +00:00
|
|
|
<td style="text-align: right">{%= format_currency(data[i].debit) %}</td>
|
|
|
|
<td style="text-align: right">{%= format_currency(data[i].credit) %}</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
{% } else { %}
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td><b>{%= data[i].account || " " %}</b></td>
|
|
|
|
<td style="text-align: right">
|
2014-06-27 15:23:13 +00:00
|
|
|
{%= data[i].account && format_currency(data[i].debit) %}</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
<td style="text-align: right">
|
2014-06-27 15:23:13 +00:00
|
|
|
{%= data[i].account && format_currency(data[i].credit) %}</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
{% } %}
|
|
|
|
</tr>
|
|
|
|
{% } %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-06-27 15:23:13 +00:00
|
|
|
<p class="text-right text-muted">Printed On {%= dateutil.str_to_user(dateutil.get_datetime_as_string()) %}</p>
|