From f17975540af7fab21d701cbb7b610dd5f6716c57 Mon Sep 17 00:00:00 2001 From: Marwan Alwali Date: Sun, 16 Mar 2025 21:44:36 +0300 Subject: [PATCH 1/3] update --- templates/sales/estimates/estimate_detail.html | 12 ++++++------ templates/sales/estimates/estimate_preview.html | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/sales/estimates/estimate_detail.html b/templates/sales/estimates/estimate_detail.html index cccc682c..b6b53fa5 100644 --- a/templates/sales/estimates/estimate_detail.html +++ b/templates/sales/estimates/estimate_detail.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n %} +{% load i18n custom_filters%} {% block title %}{{ _("View Quotation") }}{% endblock title %} @@ -210,29 +210,29 @@ {% endfor %} - {% trans "Vat" %} ({{data.vat}}%) + {% trans "Vat" %} ({{data.vat|percentage}}) - + {{data.total_vat_amount}} + + {{data.total_vat_amount|floatformat}} {% trans "Discount Amount" %} - - {{data.total_discount}} + - {{data.total_discount|floatformat}} {% trans "Additional Services" %} {% for service in data.additionals %} - + {{service.name}} - {{service.price_}}
+ + {{service.name}} - {{service.price_|floatformat}}
{% endfor %} {% trans "Grand Total" %} - {{data.grand_total}} + {{data.grand_total|floatformat}} diff --git a/templates/sales/estimates/estimate_preview.html b/templates/sales/estimates/estimate_preview.html index eb6f77e9..ee292e97 100644 --- a/templates/sales/estimates/estimate_preview.html +++ b/templates/sales/estimates/estimate_preview.html @@ -216,8 +216,8 @@ {% for item in data.additionals %} {{ item.name }} - {{ item.price|floatformat:2 }} - {{ item.price_|floatformat:2 }} + {{ item.price|floatformat }} + {{ item.price_|floatformat }} {% endfor %} @@ -229,12 +229,12 @@ - + - + From 32cf1a63f8c44e8d718d6132b043ae745cae5318 Mon Sep 17 00:00:00 2001 From: Marwan Alwali Date: Sun, 16 Mar 2025 23:58:01 +0300 Subject: [PATCH 2/3] update --- inventory/forms.py | 2 +- .../__pycache__/__init__.cpython-311.pyc | Bin 146 -> 191 bytes .../0002_alter_saleorder_payment_method.py | 18 ++++++++++++++++++ inventory/models.py | 12 ++++++++++-- inventory/views.py | 18 ++++++++++++++++++ 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 inventory/migrations/0002_alter_saleorder_payment_method.py diff --git a/inventory/forms.py b/inventory/forms.py index 6cd912b5..d795922a 100644 --- a/inventory/forms.py +++ b/inventory/forms.py @@ -288,7 +288,7 @@ class CarFinanceForm(forms.ModelForm): class CarLocationForm(forms.ModelForm): class Meta: model = CarLocation - fields = ["showroom", "description"] + fields = ["car", "showroom", "description"] widgets = { "description": forms.Textarea(attrs={"rows": 2, "class": "form-control"}), } diff --git a/inventory/management/__pycache__/__init__.cpython-311.pyc b/inventory/management/__pycache__/__init__.cpython-311.pyc index f8712ed747ceb1755750244b22db7a76fe86bc0c..98179969c42524f34b586086c9ef1dd43e2aa573 100644 GIT binary patch delta 74 zcmbQlxSx?{IWI340}!NU&QF`jV`3DfA6lGRRIHzySX7>vmzYzYn3Jg=P??;OSd<%3 cl%JKFTvDu`oLCf}nOByYSCU^;InmV@0B2Jf Date: Tue, 18 Mar 2025 00:24:14 +0300 Subject: [PATCH 3/3] update --- inventory/urls.py | 4 ++-- templates/dealers/assign_car_makes.html | 2 +- templates/dealers/dealer_detail.html | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/inventory/urls.py b/inventory/urls.py index 21765357..cc5e3ca6 100644 --- a/inventory/urls.py +++ b/inventory/urls.py @@ -45,8 +45,8 @@ urlpatterns = [ # ), # Dashboards # path("user//settings/", views.UserSettingsView.as_view(), name="user_settings"), - path("dealer//settings/", views.DealerSettingsView, name="dealer_settings"), - path("dealer/assign-car-makes/", views.assign_car_makes, name="assign_car_makes"), + path("dealers//settings/", views.DealerSettingsView, name="dealer_settings"), + path("dealers/assign-car-makes/", views.assign_car_makes, name="assign_car_makes"), path("dashboards/manager/", views.ManagerDashboard.as_view(), name="manager_dashboard"), path("dashboards/sales/", views.SalesDashboard.as_view(), name="sales_dashboard"), path("test/", views.TestView.as_view(), name="test"), diff --git a/templates/dealers/assign_car_makes.html b/templates/dealers/assign_car_makes.html index 6810bcc5..6730d525 100644 --- a/templates/dealers/assign_car_makes.html +++ b/templates/dealers/assign_car_makes.html @@ -5,7 +5,7 @@
VAT{{ data.total_vat_amount|floatformat:2 }} {{ CURRENCY }}{{ data.total_vat_amount|floatformat }} {{ CURRENCY }} ضريبة القيمة المضافة
Total{{ data.grand_total|floatformat:2 }} {{ CURRENCY }}{{ data.grand_total|floatformat }} {{ CURRENCY }} الإجمالي