2020-02-12 00:32:01 +00:00
{% load i18n %}
2020-12-01 22:41:03 +00:00
{% load inventree_extras %}
2021-01-28 10:51:34 +00:00
{% settings_value 'BARCODE_ENABLE' as barcodes %}
2020-12-02 18:38:53 +00:00
{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %}
2021-01-12 18:16:04 +00:00
{% if owner_control.value == "True" %}
{% authorized_owners location.owner as owners %}
{% endif %}
2020-02-12 00:32:01 +00:00
2021-07-15 12:19:13 +00:00
< div id = '{{ prefix }}button-toolbar' >
2019-05-16 12:15:44 +00:00
< div class = 'button-toolbar container-fluid' style = 'float: right;' >
2021-11-02 20:27:58 +00:00
< div class = 'btn-group' role = 'group' >
2021-10-27 11:06:30 +00:00
< button class = 'btn btn-outline-secondary' id = 'stock-export' title = '{% trans "Export Stock Information" %}' >
2021-01-18 10:52:20 +00:00
< span class = 'fas fa-download' > < / span >
2020-10-28 07:30:38 +00:00
< / button >
2021-01-28 10:47:39 +00:00
{% if barcodes %}
<!-- Barcode actions menu -->
2021-10-27 11:06:30 +00:00
< div class = 'btn-group' role = 'group' >
< button id = 'stock-barcode-options' class = 'btn btn-primary dropdown-toggle' type = 'button' data-bs-toggle = 'dropdown' title = '{% trans "Barcode Actions" %}' >
2021-01-28 10:47:39 +00:00
< span class = 'fas fa-qrcode' > < / span > < span class = 'caret' > < / span >
< / button >
< ul class = 'dropdown-menu' >
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-barcode-scan-into-location' title = '{% trans "Scan to Location" %}' > < span class = 'fas fa-sitemap' > < / span > {% trans "Scan to Location" %}< / a > < / li >
2021-01-28 10:47:39 +00:00
< / ul >
< / div >
{% endif %}
2021-04-20 10:06:13 +00:00
<!-- Printing actions menu -->
2021-01-18 10:52:20 +00:00
< div class = 'btn-group' >
2021-10-27 11:06:30 +00:00
< button id = 'stock-print-options' class = 'btn btn-primary dropdown-toggle' type = 'button' data-bs-toggle = "dropdown" title = '{% trans "Printing Actions" %}' >
2021-01-18 10:52:20 +00:00
< span class = 'fas fa-print' > < / span > < span class = 'caret' > < / span >
< / button >
< ul class = 'dropdown-menu' >
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-print-label' title = '{% trans "Print labels" %}' > < span class = 'fas fa-tags' > < / span > {% trans "Print labels" %}< / a > < / li >
2021-02-04 10:15:19 +00:00
{% if test_report_enabled %}
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-print-test-report' title = '{% trans "Print test reports" %}' > < span class = 'fas fa-file-pdf' > < / span > {% trans "Print test reports" %}< / a > < / li >
2021-02-04 10:15:19 +00:00
{% endif %}
2021-01-18 10:52:20 +00:00
< / ul >
< / div >
2021-04-28 17:16:40 +00:00
{% if not read_only %}
2020-10-05 23:07:39 +00:00
{% if roles.stock.change or roles.stock.delete %}
2021-11-02 20:27:58 +00:00
< div class = "btn-group" role = "group" >
2021-10-27 11:06:30 +00:00
< button id = 'stock-options' class = "btn btn-primary dropdown-toggle" type = "button" data-bs-toggle = "dropdown" title = '{% trans "Stock Options" %}' >
2021-01-18 10:52:20 +00:00
< span class = 'fas fa-boxes' > < / span > < span class = "caret" > < / span >
< / button >
2020-09-30 14:00:37 +00:00
< ul class = "dropdown-menu" >
2020-10-05 23:07:39 +00:00
{% if roles.stock.change %}
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = "#" id = 'multi-item-add' title = '{% trans "Add to selected stock items" %}' > < span class = 'fas fa-plus-circle icon-green' > < / span > {% trans "Add stock" %}< / a > < / li >
< li > < a class = 'dropdown-item' href = "#" id = 'multi-item-remove' title = '{% trans "Remove from selected stock items" %}' > < span class = 'fas fa-minus-circle' > < / span > {% trans "Remove stock" %}< / a > < / li >
< li > < a class = 'dropdown-item' href = "#" id = 'multi-item-stocktake' title = '{% trans "Stocktake selected stock items" %}' > < span class = 'fas fa-check-circle' > < / span > {% trans "Count stock" %}< / a > < / li >
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-move' title = '{% trans "Move selected stock items" %}' > < span class = 'fas fa-exchange-alt' > < / span > {% trans "Move stock" %}< / a > < / li >
2021-12-20 11:09:08 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-merge' title = '{% trans "Merge selected stock items" %}' > < span class = 'fas fa-object-group' > < / span > {% trans "Merge stock" %}< / a > < / li >
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-order' title = '{% trans "Order selected items" %}' > < span class = 'fas fa-shopping-cart' > < / span > {% trans "Order stock" %}< / a > < / li >
2021-12-08 13:32:50 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-assign' title = '{% trans "Assign to customer" %}' > < span class = 'fas fa-user-tie' > < / span > {% trans "Assign to customer" %}< / a > < / li >
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-set-status' title = '{% trans "Change status" %}' > < span class = 'fas fa-exclamation-circle' > < / span > {% trans "Change stock status" %}< / a > < / li >
2020-10-05 13:20:45 +00:00
{% endif %}
2020-10-05 23:07:39 +00:00
{% if roles.stock.delete %}
2021-10-27 11:06:30 +00:00
< li > < a class = 'dropdown-item' href = '#' id = 'multi-item-delete' title = '{% trans "Delete selected items" %}' > < span class = 'fas fa-trash-alt icon-red' > < / span > {% trans "Delete Stock" %}< / a > < / li >
2020-10-05 13:20:45 +00:00
{% endif %}
2021-01-17 18:11:59 +00:00
< / ul >
< / div >
2020-09-30 14:00:37 +00:00
{% endif %}
2020-10-05 13:20:45 +00:00
{% endif %}
2021-10-31 21:38:24 +00:00
{% include "filter_list.html" with id="stock" %}
2020-04-11 04:14:45 +00:00
< / div >
2019-05-16 12:15:44 +00:00
< / div >
< / div >
2021-07-15 12:19:13 +00:00
< table class = 'table table-striped table-condensed' data-toolbar = '#{{ prefix }}button-toolbar' id = '{{ prefix }}stock-table' >
2020-10-28 11:24:09 +00:00
< / table >