feat: refs #6769 itemDiary #2683

Merged
guillermo merged 10 commits from 6769-itemDiary into dev 2024-07-12 08:13:29 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 186cd4c7dd - Show all commits

View File

@ -114,9 +114,8 @@ BEGIN
cb.claimFk
FROM vn.sale s
JOIN vn.ticket t ON t.id = s.ticketFk
LEFT JOIN vn.ticketLastState tls ON tls.ticketFk = t.id
LEFT JOIN vn.ticketTracking tt ON tt.id = tls.ticketTrackingFk
LEFT JOIN vn.state st ON st.id = tt.stateFk
LEFT JOIN vn.ticketState ts ON ts.ticketFk = t.id
guillermo marked this conversation as resolved Outdated

este es el troç de la vista que hem comentat

este es el troç de la vista que hem comentat
LEFT JOIN vn.state st ON st.code = ts.code
JOIN vn.client c ON c.id = t.clientFk
JOIN vn.state st2 ON st2.`code` = IF(t.shipped < util.VN_CURDATE(),
'DELIVERED',