add nds methot to invoce

prod
Dmitriy Shesterkin 9 years ago
parent f63e73bc0d
commit 95c4b5f661
  1. 2
      src/docs/forms/invoice.py
  2. 1
      src/dokumentor/templates/docs/invoice/form.html

@ -18,12 +18,14 @@ class InvoiceForm(BaseModelForm):
'bank_account',
'client',
'nds_value',
'nds_method',
'doc_text',
)
_radioselect = forms.RadioSelect
_textarea = forms.Textarea(attrs={'cols': 80, 'rows': 3})
widgets = {
'doc_text': _textarea,
'nds_method': forms.RadioSelect()
}

@ -14,6 +14,7 @@
<div class="block">
{% include 'docs/parts/form_field.html' with field=form.nds_value id="nds_value" classes="left" label="НДС" no_clear_after="True" %}
{% include 'docs/parts/form_field.html' with field=form.nds_method id="nds_method" classes="left nds-method hidden" no_clear_after="True" %}
</div>
{% if formset %}

Loading…
Cancel
Save