{% extends 'base.html' %} {% block title %}{{ title }} - 3ncount2026{% endblock %} {% block content %}
Document No: {% if invoice %}{{ invoice.invoice_number }}{% else %}{{ bill.bill_number }}{% endif %}
{% if invoice %}Customer:{% else %}Vendor:{% endif %} {% if invoice %}{{ invoice.customer.name }}{% else %}{{ bill.vendor.name }}{% endif %}
Date: {% if invoice %}{{ invoice.invoice_date }}{% else %}{{ bill.bill_date }}{% endif %}
Total Amount: RM{% if invoice %}{{ invoice.total|floatformat:2 }}{% else %}{{ bill.total|floatformat:2 }}{% endif %}
Amount Paid: RM{% if invoice %}{{ invoice.get_amount_paid|floatformat:2 }}{% else %}{{ bill.get_amount_paid|floatformat:2 }}{% endif %}
Outstanding Balance: RM{% if invoice %}{{ invoice.get_balance_due|floatformat:2 }}{% else %}{{ bill.get_balance_due|floatformat:2 }}{% endif %}