Skip to content

Commit 4078dc9

Browse files
committed
Fix point of sale in customer order list
1 parent 863370a commit 4078dc9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

bakeup/shop/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ class CustomerOrderListView(CustomerRequiredMixin, ListView):
212212

213213
def get_context_data(self, **kwargs):
214214
context = super().get_context_data(**kwargs)
215-
context["point_of_sales"] = PointOfSale.objects.all()
216215
context["next_url"] = reverse_lazy("shop:order-list")
217216
context["abos"] = CustomerOrderTemplate.objects.active().filter(
218217
customer=self.request.user.customer

bakeup/templates/shop/customer_order_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h4 class="fs-5">Abholung: <strong>{{ order.point_of_sale.name|default:'-' }}</s
107107
</div>
108108
</div>
109109

110-
{% include "shop/includes/checkout.html" with name='checkout' display_all=True customer_order=order production_day=order.production_day id=order.id products=order.get_production_day_products_ordered_list next_url=next_url show_price=has_price %}
110+
{% include "shop/includes/checkout.html" with name='checkout' display_all=True customer_order=order production_day=order.production_day point_of_sales=order.production_day.point_of_sales.all id=order.id products=order.get_production_day_products_ordered_list next_url=next_url show_price=has_price %}
111111
{% endwith %}
112112
{% empty %}
113113
<p class="mt-4">Bisher liegen noch keine Bestellungen vor.</p>

0 commit comments

Comments
 (0)