fix: refs #6602 refactor code
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2024-05-02 10:32:20 +02:00
parent d45d53d665
commit 6868863e54
1 changed files with 3 additions and 5 deletions

View File

@ -1,9 +1,7 @@
const qrCode = require('qrcode');
const jsBarcode = require('jsbarcode');
const {DOMImplementation, XMLSerializer} = require('xmldom');
const vnReport = require('../../../core/mixins/vn-report.js');
const {TRUE} = require('node-sass');
const {toDataURL} = require('qrcode');
const jsBarcode = require('jsbarcode');
module.exports = {
name: 'collection-label',
@ -50,7 +48,7 @@ module.exports = {
table: 'ticket',
id: ticketFk
});
return qrCode.toDataURL(QRdata, {margin: 0});
return toDataURL(QRdata, {margin: 0});
},
getBarcode(id) {
const xmlSerializer = new XMLSerializer();