Added DatumPreise und Zeichnungsnummer

This commit is contained in:
2026-03-12 16:50:07 +01:00
parent dcfadb51d3
commit 1bdb327592
2 changed files with 42 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ const TEILE_SEARCH_COLUMNS = [
'Bez2',
'Ben7',
'Ben8',
'Ben43',
'Hersteller'
];
@@ -117,12 +118,14 @@ const fullTextSearch = async (searchTerm, statusFilter) => {
t.Bez2,
t.Ben7,
t.Ben8,
t.Ben43,
t.Hersteller,
t.Stat,
t.VkTeil,
txt.Text AS [Text],
ts.PrsVk AS PrsVK,
ts.Ersatz AS Ersatz
ts.Ersatz AS Ersatz,
ts.PrsVkTerm
FROM [${tableConfig.tableName}] t WITH (NOLOCK)
OUTER APPLY (
SELECT TOP 1 MemoID
@@ -137,7 +140,10 @@ const fullTextSearch = async (searchTerm, statusFilter) => {
WHERE tx.TextId = ek.MemoID
) txt
OUTER APPLY (
SELECT TOP 1 PrsVk, Ersatz
SELECT TOP 1
PrsVk,
Ersatz,
PrsVkTerm
FROM TSSAEF WITH (NOLOCK)
WHERE Teil = t.Teil
ORDER BY ISN