Backend order view: Show canceled fees

This commit is contained in:
Raphael Michel
2019-01-12 22:18:55 +01:00
parent 2d48198c83
commit 77ebd18404
2 changed files with 2 additions and 2 deletions

View File

@@ -351,7 +351,7 @@
</div>
{% endfor %}
{% for fee in items.fees %}
<div class="row-fluid product-row">
<div class="row-fluid product-row {% if fee.canceled %}pos-canceled{% endif %}">
<div class="col-md-4 col-xs-6">
<strong>{{ fee.get_fee_type_display }}</strong>
{% if fee.description %}

View File

@@ -231,7 +231,7 @@ class OrderDetail(OrderView):
'positions': positions,
'raw': cartpos,
'total': self.object.total,
'fees': self.object.fees.all(),
'fees': self.object.all_fees.all(),
'net_total': self.object.net_total,
'tax_total': self.object.tax_total,
}