fix: deleted repeated tickets
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2021-12-14 09:56:38 +01:00
parent f63426304f
commit 9de1d59d98
1 changed files with 1 additions and 2 deletions

View File

@ -130,8 +130,7 @@ BEGIN
END
LEFT JOIN state stPrep ON stPrep.`code` = 'PREPARED'
LEFT JOIN saleTracking stk ON stk.saleFk = s.id AND stk.stateFk = stPrep.id
LEFT JOIN claim cl ON cl.ticketFk = t.id
LEFT JOIN claimBeginning cb ON cl.id = cb.claimFk AND s.id = cb.saleFk
LEFT JOIN claimBeginning cb ON s.id = cb.saleFk
WHERE t.shipped >= vDateInventory
AND s.itemFk = vItemId
AND vWarehouse =t.warehouseFk