<?php
return [
    'BT-19' => [
        'code' => 'BT-19',
        'label' => 'Référence comptable de l’acheteur',
        'xpath' => './cbc:AccountingCost',
    ],
    'BT-10' => [
        'code' => 'BT-10',
        'label' => 'Référence de l’acheteur',
        'xpath' => './cbc:BuyerReference',
    ],
    'BT-14' => [
        'code' => 'BT-14',
        'label' => 'Numéro d’ordre de vente',
        'xpath' => './cac:OrderReference/cbc:SalesOrderID',
    ],
    'BT-16' => [
        'code' => 'BT-16',
        'label' => 'Référence d’avis d’expédition',
        'xpath' => './cac:DespatchDocumentReference/cbc:ID',
    ],
    'BT-15' => [
        'code' => 'BT-15',
        'label' => 'Référence d’avis de réception',
        'xpath' => './cac:ReceiptDocumentReference/cbc:ID',
    ],
    'BT-17' => [
        'code' => 'BT-17',
        'label' => 'Référence de l’appel d’offres ou du lot',
        'xpath' => './cac:OriginatorDocumentReference/cbc:ID',
    ],
    'BT-12' => [
        'code' => 'BT-12',
        'label' => 'Référence du contrat',
        'xpath' => './cac:ContractDocumentReference/cbc:ID',
    ],
    'BT-11' => [
        'code' => 'BT-11',
        'label' => 'Référence de projet',
        'xpath' => './cac:ProjectReference/cbc:ID',
    ],
    'BT-48-2' => [
        'code' => 'BT-48-2',
        'label' => 'Qualifiant d’Identifiant fiscal de l’acheteur',
        'xpath' => './cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:ID',
    ],
    'BT-56' => [
        'code' => 'BT-56',
        'label' => 'Point de contact de l’acheteur',
        'xpath' => './cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Name',
    ],
    'BT-57' => [
        'code' => 'BT-57',
        'label' => 'Numéro de téléphone du contact de l’acheteur',
        'xpath' => './cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Telephone',
    ],
    'BT-58' => [
        'code' => 'BT-58',
        'label' => 'Adresse électronique du contact de l’acheteur',
        'xpath' => './cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:ElectronicMail',
    ],
    // 'BT-72' => [
    //     'code' => 'BT-72',
    //     'label' => 'Date effective de livraison',
    //     'xpath' => './cac:Delivery/cbc:ActualDeliveryDate',
    // ],
    // 'BT-71' => [
    //     'code' => 'BT-71',
    //     'label' => 'Identifiant de l’établissement de livraison',
    //     'xpath' => './cac:Delivery/cac:DeliveryLocation/cbc:ID',
    // ],
    'BT-75' => [
        'code' => 'BT-75',
        'label' => 'Adresse de livraison - Ligne 1',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:StreetName',
    ],
    'BT-76' => [
        'code' => 'BT-76',
        'label' => 'Adresse de livraison - Ligne 2',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:AdditionalStreetName',
    ],
    'BT-77' => [
        'code' => 'BT-77',
        'label' => 'Adresse de livraison - Ville',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName',
    ],
    'BT-78' => [
        'code' => 'BT-78',
        'label' => 'Adresse de livraison - Code postal',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:PostalZone',
    ],
    'BT-79' => [
        'code' => 'BT-79',
        'label' => 'Adresse de livraison - Subdivision du pays',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentity',
    ],
    'BT-165' => [
        'code' => 'BT-165',
        'label' => 'Adresse de livraison - Ligne 3',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cac:AddressLine/cbc:Line',
    ],
    'BT-80' => [
        'code' => 'BT-80',
        'label' => 'Adresse de livraison - Code de pays',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode',
    ],
    'DelivAdr' => [
        'code' => 'DelivAdr',
        'label' => 'Adresse de livraison (complète)',
        'xpath' => './cac:Delivery/cac:DeliveryLocation/cac:Address',
        'format' => 'Address',
        'listXpath' => [
            './cbc:StreetName',
            './cbc:AdditionalStreetName',
            './cac:AddressLine/cbc:Line',
            './cbc:PostalZone',
            './cbc:CityName',
            './cbc:CountrySubentity',
            './cac:Country/cbc:IdentificationCode',
        ],
    ],
    'BT-70' => [
        'code' => 'BT-70',
        'label' => 'Livré à',
        'xpath' => './cac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name',
    ],
    'EXT-FR-FE-185' => [
        'code' => 'EXT-FR-FE-185',
        'label' => 'INCOTERMS (Type de livraison en code)',
        'xpath' => './cac:DeliveryTerms/cbc:ID',
    ],
    // 'BT-83' => [
    //     'code' => 'BT-83',
    //     'label' => 'Avis de paiement',
    //     'xpath' => './cac:PaymentMeans/cbc:PaymentID',
    // ],
    
    'BT-119' => [
        'code' => 'BT-119',
        'label' => 'Taux de type de TVA',
        'xpath' => './cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent',
    ],
    'BT-121' => [
        'code' => 'BT-121',
        'label' => 'Code de motif d’exonération de la TVA',
        'xpath' => './cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReasonCode',
    ],
    'BT-120' => [
        'code' => 'BT-120',
        'label' => 'Motif d’exonération de la TVA',
        'xpath' => './cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReason',
    ],
    // 'BT-115' => [
    //     'code' => 'BT-115',
    //     'label' => 'Montant à payer',
    //     'xpath' => './cac:LegalMonetaryTotal/cbc:PayableAmount',
    // ],
    // 'BT-' => [
    //     'code' => 'BT-',
    //     'label' => 'Identifiant de l’établissement de livraison',
    //     'xpath' => './cac:Delivery/cac:DeliveryLocation/cbc:ID',
    // ],
];
