feat: sincro client supplier sage refs #7595
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-06-20 14:48:32 +02:00
parent e0d105313d
commit 414bf9eb03
2 changed files with 2 additions and 2 deletions

View File

@ -425,6 +425,8 @@ BEGIN
INSERT IGNORE INTO sage.clientSupplier (companyFk, `type`, idClientSupplier, isSync)
SELECT vCompanyCode, `type`, idClientSupplier, FALSE
FROM tmp.clientSupplier;
DROP TEMPORARY TABLE tmp.clientSupplier;
CALL pgc_add(vCompanyFk);
-- Elimina cuentas contables que no se utilizarán en la importación

View File

@ -122,7 +122,5 @@ BEGIN
LEFT JOIN vn.supplierAccount sa ON sa.supplierFk = s.id
WHERE cs.type = 'P'
GROUP BY s.id;
DROP TEMPORARY TABLE IF EXISTS tmp.clientSupplier;
END$$
DELIMITER ;