mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Handle ruptures
This commit is contained in:
parent
11c755fb18
commit
bca36da70c
2 changed files with 6 additions and 2 deletions
|
@ -543,3 +543,7 @@ dt.mandatory:after {
|
|||
details summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rupture {
|
||||
background-color: #ff000083;
|
||||
}
|
|
@ -25,7 +25,7 @@
|
|||
<tbody>
|
||||
{% for product in delivery.get_products_by(producer) %}
|
||||
<tr>
|
||||
<th class="product">{{ product }}
|
||||
<th class="product {% if product.rupture %}rupture{% endif %}">{{ product }} {% if product.rupture %}(RUPTURE !){% endif %}
|
||||
{% if product.description or product.img %}
|
||||
{% with unique_id=loop.index %}
|
||||
{% include "includes/modal_product.html" %}
|
||||
|
@ -36,7 +36,7 @@
|
|||
{% if delivery.has_packing %}
|
||||
<td {% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} class="missing" title="Les commandes individuelles ne correspondent pas aux conditionnements"{% endif %}>{{ product.packing or "—" }}{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} (manque {{ delivery.product_missing(product) }}){% endif %}</td>
|
||||
{% endif %}
|
||||
<td class="with-input"><input {% if delivery.status != delivery.OPEN %}type="text" readonly{% else%}type="number"{% endif%} min=0 name="wanted:{{ product.ref }}" value="{{ order[product].wanted }}"> x {{ product.unit }}</td>
|
||||
<td class="with-input"><input {% if delivery.status != delivery.OPEN or product.rupture %}type="text" readonly{% else%}type="number"{% endif%} min=0 name="wanted:{{ product.ref }}" value="{{ order[product].wanted }}"> x {{ product.unit }}</td>
|
||||
{% if delivery.status == delivery.ADJUSTMENT or order.has_adjustments %}
|
||||
<td class="with-input"><input type="number" name="adjustment:{{ product.ref }}" value="{{ order[product].adjustment }}" {% if not delivery.product_missing(product) %}readonly{% endif %}></td>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue