From b1d67ee25d56772646774e59294ca75bd2d0ed84 Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Fri, 12 Jun 2026 15:49:14 -0400 Subject: [PATCH] fix cron sql --- scripts/import-printstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/import-printstream.php b/scripts/import-printstream.php index 7392d48..e933af5 100644 --- a/scripts/import-printstream.php +++ b/scripts/import-printstream.php @@ -143,7 +143,7 @@ WHERE ISNULL(s.[COMPLETED],'') <> 'Y' // Notes query — fetches all MDP notes for a list of QuoteNo values in one round-trip. // PHP concatenates lines per QuoteNo. Token placeholder: __QUOTENOS__ $psNotesSqlBase = " -SELECT n.[RELATED TO] AS QuoteNo, ISNULL(n.[NOTE],'') AS NoteLine +SELECT n.[RELATED TO] AS QuoteNo, ISNULL(CAST(n.[NOTE] AS VARCHAR(4000)),'') AS NoteLine FROM dbo.NOTES AS n WHERE n.[MODULE] = 'MDP' AND n.[RELATED TO] IN (__QUOTENOS__)