No need for subtotal

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-16 16:20:01 +02:00
parent f9cea6cdba
commit f4be670301
2 changed files with 1 additions and 12 deletions

View file

@ -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

View file

@ -51,14 +51,7 @@
<tr>
<td colspan="2">
<td>
<strong>Subtotal</strong>
<td>
{{ order.subtotal }}
<tr>
<td colspan="2">
<td>
<strong>VAT (25%)</strong>
<strong>Hereof VAT (25%)</strong>
<td>
{{ order.vat }}