2014-06-13 06:30:40 +00:00
|
|
|
<h2 class="text-center">{%= __("Statement of Account") %}</h2>
|
2017-05-11 06:08:30 +00:00
|
|
|
<h4 class="text-center">
|
|
|
|
{% if (filters.party_name) { %}
|
|
|
|
{%= filters.party_name %}
|
2018-05-03 13:30:43 +00:00
|
|
|
{% } else if (filters.party && filters.show_name) { %}
|
2017-05-11 06:08:30 +00:00
|
|
|
{%= filters.party %}
|
|
|
|
{% } else if (filters.account) { %}
|
|
|
|
{%= filters.account %}
|
|
|
|
{% } %}
|
|
|
|
</h4>
|
2018-03-23 09:34:37 +00:00
|
|
|
|
|
|
|
<h6 class="text-center">
|
|
|
|
{% if (filters.tax_id) { %}
|
|
|
|
{%= __("Tax Id: ")%} {%= filters.tax_id %}
|
|
|
|
{% } %}
|
|
|
|
</h6>
|
|
|
|
|
2014-07-17 06:52:58 +00:00
|
|
|
<h5 class="text-center">
|
2018-02-28 07:23:34 +00:00
|
|
|
{%= frappe.datetime.str_to_user(filters.from_date) %}
|
2014-07-17 06:59:56 +00:00
|
|
|
{%= __("to") %}
|
2018-02-28 07:23:34 +00:00
|
|
|
{%= frappe.datetime.str_to_user(filters.to_date) %}
|
2014-07-17 06:52:58 +00:00
|
|
|
</h5>
|
2014-06-12 13:22:47 +00:00
|
|
|
<hr>
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-01-20 07:24:25 +00:00
|
|
|
<th style="width: 12%">{%= __("Date") %}</th>
|
2014-06-12 13:22:47 +00:00
|
|
|
<th style="width: 15%">{%= __("Ref") %}</th>
|
2018-01-18 04:02:43 +00:00
|
|
|
<th style="width: 25%">{%= __("Party") %}</th>
|
2014-06-12 13:22:47 +00:00
|
|
|
<th style="width: 15%">{%= __("Debit") %}</th>
|
|
|
|
<th style="width: 15%">{%= __("Credit") %}</th>
|
2018-02-07 06:40:14 +00:00
|
|
|
<th style="width: 18%">{%= __("Balance (Dr - Cr)") %}</th>
|
2014-06-12 13:22:47 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-06-05 14:59:24 +00:00
|
|
|
{% for(var i=0, l=data.length-1; i<l; i++) { %}
|
2014-06-12 13:22:47 +00:00
|
|
|
<tr>
|
2018-01-18 04:02:43 +00:00
|
|
|
{% if(data[i].posting_date) { %}
|
2018-02-28 07:23:34 +00:00
|
|
|
<td>{%= frappe.datetime.str_to_user(data[i].posting_date) %}</td>
|
2018-01-18 04:02:43 +00:00
|
|
|
<td>{%= data[i].voucher_type %}
|
|
|
|
<br>{%= data[i].voucher_no %}</td>
|
2015-05-27 07:31:38 +00:00
|
|
|
<td>
|
|
|
|
{% if(!(filters.party || filters.account)) { %}
|
2018-01-18 04:02:43 +00:00
|
|
|
{%= data[i].party || data[i].account %}
|
2015-05-27 07:31:38 +00:00
|
|
|
<br>
|
|
|
|
{% } %}
|
|
|
|
|
2018-01-18 04:02:43 +00:00
|
|
|
{{ __("Against") }}: {%= data[i].against %}
|
|
|
|
<br>{%= __("Remarks") %}: {%= data[i].remarks %}
|
|
|
|
{% if(data[i].bill_no) { %}
|
|
|
|
<br>{%= __("Supplier Invoice No") %}: {%= data[i].bill_no %}
|
|
|
|
{% } %}
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right">
|
2018-02-12 09:34:50 +00:00
|
|
|
{%= format_currency(data[i].debit, filters.presentation_currency) %}</td>
|
2018-01-18 04:02:43 +00:00
|
|
|
<td style="text-align: right">
|
2018-02-12 09:34:50 +00:00
|
|
|
{%= format_currency(data[i].credit, filters.presentation_currency) %}</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
{% } else { %}
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
2018-01-18 04:02:43 +00:00
|
|
|
<td><b>{%= frappe.format(data[i].account, {fieldtype: "Link"}) || " " %}</b></td>
|
2018-02-07 06:40:14 +00:00
|
|
|
<td style="text-align: right">
|
2018-02-12 09:34:50 +00:00
|
|
|
{%= data[i].account && format_currency(data[i].debit, filters.presentation_currency) %}
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
{%= data[i].account && format_currency(data[i].credit, filters.presentation_currency) %}
|
|
|
|
</td>
|
2018-02-28 07:23:34 +00:00
|
|
|
{% } %}
|
2018-02-12 09:34:50 +00:00
|
|
|
<td style="text-align: right">
|
|
|
|
{%= format_currency(data[i].balance, filters.presentation_currency) %}
|
2018-02-07 06:40:14 +00:00
|
|
|
</td>
|
2014-06-12 13:22:47 +00:00
|
|
|
</tr>
|
|
|
|
{% } %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-02-28 07:23:34 +00:00
|
|
|
<p class="text-right text-muted">Printed On {%= frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string()) %}</p>
|