2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

use barcode generation for CUI show barcode modal

This commit is contained in:
wolflu05
2024-07-15 00:22:01 +02:00
parent 2162eef133
commit c6b665bccf
8 changed files with 8 additions and 8 deletions

View File

@ -277,7 +277,7 @@ src="{% static 'img/blank_image.png' %}"
$('#show-qr-code').click(function() { $('#show-qr-code').click(function() {
showQRDialog( showQRDialog(
'{% trans "Build Order QR Code" escape %}', '{% trans "Build Order QR Code" escape %}',
'{"build": {{ build.pk }} }' '{{ build.barcode }}'
); );
}); });

View File

@ -274,7 +274,7 @@ src="{% static 'img/blank_image.png' %}"
$("#show-qr-code").click(function() { $("#show-qr-code").click(function() {
showQRDialog( showQRDialog(
'{% trans "Supplier Part QR Code" escape %}', '{% trans "Supplier Part QR Code" escape %}',
'{"supplierpart": {{ part.pk }} }' '{{ part.barcode }}'
); );
}); });

View File

@ -312,7 +312,7 @@ $("#export-order").click(function() {
$('#show-qr-code').click(function() { $('#show-qr-code').click(function() {
showQRDialog( showQRDialog(
'{% trans "Purchase Order QR Code" escape %}', '{% trans "Purchase Order QR Code" escape %}',
'{"purchaseorder": {{ order.pk }} }' '{{ order.barcode }}'
); );
}); });

View File

@ -257,7 +257,7 @@ $('#print-order-report').click(function() {
$('#show-qr-code').click(function() { $('#show-qr-code').click(function() {
showQRDialog( showQRDialog(
'{% trans "Return Order QR Code" escape %}', '{% trans "Return Order QR Code" escape %}',
'{"returnorder": {{ order.pk }} }' '{{ order.barcode }}'
); );
}); });

View File

@ -319,7 +319,7 @@ $('#print-order-report').click(function() {
$('#show-qr-code').click(function() { $('#show-qr-code').click(function() {
showQRDialog( showQRDialog(
'{% trans "Sales Order QR Code" escape %}', '{% trans "Sales Order QR Code" escape %}',
'{"salesorder": {{ order.pk }} }' '{{ order.barcode }}'
); );
}); });

View File

@ -451,7 +451,7 @@
$("#show-qr-code").click(function() { $("#show-qr-code").click(function() {
showQRDialog( showQRDialog(
'{% trans "Part QR Code" escape %}', '{% trans "Part QR Code" escape %}',
'{"part": {{ part.pk }} }', '{{ part.barcode }}',
); );
}); });

View File

@ -534,7 +534,7 @@ $('#stock-edit-status').click(function () {
$("#show-qr-code").click(function() { $("#show-qr-code").click(function() {
showQRDialog( showQRDialog(
'{% trans "Stock Item QR Code" escape %}', '{% trans "Stock Item QR Code" escape %}',
'{"stockitem": {{ item.pk }} }', '{{ item.barcode }}',
); );
}); });

View File

@ -392,7 +392,7 @@
$('#show-qr-code').click(function() { $('#show-qr-code').click(function() {
showQRDialog( showQRDialog(
'{% trans "Stock Location QR Code" escape %}', '{% trans "Stock Location QR Code" escape %}',
'{"stocklocation": {{ location.pk }} }' '{{ location.barcode }}'
); );
}); });