2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

add report feature for stock locations (#5134)

* add report feature for stock locations

* fix flake 8 errors

* run pre-commit run --all-files to fix style errors

* add new model

* create default stock location
This commit is contained in:
Christoph
2023-07-05 02:19:13 +02:00
committed by GitHub
parent 9cf629ccc5
commit cf0d30b11c
10 changed files with 304 additions and 6 deletions

View File

@ -70,7 +70,8 @@
<span class='fas fa-print'></span> <span class='caret'></span>
</button>
<ul class='dropdown-menu'>
<li><a class='dropdown-item' href='#' id='print-label'><span class='fas fa-tag'></span> {% trans "Print Label" %}</a>
<li><a class='dropdown-item' href='#' id='print-label'><span class='fas fa-tag'></span> {% trans "Print Label" %}</a></li>
<li><a class='dropdown-item' href='#' id='print-location-report'><span class='fas fa-tag'></span> {% trans "Print Location Report" %}</a></li>
</ul>
</div>
{% endif %}
@ -282,6 +283,17 @@
});
{% endif %}
{% if report_enabled %}
$('#print-location-report').click(function() {
printReports({
items: [{{ location.pk }}],
key: 'location',
url: '{% url "api-stocklocation-report-list" %}',
});
});
{% endif %}
{% if location %}
$("#barcode-scan-in-items").click(function() {
barcodeCheckInStockItems({{ location.id }});