eza
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Imports System.Globalization
|
||||
Imports io.konik.zugferd
|
||||
Imports javax.management.relation
|
||||
Imports Newtonsoft.Json
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
@@ -12,9 +13,9 @@ Public Class cDakosyEZA_Greenpulse
|
||||
If eza Is Nothing Then Throw New ArgumentNullException(NameOf(eza))
|
||||
|
||||
' --- Adressen (Heuristik: CN=Importer, CZ=Exporter, DT=Declarant) ---
|
||||
Dim importer = GuessAddressByType(eza.eza_ADRESSEN, {"CN", "IM", "IMP", "IMPORTER"})
|
||||
Dim exporter = GuessAddressByType(eza.eza_ADRESSEN, {"CZ", "EX", "EXP", "EXPORTER"})
|
||||
Dim declarant = GuessAddressByType(eza.eza_ADRESSEN, {"DT", "DEC", "ANM", "DECLARANT"})
|
||||
Dim importer = GuessAddressByType(eza.eza_ADRESSEN, cVERAG_CustomsDeclarations.IMPORTER_ROLES)
|
||||
Dim exporter = GuessAddressByType(eza.eza_ADRESSEN, cVERAG_CustomsDeclarations.EXPORTER_ROLES)
|
||||
Dim declarant = GuessAddressByType(eza.eza_ADRESSEN, cVERAG_CustomsDeclarations.DECLARANT_ROLES)
|
||||
|
||||
' --- Rechnungsdaten (Unterlagen N380) ---
|
||||
Dim inv = If(eza.eza_UNTERLAGEN IsNot Nothing,
|
||||
@@ -236,9 +237,9 @@ Public Class cDakosyEZA_Greenpulse
|
||||
If za Is Nothing Then Throw New ArgumentNullException(NameOf(za))
|
||||
|
||||
' --- Parties (Heuristik über zaParty_Role) ---
|
||||
Dim importer = GuessPartyByRole(za.Parties, {"CN", "IMPORTER", "IM"})
|
||||
Dim exporter = GuessPartyByRole(za.Parties, {"CZ", "EXPORTER", "EX"})
|
||||
Dim declarant = GuessPartyByRole(za.Parties, {"CB", "DECLARANT", "DEC"})
|
||||
Dim importer = GuessPartyByRole(za.Parties, cVERAG_CustomsDeclarations.IMPORTER_ROLES)
|
||||
Dim exporter = GuessPartyByRole(za.Parties, cVERAG_CustomsDeclarations.EXPORTER_ROLES)
|
||||
Dim declarant = GuessPartyByRole(za.Parties, cVERAG_CustomsDeclarations.DECLARANT_ROLES)
|
||||
|
||||
' --- Rechnungsdaten (Header-Dokument N380) ---
|
||||
Dim inv = If(za.Documents IsNot Nothing,
|
||||
|
||||
Reference in New Issue
Block a user