{% extends "pos/base.html" %} {% load static %} {% block title %}Fiscal Invoice {{ inv.usin }}{% endblock %} {% block heading %}Fiscal Invoice: {{ inv.usin }}{% endblock %} {% block content %} Back to Dashboard
Status: {{ inv.get_fiscal_status_display }} {% if inv.fiscal_invoice_number %} | Fiscal#: {{ inv.fiscal_invoice_number }} {% endif %} {% if inv.response_message %} | {{ inv.response_message }} {% endif %}
Invoice Header
{% if inv.ref_usin %}{% endif %} {% if inv.buyer_name %}{% endif %} {% if inv.buyer_phone %}{% endif %}
USIN{{ inv.usin }}
POS ID{{ inv.pos_id }}
Source{{ inv.source_type }} {% if inv.source_id %}(#{{ inv.source_id }}){% endif %}
Date{{ inv.invoice_datetime|date:"d-M-Y H:i" }}
Payment{{ inv.get_payment_mode_display }}
Type{{ inv.get_invoice_type_display }}
RefUSIN{{ inv.ref_usin }}
Buyer{{ inv.buyer_name }}
Phone{{ inv.buyer_phone }}
Amounts
Sale ValueRs. {{ inv.total_sale_value|floatformat:2 }}
Tax ChargedRs. {{ inv.total_tax_charged|floatformat:2 }}
DiscountRs. {{ inv.discount|floatformat:2 }}
Further TaxRs. {{ inv.further_tax|floatformat:2 }}
Total BillRs. {{ inv.total_bill_amount|floatformat:2 }}
Quantity{{ inv.total_quantity|floatformat:1 }}
{% if qr_url %}
QR Verification
Verify on PRA
{{ qr_url }}
{% endif %} {% if inv.fiscal_status == 'failed' %}
{% csrf_token %} Attempts: {{ inv.retry_count }}
{% endif %}
Invoice Items ({{ items|length }})
{% for item in items %} {% endfor %}
CodeNamePCTCodeQty RateSale ValueTax%Tax DiscTotal
{{ item.item_code }} {{ item.item_name }} {{ item.pct_code }} {{ item.quantity|floatformat:1 }} - {{ item.sale_value|floatformat:2 }} {{ item.tax_rate }}% {{ item.tax_charged|floatformat:2 }} {{ item.discount|floatformat:2 }} {{ item.total_amount|floatformat:2 }}
{% if logs %}
API Logs
{% for log in logs %}
{{ log.response_status|default:"?" }} {{ log.created_at|date:"d-M-y H:i:s" }} | {{ log.request_url }}
{% if log.response_body %}
{{ log.response_body }}
{% endif %} {% if log.error_message %}
{{ log.error_message }}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}