forked from DGNum/gestioCOF
61feb9bbcd
- Possible de passer une livraison à un fournisseur - Proposition de quantités générées à partir des ventes sur les 5 dernières semaines - Mail généré à partir d'une commande (pas d'envoi auto) - box_capacity et box_type passe de SupplierArticle à Article
62 lines
1.6 KiB
HTML
62 lines
1.6 KiB
HTML
{% extends 'kfet/base.html' %}
|
|
|
|
{% block title %}Nouvelle commande{% endblock %}
|
|
{% block content-header-title %}Nouvelle commande {{ supplier.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td rowspan="2">Article</td>
|
|
<td colspan="5">Ventes</td>
|
|
<td rowspan="2">V. moy.</td>
|
|
<td rowspan="2">E.T.</td>
|
|
<td rowspan="2">Prév.</td>
|
|
<td rowspan="2">Stock</td>
|
|
<td rowspan="2">Rec.</td>
|
|
<td rowspan="2">Com.</td>
|
|
</tr>
|
|
<tr>
|
|
<td>S1</td>
|
|
<td>S2</td>
|
|
<td>S3</td>
|
|
<td>S4</td>
|
|
<td>S5</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for form in formset %}
|
|
{% ifchanged form.category %}
|
|
<tr>
|
|
<td colspan="11">{{ form.category_name }}</td>
|
|
</tr>
|
|
{% endifchanged %}
|
|
<tr>
|
|
{{ form.article }}
|
|
<td>{{ form.name }}</td>
|
|
<td>{{ form.v_s1 }}</td>
|
|
<td>{{ form.v_s2 }}</td>
|
|
<td>{{ form.v_s3 }}</td>
|
|
<td>{{ form.v_s4 }}</td>
|
|
<td>{{ form.v_s5 }}</td>
|
|
<td>{{ form.v_moy }}</td>
|
|
<td>{{ form.v_et }}</td>
|
|
<td>{{ form.v_prev }}</td>
|
|
<td>{{ form.stock }}</td>
|
|
<td>{{ form.c_rec }}</td>
|
|
<td>{{ form.quantity_ordered }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% if not perms.kfet.add_order %}
|
|
<input type="password" name="KFETPASSWORD">
|
|
{% endif %}
|
|
{{ formset.management_form }}
|
|
<input type="submit" class="btn btn-primary btn-lg" value="Envoyer">
|
|
</form>
|
|
|
|
{% endblock %}
|