Merge pull request 'refs #6721 MetodoPagoActivarTrabajadores' (!2036) from 6721-método-de-pago-al-volver-a-activar-trabajadores into dev
gitea/salix/pipeline/head There was a failure building this commit Details

Reviewed-on: #2036
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Ivan Mas 2024-02-26 13:16:33 +00:00
commit da600c6ea5
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ BEGIN
IF vOldBusinessFk IS NULL THEN
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$$
DELIMITER ;