From bd7a37bf90e93b66c641ee0500268438fc6ea178 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 22 Dec 2022 09:48:07 +0100 Subject: [PATCH] fix: add param 'reference' --- print/templates/reports/invoice/invoice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print/templates/reports/invoice/invoice.js b/print/templates/reports/invoice/invoice.js index 113f32193..b2d2c8037 100755 --- a/print/templates/reports/invoice/invoice.js +++ b/print/templates/reports/invoice/invoice.js @@ -82,7 +82,7 @@ module.exports = { return this.rawSqlFromDef(`taxes`, [reference]); }, fetchIntrastat(reference) { - return this.rawSqlFromDef(`intrastat`, [reference]); + return this.rawSqlFromDef(`intrastat`, [reference, reference]); }, fetchRectified(reference) { return this.rawSqlFromDef(`rectified`, [reference]);