fix: refs #7829 Error al calcular problemas de componentes #2828

Merged
carlosap merged 2 commits from 7829-Error-calcular-problemas-componentes into master 2024-08-02 09:45:08 +00:00
Member
No description provided.
carlosap added 1 commit 2024-08-02 08:29:21 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
ddd5e4ffa4
fix: refs #7829 Error al calcular problemas de componentes
carlosap requested review from guillermo 2024-08-02 08:38:03 +00:00
guillermo requested changes 2024-08-02 09:38:32 +00:00
Dismissed
@ -110,3 +99,1 @@
AND s.quantity > 0
GROUP BY s.id
) sub
SELECT t.id, COUNT(c.id) < vRequiredComponent hasComponentLack, s.id
Member

Ací no va COUNT(DISTINCT c.id) ??

Ací no va COUNT(DISTINCT c.id) ??
carlosap marked this conversation as resolved
@ -113,0 +103,4 @@
JOIN agencyMode am ON am.id = t.agencyModeFk
JOIN deliveryMethod dm ON dm.id = am.deliveryMethodFk
LEFT JOIN saleComponent sc ON sc.saleFk = s.id
LEFT JOIN component c ON c.id = sc.componentFk AND c.isRequired
Member

AND c.isRequired en otra linea nueva

AND c.isRequired en otra linea nueva
@ -0,0 +4,4 @@
)
BEGIN
/**
* Updates future ticket risk for a client
Member

Punto al final

Punto al final
@ -0,0 +14,4 @@
SELECT id
FROM ticket
WHERE clientFk = vClientFk
AND shipped >= util.VN_CURDATE();
Member

Poner refFk IS NULL

Poner refFk IS NULL
@ -0,0 +29,4 @@
CALL vn.ticket_setProblemRisk(vTicketFk);
END LOOP;
Member

Quitar espacio

Quitar espacio
carlosap added 1 commit 2024-08-02 09:43:34 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
29a50caaca
fix: refs #7829 Error al calcular problemas de componentes
carlosap requested review from guillermo 2024-08-02 09:44:17 +00:00
guillermo approved these changes 2024-08-02 09:44:45 +00:00
Dismissed
carlosap merged commit 69d4c8bd6e into master 2024-08-02 09:45:08 +00:00
carlosap deleted branch 7829-Error-calcular-problemas-componentes 2024-08-02 09:45:08 +00:00
guillermo approved these changes 2024-08-02 10:02:56 +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#2828
No description provided.