{% block body %}

Cross World Group
Plot 1/B, Road 90, Gulshan -2, Dhaka 1212.

{# #}
{# {% if smallName == 'Vehicle' %} {% endif %} #}

ACCOUNT STATEMENT
For the period from {{ fromDate|date("d/m/Y") }} to {{ toDate|date("d/m/Y") }}
Print Date : {{ "now"|date("d/m/Y") }}

{{ smallName }} No : {{vehicle.number}}

Purchase Date : {{ vehicle.purchaseDate|date("d/m/Y") }}

{% for serviceDetailsOne in serviceDetailsOneObj %} Business Unit : {{serviceDetailsOne.businessUnit}} {% endfor %}

Opening Running KM : {{vehicle.note|number_format(0, '.', ',')}}
{% set grandTotalAmount = 0 %} {% set openingBalance = 0 %} {% set counter = 0 %} {% for transaction in transactionList %} {% set counter = ( counter | default(0) ) + 1 %} {% set openingBalance = transaction.OpeningBalance %}
Account Number : {{ transaction.AccountNumber }} - {{ transaction.Currency }} Account Name : {{ transaction.AccountName }}
Opening Balance : {{ transaction.OpeningBalance|number_format(2, '.', ',') }} Ledger Balance : {{ transaction.LedgerBalance|number_format(2, '.', ',') }}
Available Balance : {{ transaction.LedgerBalance|number_format(2, '.', ',') }}
{% endfor %}
{% set totalDebitAmount = 0 %} {% set totalCreditAmount = 0 %} {% set runingBalance = openingBalance %} {% set debitCount = 0 %} {% set creditCount = 0 %} {% for detail in transactionDetailsList %} {% set runingBalance = runingBalance + detail.credit %} {% set runingBalance = runingBalance - detail.debit %} {% set totalDebitAmount = totalDebitAmount | default(0) + detail.debit %} {% set totalCreditAmount = totalCreditAmount | default(0) + detail.credit %} {% if detail.debit > 0 %} {% set debitCount = debitCount | default(0) + 1 %} {% else %} {% set creditCount = creditCount | default(0) + 1 %} {% endif %} {% endfor %}
SL No.  Date   Transaction Details Debit Credit Runing Balance
{{ loop.index }}  {{ detail.trandate|date('d-m-Y') }}  {{ detail.trandetails }} {% if detail.debit > 0 %} {{ detail.debit|number_format(2, '.', ',') }} {% endif %} {% if detail.credit > 0 %} {{ detail.credit|number_format(2, '.', ',') }} {% endif %} {{ runingBalance|number_format(2, '.', ',') }}

Total Debit Count : {{ debitCount }} Total Debit Amount : {{ totalDebitAmount|number_format(2, '.', ',') }}
Total Credit Count : {{ creditCount }} Total Credit Amount : {{ totalCreditAmount|number_format(2, '.', ',') }}
{% endblock %}