#7867 - avoid deactivate user when is supplier #2860

Merged
jsegarra merged 2 commits from hotfix_nightTask_supplierDisable into master 2024-08-14 05:52:14 +00:00
Member
No description provided.
jsegarra added 1 commit 2024-08-13 10:45:06 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
a178c285c0
fix(salix): #7867 avoid deactivate user when is supplier
jsegarra requested review from guillermo 2024-08-13 10:45:28 +00:00
guillermo requested changes 2024-08-13 10:56:36 +00:00
Dismissed
@ -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'
Member

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 =

AND NOT u.role = (SELECT id FROM `role` WHERE 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 = ``` AND NOT u.role = (SELECT id FROM `role` WHERE name = 'supplier') ```
Author
Member

"Como es una sola tabla no hay que especificar el alias."...fallo mío por no refrescar la "Convención SQL"

"Como es una sola tabla no hay que especificar el alias."...fallo mío por no refrescar la "Convención SQL"
jsegarra added 1 commit 2024-08-13 11:18:26 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
befcf89534
fix(salix): #7867 apply SQL conventions
jsegarra requested review from guillermo 2024-08-13 15:05:59 +00:00
guillermo approved these changes 2024-08-14 05:01:14 +00:00
jsegarra merged commit 0d931b2ab9 into master 2024-08-14 05:52:14 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#2860
No description provided.