fix: refs #6942 toBook/toUnbook

This commit is contained in:
Jorge Penadés 2024-05-23 16:12:21 +02:00
parent 3e2abfea2c
commit 798b4f9df0
2 changed files with 2 additions and 4 deletions

View File

@ -3799,5 +3799,3 @@ INSERT INTO `vn`.`ledgerCompany` SET
INSERT INTO `vn`.`ledgerConfig` SET INSERT INTO `vn`.`ledgerConfig` SET
maxTolerance = 0.01; maxTolerance = 0.01;
INSERT INTO `vn`.`ledgerConfig` (lastBookEntry, maxTolerance) VALUES (2,0.01);

View File

@ -41,8 +41,8 @@ module.exports = Self => {
where: { where: {
and: [ and: [
{key: invoiceInId}, {key: invoiceInId},
{enlazado: 0}, {enlazado: false},
{enlazadoSage: 0} {enlazadoSage: false}
] ]
} }
}, myOptions); }, myOptions);