neu
This commit is contained in:
@@ -1064,7 +1064,7 @@ Public Class cDakosyEZA
|
||||
For Each ADR In DY.eza_ADRESSEN
|
||||
'Verkäufer
|
||||
If ADR.ezaAd_AdressTyp = "CZ" Then
|
||||
Dim AD = getAdresseFromEORI(ADR.ezaAd_TeilnehmerEORI, SQL)
|
||||
Dim AD = getAdresseFromEORI(ADR.ezaAd_TeilnehmerEORI, ADR.ezaAd_TeilnehmerNLNR, SQL)
|
||||
If AD IsNot Nothing Then
|
||||
SPEDITIONSBUCH.AbsenderKundenNr = AD.AdressenNr
|
||||
SPEDITIONSBUCH.Absender = AD.Ordnungsbegriff
|
||||
@@ -1086,7 +1086,7 @@ Public Class cDakosyEZA
|
||||
|
||||
'Empfänger
|
||||
If ADR.ezaAd_AdressTyp = "CN" Then
|
||||
Dim AD = getAdresseFromEORI(ADR.ezaAd_TeilnehmerEORI, SQL)
|
||||
Dim AD = getAdresseFromEORI(ADR.ezaAd_TeilnehmerEORI, ADR.ezaAd_TeilnehmerNLNR, SQL)
|
||||
If AD IsNot Nothing Then
|
||||
SPEDITIONSBUCH.EmpfängerKundenNr = AD.AdressenNr
|
||||
SPEDITIONSBUCH.Empfänger = AD.Ordnungsbegriff
|
||||
@@ -1175,10 +1175,10 @@ Public Class cDakosyEZA
|
||||
|
||||
End Function
|
||||
|
||||
Shared Function getAdresseFromEORI(EORI As String, SQL As VERAG_PROG_ALLGEMEIN.SQL)
|
||||
Shared Function getAdresseFromEORI(EORI As String, EORI_NL As String, SQL As VERAG_PROG_ALLGEMEIN.SQL)
|
||||
If EORI Is Nothing Then Return Nothing
|
||||
If If(EORI, "") <> "" Then
|
||||
Dim kdNrTmp = SQL.getFMZOLLKdNrFromEORI(EORI)
|
||||
Dim kdNrTmp = SQL.getFMZOLLKdNrFromEORI(EORI, EORI_NL)
|
||||
If IsNumeric(kdNrTmp) Then
|
||||
Dim ADRESSE As New VERAG_PROG_ALLGEMEIN.cAdressen(kdNrTmp)
|
||||
Return ADRESSE
|
||||
@@ -1188,7 +1188,7 @@ Public Class cDakosyEZA
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user