From f17975540af7fab21d701cbb7b610dd5f6716c57 Mon Sep 17 00:00:00 2001 From: Marwan Alwali Date: Sun, 16 Mar 2025 21:44:36 +0300 Subject: [PATCH] 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 @@ - + - +
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 }} الإجمالي