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
2019-05-16 12:15:44 +00:00
< div id = 'button-toolbar' >
< div class = 'button-toolbar container-fluid' style = 'float: right;' >
2020-09-30 14:00:37 +00:00
< div class = 'btn-group' >
2020-10-28 07:30:38 +00:00
< button class = 'btn btn-default' 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-18 12:23:58 +00:00
{% if owner_control.value == "True" and user in owners or user.is_superuser or owner_control.value == "False" %}
2021-04-28 17:16:40 +00:00
{% if not read_only and roles.stock.add %}
2021-01-18 10:52:20 +00:00
< button class = "btn btn-success" id = 'item-create' title = '{% trans "New Stock Item" %}' >
< span class = 'fas fa-plus-circle' > < / span >
2020-10-28 07:30:38 +00:00
< / button >
2020-10-05 13:20:45 +00:00
{% endif %}
2021-01-28 10:47:39 +00:00
{% if barcodes %}
<!-- Barcode actions menu -->
< div class = 'btn-group' >
< button id = 'stock-barcode-options' class = 'btn btn-primary dropdown-toggle' type = 'button' data-toggle = 'dropdown' title = '{% trans "Barcode Actions" %}' >
< span class = 'fas fa-qrcode' > < / span > < span class = 'caret' > < / span >
< / button >
< ul class = 'dropdown-menu' >
< li > < a 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 >
< / 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' >
< button id = 'stock-print-options' class = 'btn btn-primary dropdown-toggle' type = 'button' data-toggle = "dropdown" title = '{% trans "Printing Actions" %}' >
< span class = 'fas fa-print' > < / span > < span class = 'caret' > < / span >
< / button >
< ul class = 'dropdown-menu' >
< li > < a 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-01-18 10:52:20 +00:00
< li > < a 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 %}
2020-09-30 14:00:37 +00:00
< div class = "btn-group" >
2021-01-18 10:52:20 +00:00
< button id = 'stock-options' class = "btn btn-primary dropdown-toggle" type = "button" data-toggle = "dropdown" title = '{% trans "Stock Options" %}' >
< 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 %}
2020-10-27 11:00:38 +00:00
< li > < a href = "#" id = 'multi-item-add' title = '{% trans "Add to selected stock items" %}' > < span class = 'fas fa-plus-circle' > < / span > {% trans "Add stock" %}< / a > < / li >
< li > < a 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 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 href = '#' id = 'multi-item-move' title = '{% trans "Move selected stock items" %}' > < span class = 'fas fa-exchange-alt' > < / span > {% trans "Move stock" %}< / a > < / li >
< li > < a href = '#' id = 'multi-item-order' title = '{% trans "Order selected items" %}' > < span class = 'fas fa-shopping-cart' > < / span > {% trans "Order stock" %}< / a > < / li >
2021-01-14 02:41:38 +00:00
< li > < a 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 %}
2020-10-27 11:00:38 +00:00
< li > < a href = '#' id = 'multi-item-delete' title = '{% trans "Delete selected items" %}' > < span class = 'fas fa-trash-alt' > < / 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-04-28 17:16:40 +00:00
{% endif %}
2021-01-18 11:14:38 +00:00
< div class = 'filter-list' id = 'filter-list-stock' >
<!-- An empty div in which the filter list will be constructed -->
< / div >
2020-04-11 04:14:45 +00:00
< / div >
2019-05-16 12:15:44 +00:00
< / div >
< / div >
< table class = 'table table-striped table-condensed' data-toolbar = '#button-toolbar' id = 'stock-table' >
2020-10-28 11:24:09 +00:00
< / table >