Основной бизнес-процесс
Оформление накладных
This commit is contained in:
@@ -5,20 +5,17 @@
|
||||
<h6 class="card-title">{{ item['name'] }}</h6>
|
||||
<p class="card-text">Цена: {{ item['price'] }} ₽</p>
|
||||
{% if show_amount %}
|
||||
<span>Количество: {{item['count']}}</span><br>
|
||||
<span>Количество: {{item['amount']}}</span><br>
|
||||
<form method="POST" action="">
|
||||
<input type="hidden" name="product_display" value="{{item['work_id']}}" />
|
||||
<button class="btn btn-primary">
|
||||
Добавить в накладную
|
||||
</button>
|
||||
<button type="submit" name="product_display_minus" value="minus" class="btn btn-danger">-</button>
|
||||
<button type="submit" name="product_display_plus" value="plus" class="btn btn-success">+</button>
|
||||
<!-- <button type="submit" name="product_display_plus" value="plus" class="btn btn-success">+</button> -->
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if show_form %}
|
||||
<form method="POST" action="">
|
||||
<input type="hidden" name="product_display" value="{{item['work_id']}}" />
|
||||
<input type="submit" class="btn btn-primary" value="Купить" name="buy" />
|
||||
<input type="submit" class="btn btn-primary" value="Добавить" name="add" />
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<h4>Накладная</h4>
|
||||
{% if waybill %}
|
||||
{% for item in waybill %}
|
||||
{{ components.render_item(item, show_form = False, show_amount = True) }}
|
||||
{{ card.render_item(item, show_form = False, show_amount = True) }}
|
||||
{% endfor %}
|
||||
<a href="{{url_for('waybill_bp.save_order')}}"><button class="btn btn-primary">Оформить накладную</button></a>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user