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

Add function to un-link barcode from a stock item

This commit is contained in:
Oliver Walters
2020-06-12 10:12:31 +10:00
parent beccbe8583
commit ba94b340dd
2 changed files with 37 additions and 0 deletions

View File

@ -80,6 +80,9 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<li><a href='#' id='show-qr-code'><span class='fas fa-qrcode'></span> {% trans "Show QR Code" %}</a></li>
<li><a href='#' id='print-label'><span class='fas fa-tag'></span> {% trans "Print Label" %}</a></li>
<li><a href='#' id='link-barcode'><span class='fas fa-link'></span> {% trans "Link Barcode" %}</a></li>
{% if item.uid %}
<li><a href='#' id='unlink-barcode'><span class='fas fa-unlink'></span> {% trans "Unlink Barcode" %}</a></li>
{% endif %}
</ul>
</div>
{% if item.in_stock %}
@ -335,6 +338,10 @@ $("#show-qr-code").click(function() {
});
});
$("#unlink-barcode").click(function() {
unlinkBarcode({{ item.id }});
});
{% if item.in_stock %}
{% if item.part.salable %}