{% extends 'base.html' %} {% load humanize %} {% block title %}Transaction {{ transaction.reference_no }} - 3ncount{% endblock %} {% block page_title %}Transaction Details{% endblock %} {% block page_actions %}
Edit Delete
{% endblock %} {% block content %}

{{ transaction.reference_no }}

{% if transaction.transaction_type == 'INCOME' %} Income {% else %} Expense {% endif %}
Transaction Date
{{ transaction.date|date:"d M Y" }}
Reference Number
{{ transaction.reference_no }}
Description
{{ transaction.description }}
{% if transaction.contact %} {% endif %}
Amount
RM {{ transaction.amount|floatformat:2|intcomma }}
Payment Method
{{ transaction.get_payment_method_display }}
Payment Status
{% if transaction.is_paid %} Paid {% else %} Unpaid {% endif %}
{% if transaction.payment_date %}
Payment Date
{{ transaction.payment_date|date:"d M Y" }}
{% endif %}
{% if transaction.is_sst_applicable %}
SST Applicable
Yes (6%)
SST Amount
RM {{ transaction.sst_amount|floatformat:2|intcomma }}
{% endif %} {% if transaction.notes %}
Notes
{{ transaction.notes }}
{% endif %}
Created by {{ transaction.created_by.username }}
Created at {{ transaction.created_at|date:"d M Y H:i" }}
Last updated: {{ transaction.updated_at|date:"d M Y H:i" }}
{% if lines %}

Accounting Entries (Double Entry)

{% for line in lines %} {% endfor %}
Account Description Debit (RM) Credit (RM)
{{ line.account.code }} {{ line.account.name }}
{{ line.description|default:"—" }} {% if line.debit_amount > 0 %} {{ line.debit_amount|floatformat:2|intcomma }} {% else %} {% endif %} {% if line.credit_amount > 0 %} {{ line.credit_amount|floatformat:2|intcomma }} {% else %} {% endif %}
{% endif %}
{% endblock %}