diff --git a/inventory/models.py b/inventory/models.py index 95a447e5..aecd91f0 100644 --- a/inventory/models.py +++ b/inventory/models.py @@ -2703,7 +2703,8 @@ class CustomGroup(models.Model): "carfinance", "notes", "tasks", - "activity",], + "activity", + "payment"], other_perms=[ "view_car", "view_carlocation", diff --git a/templates/bill/bill_detail.html b/templates/bill/bill_detail.html index 0ecab405..5de0d08e 100644 --- a/templates/bill/bill_detail.html +++ b/templates/bill/bill_detail.html @@ -43,8 +43,7 @@
+ {% trans 'Vendor Name' %}: + {{ bill.vendor.vendor_name }} +
+{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }} @@ -121,7 +125,11 @@
+ {% trans 'Vendor Name' %}: + {{ bill.vendor.vendor_name }} +
+{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }} @@ -144,7 +152,11 @@ {% endif %} {% elif bill.is_approved %}
+ {% trans 'Vendor Name' %}: + {{ bill.vendor.vendor_name }} +
+{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }} @@ -176,7 +188,11 @@ {% endif %} {% elif bill.is_paid %}
+ {% trans 'Vendor Name' %}: + {{ bill.vendor.vendor_name }} +
+{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }} @@ -190,7 +206,7 @@
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% else %} -{% trans 'Bill Amount' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }} diff --git a/templates/bill/tags/bill_item_formset.html b/templates/bill/tags/bill_item_formset.html index d7978ae6..5737e81a 100644 --- a/templates/bill/tags/bill_item_formset.html +++ b/templates/bill/tags/bill_item_formset.html @@ -140,7 +140,7 @@
{{ po_model.ce_model.estimate_number }}
-{{ po_model.date_draft|date }}
{% endif %} -{{ po_model.date_draft|date }}
-{{CURRENCY}}{{ po_model.po_amount|currency_format }}
-{{ po_model.date_in_review|date }}
+ {% endif %} - {% if po_model.is_review %} -{{ po_model.date_in_review|date }}
-{{CURRENCY}}{{ po_model.po_amount|currency_format }}
-{{ po_model.date_approved|date }}
+ {% endif %} - {% if po_model.is_approved %} -{{ po_model.date_approved|date }}
-{{ po_model.po_amount|currency_format }}{{CURRENCY}}
-{{ po_model.po_amount_received|currency_format }}{{CURRENCY}}
-{{ po_model.date_fulfilled|date }}
+ {% endif %} +{{ po_model.date_fulfilled|date }}
-{{CURRENCY}}{{ po_model.po_amount|currency_format }}
- - {% trans 'Fulfilled' %} - -