Export-SepaDirectDebitXml #
ÜBERSICHT #
Erzeugt eine SEPA-Lastschrift-XML-Datei im Format pain.008.001.02.
SYNTAX #
Export-SepaDirectDebitXml [[-Invoices] <PSCustomObject[]>] [[-CreditorName] <string>]
[[-CreditorIBAN] <string>] [[-CreditorBIC] <string>] [[-CreditorId] <string>]
[[-CollectionDate] <datetime>] [-OutputPath] <string> [[-Conn] <__ComObject>] [[-Udl] <string>]
[[-ConnStr] <string>] [<CommonParameters>]
BESCHREIBUNG #
Diese Funktion erzeugt eine XML-Datei für SEPA-Lastschriften gemäß dem ISO-20022-Standard pain.008.001.02. Die Rechnungsdaten können entweder als Array von PSCustomObjects (z.B. von Get-OpenInvoicesForSepa) übergeben oder automatisch aus der Datenbank geladen werden.
Die Gläubiger-Daten (Name, IBAN, BIC, Gläubiger-ID) können als Parameter angegeben oder automatisch aus dem Firmenstamm geladen werden.
Die Transaktionen werden nach Fälligkeitsdatum und SequenceType (FRST/RCUR) gruppiert, sodass pro Kombination ein PmtInf-Block erzeugt wird.
PARAMETER #
-Invoices #
Type: PSCustomObject[]
Array von PSCustomObjects mit Rechnungs- und Mandatsdaten. Wird automatisch über Get-OpenInvoicesForSepa geladen, wenn nicht angegeben.
-CreditorName #
Type: string
Name des Gläubigers. Standard: aus Firmenstamm.
-CreditorIBAN #
Type: string
IBAN des Gläubigers. Standard: aus Firmenstamm.
-CreditorBIC #
Type: string
BIC des Gläubigers. Standard: aus Firmenstamm.
-CreditorId #
Type: string
Gläubiger-Identifikationsnummer (CI). Standard: aus Firmenstamm.
-CollectionDate #
Type: datetime
Fälligkeitsdatum für die Lastschriften. Standard: 5 Werktage ab heute.
-OutputPath #
Type: string
Pfad für die XML-Ausgabedatei.
-Conn #
Type: __ComObject
Bestehende ADODB-Verbindung.
-Udl #
Type: string
Pfad zu einer UDL-Datei.
-ConnStr #
Type: string
ADODB-Connection-String.
AUSGABEN #
PSCustomObject
Objekt mit OutputPath, MessageId, TotalAmount, TransactionCount und Errors.
BEISPIELE #
Export-SepaDirectDebitXml -OutputPath 'C:\Temp\sepa.xml' -Conn $conn
$invoices = Get-OpenInvoicesForSepa -Conn $conn
Export-SepaDirectDebitXml -Invoices $invoices -OutputPath 'C:\Temp\sepa.xml' -Conn $conn