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=Sum('orderproductrelation__quantity')
|
||||||
)['sum']
|
)['sum']
|
||||||
|
|
||||||
@property
|
|
||||||
def subtotal(self):
|
|
||||||
return self.total - self.vat
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vat(self):
|
def vat(self):
|
||||||
return (self.total/100)*25
|
return (self.total/100)*25
|
||||||
|
|
|
@ -51,14 +51,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<td>
|
<td>
|
||||||
<strong>Subtotal</strong>
|
<strong>Hereof VAT (25%)</strong>
|
||||||
<td>
|
|
||||||
{{ order.subtotal }}
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<td>
|
|
||||||
<strong>VAT (25%)</strong>
|
|
||||||
<td>
|
<td>
|
||||||
{{ order.vat }}
|
{{ order.vat }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue