mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use barcode generation for CUI show barcode modal
This commit is contained in:
parent
2162eef133
commit
c6b665bccf
@ -277,7 +277,7 @@ src="{% static 'img/blank_image.png' %}"
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Build Order QR Code" escape %}',
|
||||
'{"build": {{ build.pk }} }'
|
||||
'{{ build.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -274,7 +274,7 @@ src="{% static 'img/blank_image.png' %}"
|
||||
$("#show-qr-code").click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Supplier Part QR Code" escape %}',
|
||||
'{"supplierpart": {{ part.pk }} }'
|
||||
'{{ part.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -312,7 +312,7 @@ $("#export-order").click(function() {
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Purchase Order QR Code" escape %}',
|
||||
'{"purchaseorder": {{ order.pk }} }'
|
||||
'{{ order.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -257,7 +257,7 @@ $('#print-order-report').click(function() {
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Return Order QR Code" escape %}',
|
||||
'{"returnorder": {{ order.pk }} }'
|
||||
'{{ order.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -319,7 +319,7 @@ $('#print-order-report').click(function() {
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Sales Order QR Code" escape %}',
|
||||
'{"salesorder": {{ order.pk }} }'
|
||||
'{{ order.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -451,7 +451,7 @@
|
||||
$("#show-qr-code").click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Part QR Code" escape %}',
|
||||
'{"part": {{ part.pk }} }',
|
||||
'{{ part.barcode }}',
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -534,7 +534,7 @@ $('#stock-edit-status').click(function () {
|
||||
$("#show-qr-code").click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Stock Item QR Code" escape %}',
|
||||
'{"stockitem": {{ item.pk }} }',
|
||||
'{{ item.barcode }}',
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -392,7 +392,7 @@
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Stock Location QR Code" escape %}',
|
||||
'{"stocklocation": {{ location.pk }} }'
|
||||
'{{ location.barcode }}'
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user