From 352a7e26ea08884bf2e3339e8ab5352c19ab41d1 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Tue, 14 Apr 2026 17:53:58 +0300 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- svc/queries/orderproduction_items.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/svc/queries/orderproduction_items.go b/svc/queries/orderproduction_items.go index d6bcf34..b6e7181 100644 --- a/svc/queries/orderproduction_items.go +++ b/svc/queries/orderproduction_items.go @@ -967,13 +967,14 @@ FROM missing m CROSS JOIN ( SELECT ISNULL(MAX( - CASE - WHEN ISNUMERIC(Barcode)=1 - THEN CAST(Barcode AS BIGINT) - ELSE NULL - END -),0) MaxBarcode -FROM dbo.prItemBarcode + CASE + WHEN ISNUMERIC(Barcode)=1 + THEN CAST(Barcode AS BIGINT) + ELSE NULL + END + ),0) AS MaxBarcode + FROM dbo.prItemBarcode +) seed `, strings.Join(values, ","), orderHeaderParam, usernameParam, usernameParam) chunkStart := time.Now()