TruckMaster

This commit is contained in:
2023-12-18 15:28:36 +01:00
parent ec955264ca
commit b88155a445
22 changed files with 1636 additions and 134 deletions

View File

@@ -987,9 +987,20 @@ Public Class SQL
End Select
Return where
End Function
Public Function getFMZOLLKdNrFromEORI(ByVal eori As String, eoriNL As String) As String
Function getFirmaWhere(Firma As String)
Dim where = ""
Select Case Firma
Case "IMEX" : where &= " AND [FilialenNr]='5501' "
Case "UNISPED" : where &= " AND [FilialenNr]='5601' "
Case "AMBAR" : where &= " AND [FilialenNr]='5701' "
Case "FRONTOFFICE" : where &= " AND [FilialenNr]='5801' "
Case Else : where &= " AND isnull([FilialenNr],0) NOT IN ('5501','5601','5701','5801') "
End Select
Return where
End Function
Public Function getFMZOLLKdNrFromEORI(ByVal eori As String, eoriNL As String, Firma As String) As String
Dim s As String = ""
Dim where = getFirmaWhere()
Dim where = getFirmaWhere(Firma)
Try
Dim conn As SqlConnection = GetNewOpenConnectionFMZOLL()