- | {{ estimate.estimate_number }} |
- {{ estimate.customer.customer_name }} |
+ {{ extra.content_object.estimate_number }} |
+ {{ extra.content_object.customer.customer_name }} |
- {% if estimate.status == 'draft' %}
+ {% if extra.content_object.status == 'draft' %}
{% trans "Draft" %}
- {% elif estimate.status == 'in_review' %}
+ {% elif extra.content_object.status == 'in_review' %}
{% trans "In Review" %}
- {% elif estimate.status == 'approved' %}
+ {% elif extra.content_object.status == 'approved' %}
{% trans "Approved" %}
- {% elif estimate.status == 'declined' %}
+ {% elif extra.content_object.status == 'declined' %}
{% trans "Declined" %}
- {% elif estimate.status == 'canceled' %}
+ {% elif extra.content_object.status == 'canceled' %}
{% trans "Canceled" %}
- {% elif estimate.status == 'completed' %}
+ {% elif extra.content_object.status == 'completed' %}
{% trans "Completed" %}
- {% elif estimate.status == 'void' %}
+ {% elif extra.content_object.status == 'void' %}
{% trans "Void" %}
{% endif %}
|
- {{ estimate.get_status_action_date }} |
- {{ estimate.created }} |
+ {{ extra.content_object.get_status_action_date }} |
+ {{ extra.content_object.created }} |
-
{% trans "view"|capfirst %}
diff --git a/templates/sales/invoices/invoice_detail.html b/templates/sales/invoices/invoice_detail.html
index 73dd158a..ed16bd65 100644
--- a/templates/sales/invoices/invoice_detail.html
+++ b/templates/sales/invoices/invoice_detail.html
@@ -86,12 +86,12 @@
{% endif %}
{% if invoice.invoice_status == 'approved' %}
- {% trans 'Record Payment' %}
+ {% trans 'Record Payment' %}
{% endif %}
{% if not invoice.is_paid %}
{% endif %}
- {% trans 'Preview' %}
+ {% trans 'Preview' %}
{{invoice.amount_owned}}
|