diff --git a/shop/models.py b/shop/models.py index b07b83c0..6876c059 100644 --- a/shop/models.py +++ b/shop/models.py @@ -70,10 +70,6 @@ class Order(CreatedUpdatedModel): sum=Sum('orderproductrelation__quantity') )['sum'] - @property - def subtotal(self): - return self.total - self.vat - @property def vat(self): return (self.total/100)*25 diff --git a/shop/templates/order_detail.html b/shop/templates/order_detail.html index 05f5ce37..84048a20 100644 --- a/shop/templates/order_detail.html +++ b/shop/templates/order_detail.html @@ -51,14 +51,7 @@ - Subtotal - - {{ order.subtotal }} - - - - - VAT (25%) + Hereof VAT (25%) {{ order.vat }}