2014-12-01 11:31:44 +00:00
|
|
|
<h2 class="text-center">{%= __(report.report_name) %}</h2>
|
2016-03-15 10:40:04 +00:00
|
|
|
<h4 class="text-center">{%= filters.customer || filters.supplier %} </h4>
|
2014-12-01 11:31:44 +00:00
|
|
|
<h5 class="text-center">
|
2016-11-16 05:43:46 +00:00
|
|
|
{%= __(filters.ageing_based_on) %}
|
2014-12-01 11:31:44 +00:00
|
|
|
{%= __("Until") %}
|
|
|
|
{%= dateutil.str_to_user(filters.report_date) %}
|
|
|
|
</h5>
|
|
|
|
<hr>
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-11-16 05:43:46 +00:00
|
|
|
{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
|
2017-08-25 06:40:49 +00:00
|
|
|
<th style="width: 14%">{%= __("Date") %}</th>
|
|
|
|
<th style="width: 16%">{%= __("Ref") %}</th>
|
|
|
|
<th style="width: 30%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
|
|
|
|
<th style="width: 10%">{%= __("Invoiced Amount") %}</th>
|
|
|
|
<th style="width: 10%">{%= __("Paid Amount") %}</th>
|
|
|
|
<th style="width: 10%">{%= report.report_name === "Accounts Receivable" ? __('Credit Note') : __('Debit Note') %}</th>
|
|
|
|
<th style="width: 10%">{%= __("Outstanding Amount") %}</th>
|
2014-12-01 11:31:44 +00:00
|
|
|
{% } else { %}
|
2017-08-25 06:40:49 +00:00
|
|
|
<th style="width: 40%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
|
2014-12-01 11:31:44 +00:00
|
|
|
<th style="width: 15%">{%= __("Total Invoiced Amount") %}</th>
|
|
|
|
<th style="width: 15%">{%= __("Total Paid Amount") %}</th>
|
2017-06-13 05:48:39 +00:00
|
|
|
<th style="width: 15%">{%= report.report_name === "Accounts Receivable Summary" ? __('Credit Note Amount') : __('Debit Note Amount') %}</th>
|
2014-12-01 11:31:44 +00:00
|
|
|
<th style="width: 15%">{%= __("Total Outstanding Amount") %}</th>
|
|
|
|
{% } %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for(var i=0, l=data.length; i<l; i++) { %}
|
|
|
|
<tr>
|
2016-11-16 05:43:46 +00:00
|
|
|
{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
|
2016-03-17 09:42:05 +00:00
|
|
|
{% if(data[i][__("Customer")] || data[i][__("Supplier")]) { %}
|
2014-12-01 11:31:44 +00:00
|
|
|
<td>{%= dateutil.str_to_user(data[i][__("Posting Date")]) %}</td>
|
|
|
|
<td>{%= data[i][__("Voucher Type")] %}
|
|
|
|
<br>{%= data[i][__("Voucher No")] %}</td>
|
2017-08-25 06:40:49 +00:00
|
|
|
<td>
|
|
|
|
{% if(!(filters.customer || filters.supplier)) { %}
|
|
|
|
{%= data[i][__("Customer Name")] || data[i][__("Customer")] || data[i][__("Supplier Name")] || data[i][__("Supplier")] %}<br>{%= __("Remarks") %}:
|
|
|
|
{% } %}
|
|
|
|
{%= data[i][__("Remarks")] %}
|
|
|
|
</td>
|
2016-04-11 06:03:14 +00:00
|
|
|
<td style="text-align: right">
|
2016-11-16 05:43:46 +00:00
|
|
|
{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"]) %}</td>
|
2016-04-11 06:03:14 +00:00
|
|
|
<td style="text-align: right">
|
2016-11-16 05:43:46 +00:00
|
|
|
{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
|
2017-06-13 05:48:39 +00:00
|
|
|
<td style="text-align: right">
|
|
|
|
{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %}</td>
|
2016-04-11 06:03:14 +00:00
|
|
|
<td style="text-align: right">
|
2016-11-16 05:43:46 +00:00
|
|
|
{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
|
2014-12-01 11:31:44 +00:00
|
|
|
{% } else { %}
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
2016-03-17 09:42:05 +00:00
|
|
|
<td><b>{%= __("Total") %}</b></td>
|
2014-12-01 11:31:44 +00:00
|
|
|
<td style="text-align: right">
|
2017-06-14 07:02:52 +00:00
|
|
|
{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"] ) %}</td>
|
2014-12-01 11:31:44 +00:00
|
|
|
<td style="text-align: right">
|
2017-06-14 07:02:52 +00:00
|
|
|
{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
|
2017-06-14 07:24:48 +00:00
|
|
|
<td style="text-align: right">{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} </td>
|
2014-12-01 11:31:44 +00:00
|
|
|
<td style="text-align: right">
|
2017-06-14 07:02:52 +00:00
|
|
|
{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
|
2014-12-01 11:31:44 +00:00
|
|
|
{% } %}
|
|
|
|
{% } else { %}
|
|
|
|
{% if(data[i][__("Customer")] || data[i][__("Supplier")]|| " ") { %}
|
2016-03-17 09:42:05 +00:00
|
|
|
{% if((data[i][__("Customer")] || data[i][__("Supplier")]) != __("'Total'")) { %}
|
2017-08-25 06:40:49 +00:00
|
|
|
<td>
|
|
|
|
{% if(!(filters.customer || filters.supplier)) { %}
|
|
|
|
{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
|
|
|
|
<br>{%= __("Remarks") %}:
|
|
|
|
{% } %}
|
|
|
|
{%= data[i][__("Remarks")] %}
|
|
|
|
</td>
|
2016-03-17 09:42:05 +00:00
|
|
|
{% } else { %}
|
|
|
|
<td><b>{%= __("Total") %}</b></td>
|
|
|
|
{% } %}
|
2017-06-14 07:02:52 +00:00
|
|
|
<td style="text-align: right">{%= format_currency(data[i][__("Total Invoiced Amt")], data[i]["currency"]) %}</td>
|
|
|
|
<td style="text-align: right">{%= format_currency(data[i][__("Total Paid Amt")], data[i]["currency"]) %}</td>
|
|
|
|
<td style="text-align: right">{%= report.report_name === "Accounts Receivable Summary" ? format_currency(data[i][__("Credit Note Amt")], data[i]["currency"]) : format_currency(data[i][__("Debit Note Amt")], data[i]["currency"]) %}</td>
|
|
|
|
<td style="text-align: right">{%= format_currency(data[i][__("Total Outstanding Amt")], data[i]["currency"]) %}</td>
|
2014-12-01 11:31:44 +00:00
|
|
|
{% } %}
|
|
|
|
{% } %}
|
|
|
|
</tr>
|
|
|
|
{% } %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-11-16 05:43:46 +00:00
|
|
|
<p class="text-right text-muted">{{ __("Printed On") }}{%= dateutil.str_to_user(dateutil.get_datetime_as_string()) %}</p>
|