Added estimated VAT, as per issue #71

This commit is contained in:
David Taylor
2015-06-29 13:51:37 +01:00
parent 5b3bc591b8
commit cc22392ef7
2 changed files with 9 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ class EventCreate(generic.CreateView):
def get_context_data(self, **kwargs):
context = super(EventCreate, self).get_context_data(**kwargs)
context['edit'] = True
context['new'] = True
context['currentVAT'] = models.VatRate.objects.current_rate()
form = context['form']
if re.search('"-\d+"', form['items_json'].value()):