Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-05-06 11:07:55 +03:00
parent 05a2a03a6a
commit 77fe2b04b6
38 changed files with 12676 additions and 8 deletions

View File

@@ -760,7 +760,16 @@ func getOrderLinesFromDB(db *sql.DB, orderID string) ([]OrderLineRaw, error) {
P.ProductAtt01Desc,
P.ProductAtt02Desc,
P.ProductAtt44Desc,
L.IsClosed,
CASE
WHEN ISNULL(L.IsClosed, 0) = 1
OR EXISTS (
SELECT 1
FROM BAGGI_V3.dbo.trInvoiceLine il WITH (NOLOCK)
WHERE il.OrderLineID = L.OrderLineID
)
THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS IsClosed,
L.WithHoldingTaxTypeCode,
L.DOVCode,
L.PlannedDateOfLading,