forked from DGNum/gestioCOF
interface for order_to_inventory
This commit is contained in:
parent
db899a891b
commit
3dfd8bf616
2 changed files with 21 additions and 11 deletions
|
@ -472,6 +472,7 @@ class InventoryArticleForm(forms.Form):
|
|||
# -----
|
||||
|
||||
|
||||
|
||||
class OrderArticleForm(forms.Form):
|
||||
article = forms.ModelChoiceField(
|
||||
queryset=Article.objects.all(),
|
||||
|
@ -506,14 +507,18 @@ class OrderArticleToInventoryForm(forms.Form):
|
|||
)
|
||||
price_HT = forms.DecimalField(
|
||||
max_digits = 7, decimal_places = 4,
|
||||
required = False)
|
||||
required = False,
|
||||
widget=forms.NumberInput(attrs={'class': 'form-control'}))
|
||||
TVA = forms.DecimalField(
|
||||
max_digits = 7, decimal_places = 2,
|
||||
required = False)
|
||||
required = False,
|
||||
widget=forms.NumberInput(attrs={'class': 'form-control'}))
|
||||
rights = forms.DecimalField(
|
||||
max_digits = 7, decimal_places = 4,
|
||||
required = False)
|
||||
quantity_received = forms.IntegerField()
|
||||
required = False,
|
||||
widget=forms.NumberInput(attrs={'class': 'form-control'}))
|
||||
quantity_received = forms.IntegerField(
|
||||
widget=forms.NumberInput(attrs={'class': 'form-control'}))
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OrderArticleToInventoryForm, self).__init__(*args, **kwargs)
|
||||
|
|
|
@ -7,24 +7,27 @@
|
|||
|
||||
{% include 'kfet/base_messages.html' %}
|
||||
|
||||
<div class="content-right-block">
|
||||
<div>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<table class='table table-condensed text-center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Article</td>
|
||||
<td>HT</td>
|
||||
<td style="width:25%">Article</td>
|
||||
<td>Prix HT</td>
|
||||
<td>TVA</td>
|
||||
<td>Droits</td>
|
||||
<td>Com.</td>
|
||||
<td>Commandé</td>
|
||||
<td>Reçu</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for form in formset %}
|
||||
{% ifchanged form.category %}
|
||||
<tr>
|
||||
<td colspan="6">{{ form.category_name }}</td>
|
||||
<tr class='section'>
|
||||
<td>{{ form.category_name }}</td>
|
||||
<td colspan="5"></td>
|
||||
</tr>
|
||||
{% endifchanged %}
|
||||
<tr>
|
||||
|
@ -42,7 +45,9 @@
|
|||
<input type="password" name="KFETPASSWORD">
|
||||
{% endif %}
|
||||
{{ formset.management_form }}
|
||||
<input type="submit" value="Enregistrer">
|
||||
<input type="submit" class="btn btn-primary btn-lg btn-block" value="Enregistrer">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue