discount_details URL parameter for pricelist

This commit is contained in:
Tobias Brunner 2025-05-23 17:12:05 +02:00
parent 19b36b9a2c
commit 5b4392f838
No known key found for this signature in database
2 changed files with 11 additions and 1 deletions

View file

@ -50,8 +50,10 @@
<th>SLA Base</th>
<th>SLA Per Unit</th>
<th>SLA Price</th>
{% if show_discount_details %}
<th>Discount Model</th>
<th>Discount Details</th>
{% endif %}
<th class="table-warning">Final Price</th>
</tr>
</thead>
@ -73,6 +75,7 @@
<td>{{ row.sla_base|floatformat:2 }}</td>
<td>{{ row.sla_per_unit|floatformat:4 }}</td>
<td>{{ row.sla_price|floatformat:2 }}</td>
{% if show_discount_details %}
<td>
{% if row.has_discount %}
{{ row.discount_model }}
@ -98,6 +101,7 @@
<small class="text-muted">No discount applied</small>
{% endif %}
</td>
{% endif %}
<td class="table-warning fw-bold">{{ row.final_price|floatformat:2 }}</td>
</tr>
{% endfor %}