refs #6721 MetodoPagoActivarTrabajadores #2036

Merged
ivanm merged 3 commits from 6721-método-de-pago-al-volver-a-activar-trabajadores into dev 2024-02-26 13:16:34 +00:00
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ BEGIN
IF vOldBusinessFk IS NULL THEN IF vOldBusinessFk IS NULL THEN
CALL account.account_enable(vSelf); CALL account.account_enable(vSelf);
UPDATE client c
JOIN payMethod pm ON pm.code = 'bankDraft'
SET c.payMethodFk = pm.id
WHERE c.id = vSelf
AND c.iban;
END IF; END IF;
END$$ END$$
DELIMITER ; DELIMITER ;