fix: refs #7829 Error al calcular problemas de componentes #2828
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2828
Loading…
Reference in New Issue
No description provided.
Delete Branch "7829-Error-calcular-problemas-componentes"
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?
@ -110,3 +99,1 @@
AND s.quantity > 0
GROUP BY s.id
) sub
SELECT t.id, COUNT(c.id) < vRequiredComponent hasComponentLack, s.id
Ací no va COUNT(DISTINCT c.id) ??
@ -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
AND c.isRequired en otra linea nueva
@ -0,0 +4,4 @@
)
BEGIN
/**
* Updates future ticket risk for a client
Punto al final
@ -0,0 +14,4 @@
SELECT id
FROM ticket
WHERE clientFk = vClientFk
AND shipped >= util.VN_CURDATE();
Poner refFk IS NULL
@ -0,0 +29,4 @@
CALL vn.ticket_setProblemRisk(vTicketFk);
END LOOP;
Quitar espacio