add customer field to customorder model, change template a bit

This commit is contained in:
Thomas Steen Rasmussen 2016-07-12 23:16:45 +02:00
parent be34e1a6b5
commit f60d2bfdae
2 changed files with 10 additions and 14 deletions

View file

@ -22,7 +22,13 @@ class CustomOrder(CreatedUpdatedModel):
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(
help_text=_('Amount of this custom order (in DKK, including VAT).')

View file

@ -21,37 +21,27 @@
<tr>
<td>
<b>Text
<td>
<b>Quantity
<td>
<b>Price
<td>
<b>Total
<tr>
<td>
{{ invoice.customorder.text }}
<td>
1
<td align="right">
{{ invoice.customorder.amount|currency }}
<td align="right">
{{ invoice.customorder.amount|currency }}
<tr>
<td colspan="2">
<td>
<td align="right">
<strong>Danish VAT (25%)</strong>
<td align="right">
{{ invoice.customorder.vat|currency }}
<tr>
<td colspan="2">
<td>
<td align="right">
<strong>Total</strong>
<td align="right">
{{ invoice.customorder.amount|currency }}
</table>
<br>
<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>