format invocies
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{% load humanize %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
@@ -276,22 +277,22 @@
|
||||
<td>{{ item_data.item.product.product.name }}</td>
|
||||
<td>{{ item_data.item.product.title }}</td>
|
||||
<td>{{ item_data.item.quantity }}</td>
|
||||
<td>{{ item_data.price_before_discount|floatformat:0 }} تومان</td>
|
||||
<td>{{ item_data.price_before_discount|floatformat:0|intcomma }} تومان</td>
|
||||
<td class="discount-highlight">
|
||||
{% if item_data.item.discount_percent > 0 %}
|
||||
{{ item_data.item.discount_percent }}% ({{ item_data.discount_amount|floatformat:0 }} تومان)
|
||||
{{ item_data.item.discount_percent }}% ({{ item_data.discount_amount|floatformat:0|intcomma }} تومان)
|
||||
{% else %}
|
||||
---
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="discount-highlight">
|
||||
{% if item_data.item.special_discount_amount > 0 %}
|
||||
{{ item_data.item.special_discount_amount|floatformat:0 }} تومان
|
||||
{{ item_data.item.special_discount_amount|floatformat:0|intcomma }} تومان
|
||||
{% else %}
|
||||
---
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ item_data.item.price|floatformat:0 }} تومان</td>
|
||||
<td>{{ item_data.item.price|floatformat:0|intcomma }} تومان</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -305,27 +306,27 @@
|
||||
</div>
|
||||
<div class="summary-row">
|
||||
<span class="summary-label">جمع کل:</span>
|
||||
<span class="summary-value">{{ subtotal|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ subtotal|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% if discount_amount > 0 %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label discount-highlight">تخفیف کد:</span>
|
||||
<span class="summary-value discount-highlight">{{ discount_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value discount-highlight">{{ discount_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if special_discount_total > 0 %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label discount-highlight">تخفیف ویژه:</span>
|
||||
<span class="summary-value discount-highlight">{{ special_discount_total|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value discount-highlight">{{ special_discount_total|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label">مالیات:</span>
|
||||
<span class="summary-value">{{ tax|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ tax|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
<div class="summary-row total">
|
||||
<span class="summary-label">مبلغ قابل پرداخت:</span>
|
||||
<span class="summary-value">{{ final_price|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ final_price|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{% load humanize %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
@@ -353,22 +354,22 @@
|
||||
<td>{{ item.order_item.product.product.name }}</td>
|
||||
<td>{{ item.order_item.product.title }}</td>
|
||||
<td>{{ item.quantity }}</td>
|
||||
<td>{{ item.unit_price|floatformat:0 }} تومان</td>
|
||||
<td>{{ item.unit_price|floatformat:0|intcomma }} تومان</td>
|
||||
<td class="discount-highlight">
|
||||
{% if item.discount_amount > 0 %}
|
||||
{{ item.order_item.discount_percent }}% ({{ item.discount_amount|floatformat:0 }} تومان)
|
||||
{{ item.order_item.discount_percent }}% ({{ item.discount_amount|floatformat:0|intcomma }} تومان)
|
||||
{% else %}
|
||||
---
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="discount-highlight">
|
||||
{% if item.special_discount_amount > 0 %}
|
||||
{{ item.special_discount_amount|floatformat:0 }} تومان
|
||||
{{ item.special_discount_amount|floatformat:0|intcomma }} تومان
|
||||
{% else %}
|
||||
---
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ item.total_price|floatformat:0 }} تومان</td>
|
||||
<td>{{ item.total_price|floatformat:0|intcomma }} تومان</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -383,23 +384,23 @@
|
||||
</div>
|
||||
<div class="summary-row">
|
||||
<span class="summary-label">جمع کل (Subtotal):</span>
|
||||
<span class="summary-value">{{ subtotal|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ subtotal|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% if discount_amount > 0 %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label discount-highlight">تخفیف معمولی:</span>
|
||||
<span class="summary-value discount-highlight">{{ discount_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value discount-highlight">{{ discount_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if special_discount_amount > 0 %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label discount-highlight">تخفیف ویژه:</span>
|
||||
<span class="summary-value discount-highlight">{{ special_discount_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value discount-highlight">{{ special_discount_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="summary-row">
|
||||
<span class="summary-label">مالیات:</span>
|
||||
<span class="summary-value">{{ tax_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ tax_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -411,7 +412,7 @@
|
||||
</div>
|
||||
<div class="summary-row highlight">
|
||||
<span class="summary-label commission-highlight">مبلغ کمیسیون:</span>
|
||||
<span class="summary-value commission-highlight">{{ commission_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value commission-highlight">{{ commission_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -419,7 +420,7 @@
|
||||
<h3>مبلغ نهایی</h3>
|
||||
<div class="summary-row payable">
|
||||
<span class="summary-label">مبلغ قابل پرداخت به فروشگاه:</span>
|
||||
<span class="summary-value">{{ payable_amount|floatformat:0 }} تومان</span>
|
||||
<span class="summary-value">{{ payable_amount|floatformat:0|intcomma }} تومان</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user