<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Import Definition SatagAmicronSix v2.5.0 -->
<ORDERS>
    <DEFINES>
        <!-- Dokumentation dieser Einstellungen: siehe Kapitel "Datenimport > Auftragsimport > Definitionsdatei: Aufbau und Inhalt"-->
        <DECIMALSEPARATOR>.</DECIMALSEPARATOR>
        <!-- Konvertierung der Landeskuerzel ist fuer Amicron-Faktura notwendig fuer die korrekte Ermittlung der Steuerkuerzel bei  Auslandsrechnungen. -->
        <!-- Importierte Landeskuerzel fuer Inland und EU-Laender muessen uebereinstimmen mit denen, die in der Faktura in -->
        <!-- den Programmoptionen unter "System > Einstellungen 2/2" eingetragen wurden -->
        <!--
        <INLAND>D,DE,DEU,DEUTSCHLAND,GER,GERMANY</INLAND>
        <CONVERTLAND>AUT=A,AUS=A,Austria=A,AU=A,GERMANY=DE,GER=DE,Netherlands=NL,France=FR,Slovenia=SL,Switzerland=CH,Spain=E,Greece=GR</CONVERTLAND>
        -->
        <!-- Versandkostenartikel definieren - entfernen Sie die Kommentarklammern und setzen Sie die gewuenschte Artikelnummer fuer Versandkosten ein-->
        <!--
        <VersandkostenArtikelnr>IHRE-ARTNR</VersandkostenArtikelnr>
        -->
    </DEFINES>
    <ORDER>
        <!-- die Shop-Bestellnummer wird zusaetzlich ins FREIFELD1 (Vermerk),
             das Bestelldatum ins FREIFELD2 (Bestellung vom) und
             der SalesChannel des Auftrags ins FREIFELD3 (Bestellart)
             werden uebernommen.
             -->
        <orderNumber NewData="AUFTRAG">#AUFTRAGNR</orderNumber>
        <shopnumber>#AUFTRAG.SHOPBESTELLNUMMER</shopnumber>
        <orderNumberDuplicate>#FREIFELD1</orderNumberDuplicate>
        <orderDate>#DATUM</orderDate>
        <orderDateTime>#FREIFELD2</orderDateTime>
        <amountTotal>#AUFRAG.ENDBETRAG</amountTotal>
        <steuer_inklusive>#STEUERINKL</steuer_inklusive>
        <shippingTotal>#VERSANDKOSTEN</shippingTotal>
        <shippingTax>#VERSANDKOSTENSTEUER</shippingTax>
        <customerComment>#BEMERKUNG</customerComment>
        <currency>
            <isoCode>#WAEHRUNG</isoCode>
        </currency>
        <salesChannel>
            <name>#FREIFELD3</name>
            <paymentMethod>
                <name>#AUFTRAG.ZAHLWEISE</name>
                <instructions>#AUFTRAG.FUSSTEXT</instructions>
                <customFields>
                    <!-- <swag_paypal_transaction_id>#PPTransactionID</swag_paypal_transaction_id>-->
                    <swag_paypal_resource_id>#PPTransactionID</swag_paypal_resource_id>
                </customFields>
            </paymentMethod>
            <shippingMethod>
                <name>#AUFTRAG.LIEFERART</name>
            </shippingMethod>
        </salesChannel>
        <customFields>
            <!-- Die Schnittstelle gibt alle Custom Fields der Order aus, diese koennen bei Bedarf hier den Auftragsfeldern zugeordnet werden-->
        </customFields>
        <orderCustomer>
            <customerNumber>#KUNADRESSE.NR</customerNumber>
            <customerGroup>
                <name>#KUNADRESSE.GRUPPE</name>
            </customerGroup>
            <email>#KUNADRESSE.EMAIL</email>
            <vatId>#KUNADRESSE.USTIDNR</vatId>
            <customFields>
            </customFields>
            <!-- Die Schnittstelle gibt alle Custom Fields der Order aus, diese koennen bei Bedarf hier den Auftragsfeldern zugeordnet werden-->
        </orderCustomer>
        <billingAddress NewData="KUNADRESSE">
            <title>#TITEL</title>
            <salutation>
                <displayName>#ANREDE</displayName>
            </salutation>
            <firstName>#VORNAME</firstName>
            <lastName>#NAME</lastName>
            <street>#STRASSE</street>
            <country_iso>#LAND</country_iso>
            <zipcode>#PLZ</zipcode>
            <city>#ORT</city>
            <company>#NAME2</company>
            <department>#NAME3</department>
            <phoneNumber>#TELEFON1</phoneNumber>
            <!--
            <additionalAddressLines>#NAME3</additionalAddressLines>
            -->
            <customFields>
            </customFields>
            <!-- Die Schnittstelle gibt alle Custom Fields der Order aus, diese koennen bei Bedarf hier den Auftragsfeldern zugeordnet werden-->
            <!-- twig Template für <billingAddress> wird hier ausgegeben (Template für Rechnungsadresse) -->
            <!-- Preisgruppenimport siehe https://docs.satware.com/satware/amicron-shopware6-schnittstelle/faq/auftragsimport/#kundengruppe-aus-shopware-als-preisgruppe-importieren
            <preisgruppe>#AUFTRAG.PREISGRUPPE</preisgruppe>
            <preisgruppe_kunde>#KUNADRESSE.PREISGRUPPE</preisgruppe>
            -->
        </billingAddress>
        <deliveryAddress NewData="LFRADRESSE">
            <title>#TITEL</title>
            <salutation>
                <displayName>#ANREDE</displayName>
            </salutation>
            <firstName>#VORNAME</firstName>
            <lastName>#NAME</lastName>
            <street>#STRASSE</street>
            <country_iso>#LAND</country_iso>
            <zipcode>#PLZ</zipcode>
            <city>#ORT</city>
            <company>#NAME2</company>
            <department>#NAME3</department>
            <phoneNumber>#TELEFON1</phoneNumber>
            <!--
            <additionalAddressLines>#NAME3</additionalAddressLines>
            -->
            <customFields>
            </customFields>
            <!-- twig Template für <deliveryAddress> wird hier ausgegeben-->
        </deliveryAddress>
        <!-- twig Template für <ORDER> wird hier ausgegeben (Template fuer Auftragskopf) -->
        <!--
        <zahlungIn>#AUFTRAG.ZAHLUNGIN</zahlungIn>
        -->
        <lineItems>
                <item NewData="ATRPOS">
                    <entryType>#ATRPOS.ART</entryType>
                    <unitPrice>#ATRPOS.EPREIS</unitPrice>
                    <taxRate>#ATRPOS.STEUER</taxRate>
                    <quantity>#ATRPOS.MENGE</quantity>
                    <label>#ATRPOS.BEZEICHNUNG</label>
                    <description>#ATRPOS.TEXT</description>
                    <!-- Optionaler Artikeltext der die Varianten als String enthaelt -->
                    <!-- <descriptionVariants>#ATRPOS.TEXT</descriptionVariants> -->
                    <customFields>
                    </customFields>
                    <!-- twig Template für <product> wird hier ausgegeben (Template fuer Produkt) -->
                    <product>
                        <productNumber>#ATRPOS.ARTIKELNR</productNumber>
                        <customFields>
                        </customFields>
                        <!-- Hier setzt die Schnittstelle ein optionales Twig Template ein -->
                    </product>
                </item>
        </lineItems>
        </ORDER>
</ORDERS>
