#7867 - avoid deactivate user when is supplier #2860
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2860
Loading…
Reference in New Issue
No description provided.
Delete Branch "hotfix_nightTask_supplierDisable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -22,2 +22,4 @@
AND u.active
AND c.created < util.VN_CURDATE() - INTERVAL vMonths MONTH
AND u.role NOT IN (
SELECT id FROM `role` r WHERE r.name = 'supplier'
Como es una sola tabla no hay que especificar el alias.
Además. como siempre va a retornar 1 registro, en vez de poner un IN yo pondría un =
"Como es una sola tabla no hay que especificar el alias."...fallo mío por no refrescar la "Convención SQL"