From c7e2e3c703ade1b61a790d7f42c63831ba79efe1 Mon Sep 17 00:00:00 2001 From: jgallego Date: Mon, 7 Jun 2021 07:57:46 +0200 Subject: [PATCH] accountingType.isAutoConciliated == true --- modules/client/back/methods/client/createReceipt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/back/methods/client/createReceipt.js b/modules/client/back/methods/client/createReceipt.js index cb7d7aaba..7eb47e70a 100644 --- a/modules/client/back/methods/client/createReceipt.js +++ b/modules/client/back/methods/client/createReceipt.js @@ -93,7 +93,7 @@ module.exports = function(Self) { clientOriginal.accountingAccount ], options); - } else { + } else if (accountingType.isAutoConciliated == true) { const description = `${clientOriginal.id} : ${clientOriginal.socialName} - ${accountingType.receiptDescription}`; const [xdiarioNew] = await Self.rawSql( `SELECT xdiario_new(?, CURDATE(), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ledger;`,