fix: taxes on cart detail
This commit is contained in:
+5
-1
@@ -166,8 +166,10 @@ class OrderDetail(TemplateView):
|
||||
order=order,
|
||||
product__is_shipping_method=False,
|
||||
).aggregate(amount=Sum("taxes")).get("amount") or Decimal("0")
|
||||
settings = WebSettings.load()
|
||||
|
||||
return {
|
||||
"web_title": settings.web_title,
|
||||
"order": order,
|
||||
"items": items,
|
||||
"signature_version": parameters.get("Ds_SignatureVersion"),
|
||||
@@ -197,7 +199,9 @@ class OrdersView(TemplateView, FilteredQuerysetMixin, PaginatedQuerysetMixin):
|
||||
template_name = "web/orders.html"
|
||||
|
||||
def get_queryset(self):
|
||||
return Order.objects.filter(user=self.request.user).exclude(status=Order.Statuses.STATUS_PENDING)
|
||||
return Order.objects.filter(user=self.request.user).exclude(
|
||||
status=Order.Statuses.STATUS_PENDING
|
||||
)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
settings = WebSettings.load()
|
||||
|
||||
Reference in New Issue
Block a user