diff --git a/myproject/inventory/templates/inventory/writeoff_document/detail.html b/myproject/inventory/templates/inventory/writeoff_document/detail.html index 52c2bea..0b062c6 100644 --- a/myproject/inventory/templates/inventory/writeoff_document/detail.html +++ b/myproject/inventory/templates/inventory/writeoff_document/detail.html @@ -27,8 +27,9 @@ {% endif %}
- -
+ +
+
@@ -96,6 +97,77 @@
+ + {% if document.can_edit %} +
+
+
Добавить позицию в документ
+
+
+ +
+ {% include 'products/components/product_search_picker.html' with container_id='writeoff-document-picker' title='Найти товар для списания' warehouse_id=document.warehouse.id filter_in_stock_only=True categories=categories tags=tags add_button_text='Выбрать товар' multi_select=False show_select_all=False content_height='250px' %} +
+ + + + + +
+ {% csrf_token %} + +
+
+ + {{ item_form.product }} + {% if item_form.product.errors %} +
{{ item_form.product.errors.0 }}
+ {% endif %} +
+ +
+ + {{ item_form.quantity }} + {% if item_form.quantity.errors %} +
{{ item_form.quantity.errors.0 }}
+ {% endif %} +
+ +
+ + {{ item_form.reason }} +
+ +
+ + {{ item_form.notes }} +
+
+ +
+ + + Используйте поиск выше для быстрого выбора товара + +
+
+
+
+ {% endif %} +
@@ -162,75 +234,6 @@
- - - {% if document.can_edit %} -
- -
- {% include 'products/components/product_search_picker.html' with container_id='writeoff-document-picker' title='Поиск товара для списания' warehouse_id=document.warehouse.id filter_in_stock_only=True categories=categories tags=tags add_button_text='Выбрать товар' multi_select=False show_select_all=False content_height='300px' %} -
- - -
-
-
Добавить товар
-
-
- - - -
- {% csrf_token %} - -
- - {{ item_form.product }} - {% if item_form.product.errors %} -
{{ item_form.product.errors.0 }}
- {% endif %} - - Используйте поиск выше для удобного выбора - -
- -
- - {{ item_form.quantity }} - {% if item_form.quantity.errors %} -
{{ item_form.quantity.errors.0 }}
- {% endif %} -
- -
- - {{ item_form.reason }} -
- -
- - {{ item_form.notes }} -
- - -
-
-
-
- {% endif %}