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