mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Original price for variations (#1258)
* Original price for variations * Documentation * API-GET * Fix existing tests to accomodate new attribute * Test for variation's original_price on API
This commit is contained in:
@@ -270,7 +270,10 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-6 price">
|
||||
{% if item.original_price %}
|
||||
{% if var.original_price %}
|
||||
<del>{{ var.original_price|money:event.currency }}</del>
|
||||
<ins>
|
||||
{% elif item.original_price %}
|
||||
<del>{{ item.original_price|money:event.currency }}</del>
|
||||
<ins>
|
||||
{% endif %}
|
||||
@@ -294,7 +297,7 @@
|
||||
{% else %}
|
||||
{{ var.display_price.gross|money:event.currency }}
|
||||
{% endif %}
|
||||
{% if item.original_price %}
|
||||
{% if item.original_price or var.original_price %}
|
||||
</ins>
|
||||
{% endif %}
|
||||
{% if item.includes_mixed_tax_rate %}
|
||||
|
||||
Reference in New Issue
Block a user