Monolista: correggi date SAM e soglie delle picking list

This commit is contained in:
2026-11-06 10:05:00 +01:00
parent 9d87b07648
commit 1553427c21
9 changed files with 98 additions and 13 deletions

View File

@@ -586,7 +586,7 @@ LEFT JOIN dbo.PyPickingListReservation AS pr
ON pr.ID = 1
AND NULLIF(LTRIM(RTRIM(pr.Documento)), '') IS NOT NULL
WHERE prep.StatoDocumento = 'P'
AND prep.DATDOC > CAST((GETDATE() - 30) AS int)
AND prep.DATDOC >= DATEDIFF(day, CONVERT(date, '18991230', 112), GETDATE()) - 29
GROUP BY
prep.Expr1,
prep.NAZIONE,