2017-04-24 11:01:51 +00:00
|
|
|
{% var letterhead= filters.letter_head || frappe.get_doc(":Company", filters.company).default_letter_head || frappe.defaults.get_default("letter_head"); %}
|
|
|
|
{% if(letterhead) { %}
|
2014-07-14 09:22:49 +00:00
|
|
|
<div style="margin-bottom: 7px;" class="text-center">
|
2017-04-24 11:01:51 +00:00
|
|
|
{%= frappe.boot.letter_heads[letterhead].header %}
|
2014-07-14 09:22:49 +00:00
|
|
|
</div>
|
2017-04-24 11:01:51 +00:00
|
|
|
{% } %}
|
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 %}
|
|
|
|
{% } else if (filters.party) { %}
|
|
|
|
{%= filters.party %}
|
|
|
|
{% } else if (filters.account) { %}
|
|
|
|
{%= filters.account %}
|
|
|
|
{% } %}
|
|
|
|
</h4>
|
2014-07-17 06:52:58 +00:00
|
|
|
<h5 class="text-center">
|
|
|
|
{%= dateutil.str_to_user(filters.from_date) %}
|
2014-07-17 06:59:56 +00:00
|
|
|
{%= __("to") %}
|
2014-07-17 06:52:58 +00:00
|
|
|
{%= dateutil.str_to_user(filters.to_date) %}
|
|
|
|
</h5>
|
2014-06-12 13:22:47 +00:00
|
|
|
<hr>
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-07-28 09:58:26 +00:00
|
|
|
<th style="width: 15%">{%= __("Date") %}</th>
|
2014-06-12 13:22:47 +00:00
|
|
|
<th style="width: 15%">{%= __("Ref") %}</th>
|
2014-07-28 09:58:26 +00:00
|
|
|
<th style="width: 40%">{%= __("Party") %}</th>
|
2014-06-12 13:22:47 +00:00
|
|
|
<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>
|
2014-09-12 06:30:34 +00:00
|
|
|
{% if(data[i][__("Posting Date")]) { %}
|
|
|
|
<td>{%= dateutil.str_to_user(data[i][__("Posting Date")]) %}</td>
|
|
|
|
<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)) { %}
|
|
|
|
{%= data[i][__("Party")] || data[i][__("Account")] %}
|
|
|
|
<br>
|
|
|
|
{% } %}
|
|
|
|
|
|
|
|
{{ __("Against") }}: {%= data[i][__("Against Account")] %}
|
2014-09-12 06:30:34 +00:00
|
|
|
<br>{%= __("Remarks") %}: {%= data[i][__("Remarks")] %}</td>
|
|
|
|
<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>
|
2015-05-27 07:31:38 +00:00
|
|
|
<td><b>{%= frappe.format(data[i][__("Account")], {fieldtype: "Link"}) || " " %}</b></td>
|
2014-06-12 13:22:47 +00:00
|
|
|
<td style="text-align: right">
|
2014-09-12 06:30:34 +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-09-12 06:30:34 +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>
|