add customer field to customorder model, change template a bit
This commit is contained in:
parent
be34e1a6b5
commit
f60d2bfdae
|
@ -22,7 +22,13 @@ class CustomOrder(CreatedUpdatedModel):
|
||||||
help_text=_('The camp this custom order is for.'),
|
help_text=_('The camp this custom order is for.'),
|
||||||
)
|
)
|
||||||
|
|
||||||
text = models.TextField()
|
text = models.TextField(
|
||||||
|
help_text=_('The invoice text')
|
||||||
|
)
|
||||||
|
|
||||||
|
customer = models.TextField(
|
||||||
|
help_text=_('The customer info for this order, use <br> for newlines')
|
||||||
|
)
|
||||||
|
|
||||||
amount = models.IntegerField(
|
amount = models.IntegerField(
|
||||||
help_text=_('Amount of this custom order (in DKK, including VAT).')
|
help_text=_('Amount of this custom order (in DKK, including VAT).')
|
||||||
|
|
|
@ -21,37 +21,27 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<b>Text
|
<b>Text
|
||||||
<td>
|
|
||||||
<b>Quantity
|
|
||||||
<td>
|
<td>
|
||||||
<b>Price
|
<b>Price
|
||||||
<td>
|
|
||||||
<b>Total
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ invoice.customorder.text }}
|
{{ invoice.customorder.text }}
|
||||||
<td>
|
|
||||||
1
|
|
||||||
<td align="right">
|
|
||||||
{{ invoice.customorder.amount|currency }}
|
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{{ invoice.customorder.amount|currency }}
|
{{ invoice.customorder.amount|currency }}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td align="right">
|
||||||
<td>
|
|
||||||
<strong>Danish VAT (25%)</strong>
|
<strong>Danish VAT (25%)</strong>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{{ invoice.customorder.vat|currency }}
|
{{ invoice.customorder.vat|currency }}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td align="right">
|
||||||
<td>
|
|
||||||
<strong>Total</strong>
|
<strong>Total</strong>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{{ invoice.customorder.amount|currency }}
|
{{ invoice.customorder.amount|currency }}
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
Payment should be made by bank transfer to Arbejdernes Landsbank reg. 5371 account no. 0244504 within two weeks from {{ invoice.created|date:"b jS, Y" }} please. Thank you!
|
Payment should be made by bank transfer to our account in Arbejdernes Landsbank reg. 5371 account no. 0244504 within two weeks from {{ invoice.created|date:"b jS, Y" }} please. Thank you!
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue