show price difference in percentage
This commit is contained in:
parent
89149198cc
commit
19d9dff83e
1 changed files with 5 additions and 5 deletions
|
@ -682,9 +682,9 @@
|
|||
<td class="fw-bold">
|
||||
{{ comparison.amount|floatformat:2 }} {{ comparison.currency }}
|
||||
{% if comparison.difference > 0 %}
|
||||
<span class="badge bg-success ms-1">+{{ comparison.difference|floatformat:2 }}</span>
|
||||
(+{{ comparison.difference|floatformat:2 }}, +{% widthratio comparison.difference row.final_price 100 %}%)
|
||||
{% elif comparison.difference < 0 %}
|
||||
<span class="badge bg-danger ms-1">{{ comparison.difference|floatformat:2 }}</span>
|
||||
({{ comparison.difference|floatformat:2 }}, {% widthratio comparison.difference row.final_price 100 %}%)
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -730,11 +730,11 @@
|
|||
<td class="fw-bold">
|
||||
{{ comparison.amount|floatformat:2 }} {{ comparison.currency }}
|
||||
{% if comparison.difference > 0 %}
|
||||
<span class="badge bg-danger ms-1">+{{ comparison.difference|floatformat:2 }}</span>
|
||||
(+{{ comparison.difference|floatformat:2 }}, +{% widthratio comparison.difference row.final_price 100 %}%)
|
||||
{% elif comparison.difference < 0 %}
|
||||
<span class="badge bg-success ms-1">{{ comparison.difference|floatformat:2 }}</span>
|
||||
({{ comparison.difference|floatformat:2 }}, {% widthratio comparison.difference row.final_price 100 %}%)
|
||||
{% elif comparison.difference == 0 %}
|
||||
<span class="badge bg-info ms-1">Same</span>
|
||||
(Same)
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue