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

Order barcodes (#4575)

* Add barcode support to external orders

- ReturnOrder
- PurchaseOrder
- SalesOrder

* Support scanning for new model types

* Integrate UI elements for ReturnOrder

* Update PurchaseOrder page

* SalesOrder implementation
This commit is contained in:
Oliver
2023-04-04 11:30:49 +10:00
committed by GitHub
parent d6715d94c1
commit 7af2bb4e8c
12 changed files with 221 additions and 38 deletions

View File

@ -155,13 +155,8 @@
</td>
</tr>
{% if item.barcode_hash %}
<tr>
<td><span class='fas fa-barcode'></span></td>
<td>{% trans "Barcode Identifier" %}</td>
<td {% if item.barcode_data %}title='{{ item.barcode_data }}'{% endif %}>{{ item.barcode_hash }}</td>
</tr>
{% endif %}
{% include "barcode_data.html" with instance=item %}
{% if item.batch %}
<tr>
<td><span class='fas fa-layer-group'></span></td>
@ -537,6 +532,7 @@ $('#stock-edit-status').click(function () {
{% endif %}
{% if barcodes %}
$("#show-qr-code").click(function() {
showQRDialog(
'{% trans "Stock Item QR Code" %}',
@ -544,7 +540,6 @@ $("#show-qr-code").click(function() {
);
});
{% if barcodes %}
$("#barcode-link").click(function() {
linkBarcodeDialog(
{

View File

@ -150,13 +150,7 @@
</td>
</tr>
{% endif %}
{% if location and location.barcode_hash %}
<tr>
<td><span class='fas fa-barcode'></span></td>
<td>{% trans "Barcode Identifier" %}</td>
<td {% if location.barcode_data %}title='{{ location.barcode_data }}'{% endif %}>{{ location.barcode_hash }}</td>
</tr>
{% endif %}
{% include "barcode_data.html" with instance=location %}
</table>
{% endblock details_left %}