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:
@ -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 }});
|
||||
|
Reference in New Issue
Block a user