{% extends 'admin_pages/base_admin.html' %} {% block title %}Invoice # {{ sale_order.id }} | {{ sale_order.consumer.name }} {% endblock %} {% load utils %} {% load static %} {% block content %}
{% include 'includes/print_header.html' %}
To: {{ sale_order.consumer.name }}
ID: #00{{ sale_order.consumer.id }}
Address: {{ sale_order.consumer.address }}
{{ sale_order.consumer.phone_number }}
Commercial Invoice
No: SO00{{ sale_order.id }}
Issue Date: {{ formatted_created_at }}
Payment Status: {{ sale_order.get_payment_status_display }}
{% if sale_order.is_fully_returned %} {% elif sale_order.has_returns %} {% endif %}
{% for item in sale_order.saleorderitems_set.all %} {% endfor %}
# Description Batch No Quantity Unit Price Discount Amount
{{ forloop.counter }} {{ item.product.product.title }} {{ item.product.batch_number }} {{ item.quantity|floatformat:0 }} {% if item.returned_quantity %} (Returned {{ item.returned_quantity|floatformat:0 }}) {% endif %} {{ item.price|floatformat:2 }} AFN {{ item.discount|floatformat:0 }}% {{ item.total_amount|floatformat:2 }} AFN

Total: {{ total|number_to_words }} AFN only.
Gross Amount:
{{ gross_amount|floatformat:2 }} AFN
Total Discount:
{{ total_discount|floatformat:2 }} AFN
{% if sale_order.brt_rate %}
BRT ({{ sale_order.brt_rate }}%):
-{{ brt_amount|floatformat:2 }} AFN
{% else %}
BRT:
Not Applied
{% endif %}
Grand Total:
{{ grand_total|floatformat:2 }} AFN
Previous Balance:
{{ previous_balance|floatformat:2 }} AFN
Net Balance:
{{ net_balance|floatformat:2 }} AFN

Printed At: {{ sale_order.created_at|date:"Y-m-d H:i" }}

Printed By: {{ request.user.last_name }}

Medicine Received By:

Finance Signature:

{% endblock %}