feat(collection-label): refs #6602 add qr to the report #2292
|
@ -1,9 +1,7 @@
|
||||||
const qrCode = require('qrcode');
|
|
||||||
const jsBarcode = require('jsbarcode');
|
|
||||||
|
|
||||||
const {DOMImplementation, XMLSerializer} = require('xmldom');
|
const {DOMImplementation, XMLSerializer} = require('xmldom');
|
||||||
const vnReport = require('../../../core/mixins/vn-report.js');
|
const vnReport = require('../../../core/mixins/vn-report.js');
|
||||||
const {TRUE} = require('node-sass');
|
const {toDataURL} = require('qrcode');
|
||||||
|
const jsBarcode = require('jsbarcode');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'collection-label',
|
name: 'collection-label',
|
||||||
|
@ -50,7 +48,7 @@ module.exports = {
|
||||||
table: 'ticket',
|
table: 'ticket',
|
||||||
id: ticketFk
|
id: ticketFk
|
||||||
});
|
});
|
||||||
return qrCode.toDataURL(QRdata, {margin: 0});
|
return toDataURL(QRdata, {margin: 0});
|
||||||
},
|
},
|
||||||
getBarcode(id) {
|
getBarcode(id) {
|
||||||
const xmlSerializer = new XMLSerializer();
|
const xmlSerializer = new XMLSerializer();
|
||||||
|
|
Loading…
Reference in New Issue