Merge pull request 'accountingType.isAutoConciliated == true' (#639) from 2944-createReceipt into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #639
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2021-06-07 11:35:03 +00:00
commit 3f74b52049
1 changed files with 1 additions and 1 deletions

View File

@ -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;`,