diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 5bef8f72e..9c8163414 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -151,7 +151,7 @@ INSERT INTO `vn`.`printer` (`id`, `name`, `path`, `isLabeler`, `sectorFk`, `ipAd VALUES (1, 'printer1', 'path1', 0, 1 , NULL), (2, 'printer2', 'path2', 1, 1 , NULL), - (4, 'printer4', 'path4', 0, NULL, 10.1.10.4); + (4, 'printer4', 'path4', 0, NULL, '10.1.10.4'); INSERT INTO `vn`.`worker`(`id`, `code`, `firstName`, `lastName`, `userFk`,`bossFk`, `phone`, `sectorFk`, `labelerFk`) VALUES diff --git a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js index 8600d6325..525cad8ac 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js +++ b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js @@ -129,7 +129,7 @@ module.exports = Self => { JSON_OBJECT('refFk', ?), 'normal' );`; - await models.InvoiceOut.rawSql(query, [1 /* vPrinterFk */, invoiceOut.ref], myOptions); + await models.InvoiceOut.rawSql(query, [4 /* vPrinterFk */, invoiceOut.ref], myOptions); } if (tx) await tx.commit();