- {% endif %}
+ N{{ object.pk|stringformat:"05d" }}: '{{ object.name }}'
-N{{ object.pk|stringformat:"05d" }}: '{{ object.name }}'
-
-
-{{object.start_date|date:"D jS N Y"}}
-
-
-
-
- {{ object.description|default_if_none:""|linebreaksbr }}
+
+ {{object.start_date|date:"D jS N Y"}}
-
-
-{% if invoice %}
+
+
+ {{ object.description|default_if_none:""|linebreaksbr }}
+
+
|
- INVOICE
-
-
-
- | Invoice Number |
-
- {{ invoice.pk|stringformat:"05d" }}
- |
-
-
- | Invoice Date |
-
- {{ invoice.invoice_date|date:"d/m/Y" }}
- |
-
-
- | PO Number |
-
- {{ object.purchase_order|default_if_none:"" }}
- |
-
+ {% if invoice %}
+ INVOICE
+
+
+
+ | Invoice Number |
+
+ {{ invoice.pk|stringformat:"05d" }}
+ |
+
+
+ | Invoice Date |
+
+ {{ invoice.invoice_date|date:"d/m/Y" }}
+ |
+
+ {% if object.purchase_order %}
+
+ | PO Number |
+
+ {{ object.purchase_order|default_if_none:"" }}
+ |
+
+ {% endif %}
+
-
+ {% elif quote %}
+
+ QUOTE
+
+
+
+ | Quote Date |
+
+ {% now "d/m/Y" %}
+ |
+
+
+
+ {% elif receipt %}
+
+ RECEIPT
+
+ {% endif %}
|