-
-

Business Health Dashboard

- -
+
+

Business Health Dashboard

+
+
+
+ + +
+
+ + +
+
+ +
+
+
+
-

Total Revenue

-

$1.25M

+

Total Cost of Cars Sold

+

{{total_cost_of_cars_sold|floatformat:2}}

+8% from last month @@ -34,8 +45,8 @@
-

Net Profit

-

$1.25M

+

Total Revenue from cars

+

{{total_revenue_from_cars|floatformat:2}}

+8% from last month @@ -47,8 +58,8 @@
-

Gross Profit

-

$1.25M

+

Net Profit From Cars

+

{{net_profit_from_cars|floatformat:2}}

+8% from last month @@ -56,6 +67,87 @@
+
+
+
+
+

Total Discount on cars

+

{{total_discount_on_cars|floatformat:2}}

+
+ + +8% from last month + +
+
+
+
+
+
+
+

Total VAT collected from cars

+

{{total_vat_collected_from_cars|floatformat:2}}

+
+ + +8% from last month + +
+
+
+
+
+
+
+

Total Revenue from Services

+

{{total_revenue_from_services|floatformat:2}}

+
+ + +8% from last month + +
+
+
+ +
+
+
+
+

Total VAT collected from Services

+

{{total_vat_collected_from_services|floatformat:2}}

+
+ + +8% from last month + +
+
+
+
+
+
+
+

{% trans "Total Revenue Generated" %}

+

{{total_revenue_generated|floatformat:2}}

+
+ + +8% from last month + +
+
+
+ +
+
+
+
+

{% trans "Total VAT Collected" %}

+

{{total_vat_collected|floatformat:2}}

+
+ + +8% from last month + +
+
+
+
@@ -69,12 +161,26 @@
+
+
+
+
+

Gross Profit

+

$1.25M

+
+ + +8% from last month + +
+
+
+

Total VAT Collected

-

$1.25M

+

{{total_vat_collected|floatformat:2}}

+8% from last month @@ -87,7 +193,7 @@

Total Cars Sold

-

{{ sold_cars }}

+

{{ total_cars_sold }}

+5 units from last month diff --git a/templates/dashboards/inventory_dashboard.html b/templates/dashboards/inventory_dashboard.html index e5a8cac9..d18771f7 100644 --- a/templates/dashboards/inventory_dashboard.html +++ b/templates/dashboards/inventory_dashboard.html @@ -123,8 +123,8 @@
Car Models by Make in Inventory
-
- +
+ diff --git a/templates/ledger/reports/car_sale_report.html b/templates/ledger/reports/car_sale_report.html index 011bc426..498589a6 100644 --- a/templates/ledger/reports/car_sale_report.html +++ b/templates/ledger/reports/car_sale_report.html @@ -51,7 +51,7 @@

{% trans 'Filters' %}

-
+
-
+
-
+
-
+
+ + +
+
+ + {% comment %} 'cars_sold': cars_sold, + 'current_time': current_time, + 'dealer': dealer, + 'total_revenue_from_cars': total_revenue_from_cars, + 'total_revenue_from_additonals':total_revenue_from_additonals, + 'total_revenue_collected': total_revenue_collected, + 'total_vat_on_cars':total_vat_on_cars, + 'total_vat_from_additonals':total_vat_from_additonals, + 'total_vat_collected':total_vat_collected, + 'total_discount': total_discount, + 'makes': makes, + 'models': models_qs, + 'series': series, + 'years': years, + 'selected_make': selected_make, + 'selected_model': selected_model, + 'selected_serie': selected_serie, + 'selected_year': selected_year, {% endcomment %} +

{% trans 'Report Summary' %}

-
{% trans 'Total Revenue' %}
-

{{ total_revenue|floatformat:2 }}

+
{% trans 'Total Revenue from Cars' %}
+

{{ total_revenue_from_cars|floatformat:2 }}

-
{% trans 'Total VAT Amount' %}
-

{{ 10000|floatformat:2 }}

+
{% trans 'Total Revenue from Services' %}
+

{{ total_revenue_from_additonals|floatformat:2 }}

+
+
+
+
{% trans 'Total Revenue' %}
+

{{total_revenue_collected |floatformat:2 }}

+
+
+
+
+
+
+
{% trans 'Total VAT from Cars' %}
+

{{ total_vat_on_cars|floatformat:2 }}

+
+
+
+
+
+
+
{% trans 'Total VAT from Services' %}
+

{{ total_vat_from_additonals|floatformat:2 }}

+
+
+
+
+
+
+
{% trans 'Total VAT' %}
+

{{ total_vat_collected|floatformat:2 }}

+
+
+
+
{% trans 'Total Discount Amount' %}
-

{{ total_discount|floatformat:2 }}

+

{{ total_discount|floatformat:2 }}

@@ -124,13 +186,10 @@
{% trans 'Total Cars Sold' %}
-

{{ cars_sold|length }}

+

{{ total_cars_sold }}

- - -
@@ -142,7 +201,7 @@ {% trans 'Download as CSV' %}
-
+
@@ -160,7 +219,10 @@ - + + + + @@ -178,12 +240,15 @@ - - - # TODO : check later - - # TODO : check later - + + + + + + + + + {% endfor %} diff --git a/templates/purchase_orders/includes/po_item_formset.html b/templates/purchase_orders/includes/po_item_formset.html index 31005851..7cc612ce 100644 --- a/templates/purchase_orders/includes/po_item_formset.html +++ b/templates/purchase_orders/includes/po_item_formset.html @@ -17,8 +17,7 @@
{% trans 'Marked Price' %} {% trans 'Discount Amount' %} {% trans 'Selling Price' %}{% trans 'Tax Amount' %}{% trans 'VAT on Car' %}{% trans 'Services Price' %}{% trans 'VAT on Services' %}{% trans 'Final Total' %} {% trans 'Invoice Number' %}
{{ car.stock_type|capfirst }} {{ car.created_at|date }} {{ car.invoice.date_paid|date|default_if_none:"-" }}{{ car.cost_price }} {{ car.marked_price }} {{ car.total_discount }} {{ car.selling_price }} {{ car.vat_amount }} {{ car.invoice.invoice_number }}{{ car.cost_price }}{{ car.marked_price }} {{ car.discount}} {{ car.final_price}} {{ car.vat_amount|floatformat:2 }} {{ car.get_additional_services.total|floatformat:2}} {{ car.get_additional_services.services_vat|floatformat:2}}{{ car.final_price_plus_services_plus_vat|floatformat:2 }}{{ car.invoice.invoice_number }}
- + + + + + + + + + +
+ {% trans 'Item' %} {% if po_model.is_draft %} {% endif %} {% elif estimate.status == 'in_review' %} @@ -122,46 +122,49 @@ class="btn btn-phoenix-secondary" data-bs-toggle="modal" data-bs-target="#confirmModal"> - {% trans 'Mark As Approved' %} + {% trans 'Mark As Approved' %} + {% endif %} {% if estimate.can_approve and not request.is_manager %} {% endif %} {% elif estimate.status == 'approved' %} {% if perms.django_ledger.change_estimatemodel %} {% trans 'Send Quotation' %} + class="btn btn-phoenix-primary me-2">{% trans 'Send Quotation' %} + + {% trans 'Print' %} + {% endif %} {% if estimate.sale_orders.first %} {% if perms.django_ledger.add_invoicemodel %} {% trans 'Create Invoice' %} + class="btn btn-phoenix-primary"> {% trans 'Create Invoice' %} {% endif %} {% if perms.inventory.view_saleorder %} {{ _("Preview Sale Order") }} + class="btn btn-phoenix-primary">{{ _("Preview Sale Order") }} {% endif %} {% else %} {% if perms.inventory.add_saleorder %} {% trans 'Create Sale Order' %} + class="btn btn-phoenix-primary"> {% trans 'Create Sale Order' %} {% endif %} {% endif %} {% elif estimate.status == 'completed' %} {% if perms.inventory.view_saleorder %} {{ _("Preview Sale Order") }} + class="btn btn-phoenix-primary">{{ _("Preview Sale Order") }} {% endif %} {% if perms.django_ledger.view_invoicemodel %} - {{ _("View Invoice") }} - + type="button"> + {{ _("View Invoice") }} {% endif %} {% endif %} {% if estimate.can_cancel %} @@ -169,7 +172,7 @@ {% endif %} {% endif %} @@ -179,31 +182,31 @@
- {% trans 'Quotation Number' %}: + {% trans 'Quotation Number' %}:

{{ estimate.estimate_number }}

- {% trans 'Quotation Date' %}: + {% trans 'Quotation Date' %}:

{{ estimate.created }}

- {% trans 'Customer' %}: + {% trans 'Customer' %}:

{{ estimate.customer.customer_name }}

- {% trans 'Email' %}: + {% trans 'Email' %}:

{{ estimate.customer.email }}

- {% trans "Quotation Status" %}: + {% trans "Quotation Status" %}:
{% if estimate.status == 'draft' %} @@ -284,7 +287,7 @@
{% trans "Additional Services" %} {% for service in data.additional_services.services %} - + {{ service.name }} - {{ service.price_|floatformat }} + + {{ service.0.name }} - {{ service.0.price_|floatformat }}
{% endfor %} {% if estimate.is_draft %} diff --git a/templates/sales/estimates/estimate_preview.html b/templates/sales/estimates/estimate_preview.html index 810bf665..528d16bc 100644 --- a/templates/sales/estimates/estimate_preview.html +++ b/templates/sales/estimates/estimate_preview.html @@ -1,11 +1,10 @@ {% load i18n static custom_filters num2words_tags %} - + - Invoice - + Quotation - - @@ -92,267 +101,262 @@
-
-
-
- Quotation / عرض سعر -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- {% if dealer.logo %} - Dealer Logo - {% endif %} -
-
- Customer Name - - {{ dealer.arabic_name }} -
- {{ dealer.name }} -
- {{ dealer.arabic_name }} -
- Address - {{ dealer.address }} - العنوان -
- Phone - {{ dealer.phone_number }} - جوال -
- VAT Number - {{ dealer.vrn }} - الرقم الضريبي -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Quotation Number - {{ estimate.estimate_number }} - رقم عرض السعر -
- Date - {{ estimate.date_approved| date:"Y/m/d" }} - التاريخ -
- Customer - {{ estimate.customer.customer_name }} - العميل -
- VAT ID - {{ estimate.customer.vrn|default:"-" }} - الرقم الضريبي -
- Email - {{ estimate.customer.email |default:"N/A" }} - البريد الإلكتروني -
- Terms - {{ estimate.get_terms_display }} - طريقة الدفع -
-
-
- Car Details - تفاصيل السيارة -
-
- - + +
+
+
+
+ Quotation / عرض سعر +
+
+
+
+ +
+ +
- - - - - - - - + + + - - - {% for item in data.cars %} - - - - - - - - - {% endfor %} - - - - + + + - -
- Make / الصانع - - Model / الموديل - - Trim / الفئة - - Year / السنة - - VIN / الهيكل - - Quantity / الكمية - - Unit Price / سعر الوحدة - - Including VAT / شامل الضريبة - + Dealership Name + + {{ request.dealer.name }} + + اسم الوكالة +
{{ item.make }} - {{ item.model }} - {{ item.trim }}{{ item.year }}{{ item.vin }}{{ item.quantity|floatformat:-1 }}{{ item.unit_price|floatformat:2 }}{{ item.total_vat|floatformat:2 }}
{{ data.quantity|floatformat:-1 }}{{ data.total_price_before_discount|floatformat:2 }}{{ data.grand_total|floatformat:2 }} + Dealership Address + {{ request.dealer.address }} + العنوان +
-
-
- Additional Services - الخدمات الإضافية -
- {% if data.additionals %} +
+ Phone + {{ request.dealer.phone_number }} + جوال +
+ VAT Number + {{ request.dealer.vrn }} + الرقم الضريبي +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Quotation Number + {{ estimate.estimate_number }} + رقم عرض السعر +
+ Date + {{ estimate.date_approved| date:"Y/m/d" }} + التاريخ +
+ Customer Name + {{ estimate.customer.customer_name }} + العميل +
+ Email + {{ estimate.customer.email |default:"N/A" }} + البريد الإلكتروني +
+ Terms + {{ estimate.get_terms_display }} + طريقة الدفع +
+
+
+ Car Details + تفاصيل السيارة +
- - - + + + + + + + + + + - {% for item in data.additionals %} - - - - - - {% endfor %} + + + + + + + + + + + + +
Type / النوعPrice / القيمة - Including VAT / شامل الضريبة + + Make / الصانع + + Model / الموديل + + Series / السلسلة + + Trim / الفئة + + Year / السنة + + VIN / رقم الهيكل + + Quantity / الكمية + + Unit Price / سعر الوحدة + + Discount / الخصم + + VAT / الضريبة + + Total / الإجمالي
{{ item.name }}{{ item.price|floatformat }}{{ item.price_|floatformat }}
{{ data.car.id_car_make.name }}{{ data.car.id_car_model.name }}{{ data.car.id_car_serie.name }}{{ data.car.id_car_trim.name }}{{ data.car.year }}{{ data.car.vin }}1{{ data.car.marked_price |floatformat:2 }}{{  data.discount_amount |floatformat:2 }}{{ data.vat_amount|floatformat:2 }}{{ data.final_price|floatformat:2 }}
- {% endif %} -
-
- - - - - - - - - - - - - - -
- VAT - - {{ data.total_vat_amount|floatformat }} - - ضريبة القيمة المضافة -
- Total - - {{ data.grand_total|floatformat }}  - - الإجمالي -
- كتابةً: {{ data.grand_total|num_to_words }}  -
+
+ Additional Services + الخدمات الإضافية +
+ {% if data.additional_services %} +
+ + + + + + + + + + + {% for service in data.additional_services.services %} + + + + + + + {% endfor %} + +
Type / النوعPrice / القيمةVAT / ضريبة الخدمة + Total / الإجمالي +
{{ service.0.name }}{{ service.0.price|floatformat }}{{ service.1|floatformat }}{{ service.0.price_|floatformat }}
+
+ {% endif %} +
+
+ + + + + + + + + + + + + + +
+ Total VAT + + {{ data.total_vat|floatformat }} + + إجمالي ضريبة القيمة المضافة +
+ Grand Total + + {{ data.grand_total|floatformat }}  + + الإجمالي +
+ كتابةً: {{ data.grand_total|num_to_words }}  +
+
-
-
-
-
-
-
+
+ - + \ No newline at end of file diff --git a/templates/sales/invoices/invoice_detail.html b/templates/sales/invoices/invoice_detail.html index 3052060e..51ed30c0 100644 --- a/templates/sales/invoices/invoice_detail.html +++ b/templates/sales/invoices/invoice_detail.html @@ -358,7 +358,7 @@ {% trans "Additional Services" %} {% for service in data.additional_services.services %} - + {{ service.name }} - {{ service.price_|floatformat }} + + {{ service.0.name }} - {{ service.0.price_|floatformat }}
{% endfor %} diff --git a/templates/sales/invoices/invoice_preview.html b/templates/sales/invoices/invoice_preview.html index 939eb82f..77474f4f 100644 --- a/templates/sales/invoices/invoice_preview.html +++ b/templates/sales/invoices/invoice_preview.html @@ -1,11 +1,10 @@ {% load i18n static custom_filters num2words_tags %} - + Invoice - - - @@ -97,271 +101,274 @@
+
-
-
Tax Invoice  /  فاتورة ضريبية
-
-
-
-
- QR Code -
+
+
+
+ Invoice / فاتورة +
-
- -
- Car Details - تفاصيل السيارة -
-
- - - - - - - - - - - - - - - {% for item in data.cars %} - - - - - - - - - {% endfor %} - - - - - - - -
- Make / الصانع - - Model / الموديل - - Trim / الفئة - - Year / السنة - - VIN / الهيكل - - Quantity / الكمية - - Unit Price / سعر الوحدة - - Including VAT / شامل الضريبة -
{{ item.make }} - {{ item.model }} - {{ item.trim }}{{ item.year }}{{ item.vin }}{{ item.quantity|floatformat }}{{ item.unit_price|floatformat }}{{ item.total_vat|floatformat }}
{{ data.quantity|floatformat }}{{ data.total_price_before_discount|floatformat }}{{ data.grand_total|floatformat }}
-
-
- Additional Services - الخدمات الإضافية -
- {% if data.additionals %}
- - - + + + + + + + + + + - {% for item in data.additionals %} - - - - - - {% endfor %} + + + + + + + + + + + + + +
Type / النوعPrice / القيمة - Including VAT / شامل الضريبة + + Make / الصانع + + Model / الموديل + + Series / السلسلة + + Trim / الفئة + + Year / السنة + + VIN / رقم الهيكل + + Quantity / الكمية + + Unit Price / سعر الوحدة + + Discount / الخصم + + VAT / الضريبة + + Total / الإجمالي
{{ item.name }}{{ item.price|floatformat }}{{ item.price_|floatformat }}
{{ data.car.id_car_make.name }}{{ data.car.id_car_model.name }}{{ data.car.id_car_serie.name }}{{ data.car.id_car_trim.name }}{{ data.car.year }}{{ data.car.vin }}1{{ data.car.marked_price |floatformat:2 }}{{ data.discount_amount |floatformat:2 }}{{ data.vat_amount|floatformat:2 }}{{ data.final_price|floatformat:2 }}
- {% endif %} -
-
- - - - - - - - - - - - - - -
- VAT - - {{ data.total_vat_amount|floatformat }} - - ضريبة القيمة المضافة -
- Total - - {{ data.grand_total|floatformat }}  - - الإجمالي -
- كتابةً: {{ data.grand_total|num_to_words }}  -
+
+ Additional Services + الخدمات الإضافية +
+ {% if data.additional_services %} +
+ + + + + + + + + + + {% for service in data.additional_services.services %} + + + + + + + {% endfor %} + +
Type / النوعPrice / السعرService VAT / ضريبة الخدمة + Total / الإجمالي +
{{ service.0.name }}{{ service.0.price|floatformat }}{{ service.1|floatformat }}{{ service.0.price_|floatformat }}
+
+ {% endif %} +
+
+ + + + + + + + + + + + + + +
+ Total VAT + + {{ data.total_vat|floatformat }} + + إجمالي ضريبة القيمة المضافة +
+ Grand Total + + {{ data.grand_total|floatformat }}  + + الإجمالي الكلي +
+ كتابةً: {{ data.grand_total|num_to_words }}  +
+
-
-
-
-
-
-
+
+ - + \ No newline at end of file