From 9042eaaf9ff10155870228dc4979c8d123322e26 Mon Sep 17 00:00:00 2001 From: vicent Date: Wed, 11 Jan 2023 12:38:37 +0100 Subject: [PATCH] add fixtures --- db/dump/fixtures.sql | 4 ++++ modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 3280f079f..cb3c2fec8 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -2760,6 +2760,10 @@ INSERT INTO `salix`.`url` (`appName`, `environment`, `url`) ('lilium', 'dev', 'http://localhost:8080/#/'), ('salix', 'dev', 'http://localhost:5000/#!/'); +INSERT INTO `vn`.`report` (`id`, `name`, `paperSizeFk`, `method`) + VALUES + (3, 'invoice', NULL, 'InvoiceOuts/{reference}/invoice'); + INSERT INTO `vn`.`payDemDetail` (`id`, `detail`) VALUES (1, 1); diff --git a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js index 29ecd9dd9..bd86ac878 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js +++ b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js @@ -141,7 +141,7 @@ module.exports = Self => { 'invoice', ?, account.myUser_getId(), - JSON_OBJECT('reference', ?), + JSON_OBJECT('refFk', ?), 'normal' );`; await models.InvoiceOut.rawSql(query, [1 /* vPrinterFk */, invoiceOut.ref], myOptions);