From 8e8c462e80ec6ee45b487851df012d1ee9c33e8b Mon Sep 17 00:00:00 2001 From: Marwan Alwali Date: Wed, 7 May 2025 15:05:57 +0300 Subject: [PATCH] update --- inventory/admin.py | 1 + templates/sales/sales_list.html | 52 +++++++++++++++++---------------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/inventory/admin.py b/inventory/admin.py index fa2e571a..1435e3d0 100644 --- a/inventory/admin.py +++ b/inventory/admin.py @@ -59,6 +59,7 @@ admin.site.register(models.VatRate) admin.site.register(ledger_models.CustomerModel) admin.site.register(ledger_models.VendorModel) admin.site.register(ledger_models.ItemModel) +admin.site.register(ledger_models.ItemTransactionModel) admin.site.register(models.Opportunity) admin.site.register(models.Notification) admin.site.register(models.Lead) diff --git a/templates/sales/sales_list.html b/templates/sales/sales_list.html index 3db0d4cf..8aefed2c 100644 --- a/templates/sales/sales_list.html +++ b/templates/sales/sales_list.html @@ -104,47 +104,48 @@ - - - - - - - - - - - + + + + + + + + + + + {% for tx in txs %} - - - - - + - - - - - - - +
+ {{ _("Customer Name")}}{{ _("Customer Address")}}{{ _("Customer Phone")}}{{ _("Make") }}{{ _("Model") }}{{ _("VIN") }}{{ _("Trim") }}{{ _("Price") }}{{ _("Quotation") }}{{ _("Invoice") }}{{ _("Staff Member") }}{{ _("Customer Address")}}{{ _("Customer Phone")}}{{ _("Make") }}{{ _("Model") }}{{ _("VIN") }}{{ _("Trim") }}{{ _("Price") }}{{ _("Quotation") }}{{ _("Invoice") }}{{ _("Status") }}{{ _("Staff Member") }}
+

{{tx.customer.customer_name}}

+

{{tx.customer.address_1}}

+

{{tx.customer.phone}}

{{tx.info.make}} + {{tx.info.make}}

{{tx.info.model}}

+

{{tx.info.vin}}

+

{{tx.info.trim}}

+

{{tx.finance.total}}

+ {% if tx.has_estimate %}

@@ -155,14 +156,14 @@ {% elif tx.estimate.status == "in_review" %} {{tx.estimate.status}} {% elif tx.estimate.status == "approved" %} - {{tx.estimate.status}} + {{tx.estimate.status}} {% elif tx.estimate.status == "completed" %} {{tx.estimate.status}} {% endif %}

{% endif %}
+ {% if tx.has_invoice %}

@@ -173,7 +174,7 @@ {% elif tx.invoice.is_review %} {{tx.invoice.invoice_status}} {% elif tx.invoice.is_approved %} - {{tx.invoice.invoice_status}} + {{tx.invoice.invoice_status}} {% elif tx.invoice.is_completed %} {{tx.invoice.invoice_status}} {% elif tx.invoice.is_paid %} @@ -186,8 +187,8 @@

{% endif %}
+ + {% if car.status == "available" %} {{car.status}} {% elif car.status == "reserved" %} @@ -198,6 +199,7 @@ {{car.status}} {% endif %}