No need for subtotal
This commit is contained in:
parent
f9cea6cdba
commit
f4be670301
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue