Only process active articles
This commit is contained in:
parent
34c8ecbee5
commit
dc4955db17
@ -89,7 +89,8 @@ Namespace Winline
|
|||||||
[c075] -- EAN
|
[c075] -- EAN
|
||||||
FROM [{pMandator.Server}].[{pMandator.Database}].[dbo].[v021]
|
FROM [{pMandator.Server}].[{pMandator.Database}].[dbo].[v021]
|
||||||
WHERE
|
WHERE
|
||||||
mesocomp = '{pMandator.Id}' AND mesoyear = {oYear}"
|
c038 IS NULL -- Nur Aktive Artikel
|
||||||
|
AND mesocomp = '{pMandator.Id}' AND mesoyear = {oYear}"
|
||||||
|
|
||||||
Dim oTable = Await Database.GetDatatableAsync(oSQL)
|
Dim oTable = Await Database.GetDatatableAsync(oSQL)
|
||||||
Dim oArticles As New List(Of Article)
|
Dim oArticles As New List(Of Article)
|
||||||
@ -531,7 +532,7 @@ Namespace Winline
|
|||||||
FROM [{pMandator.Database}].[dbo].[v021]
|
FROM [{pMandator.Database}].[dbo].[v021]
|
||||||
WHERE
|
WHERE
|
||||||
[c075] = '{pEAN}'
|
[c075] = '{pEAN}'
|
||||||
AND [c038] IS NULL -- Aktiv
|
AND [c038] IS NULL -- Nur Aktive Artikel
|
||||||
AND [mesocomp] = '{pMandator.Id}' AND [mesoyear] = {oYear}"
|
AND [mesocomp] = '{pMandator.Id}' AND [mesoyear] = {oYear}"
|
||||||
Dim oTable As DataTable = Database.GetDatatable(oSQL)
|
Dim oTable As DataTable = Database.GetDatatable(oSQL)
|
||||||
|
|
||||||
@ -636,6 +637,7 @@ Namespace Winline
|
|||||||
[c123] -- Ersatzartikelnummer
|
[c123] -- Ersatzartikelnummer
|
||||||
FROM [{pMandator.Database}].[dbo].[v021]
|
FROM [{pMandator.Database}].[dbo].[v021]
|
||||||
WHERE [c011] = '{pArticleNumber}'
|
WHERE [c011] = '{pArticleNumber}'
|
||||||
|
AND c038 IS NULL -- Nur Aktive Artikel
|
||||||
AND [mesocomp] = '{pMandator.Id}' AND [mesoyear] = {oYear}"
|
AND [mesocomp] = '{pMandator.Id}' AND [mesoyear] = {oYear}"
|
||||||
Dim oTable As DataTable = Database.GetDatatable(oSQL)
|
Dim oTable As DataTable = Database.GetDatatable(oSQL)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user