<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
         xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
         xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
         xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2">
  <ext:UBLExtensions>
    <ext:UBLExtension>
      <ext:ExtensionContent/>
    </ext:UBLExtension>
  </ext:UBLExtensions>

  <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
  <cbc:CustomizationID>2.0</cbc:CustomizationID>

  <!-- ProfileID según catálogo 17 -->
  <cbc:ProfileID schemeName="SUNAT:Identificador de Tipo de Operacion"
                 schemeAgencyName="PE:SUNAT"
                 schemeURI="urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo17">
    0104
  </cbc:ProfileID>

  <cbc:ID>F001-71530</cbc:ID>
  <cbc:IssueDate>Y-m-d</cbc:IssueDate>
  <cbc:IssueTime>H:i:s</cbc:IssueTime>
  <cbc:DueDate>Y-m-d</cbc:DueDate>

  <cbc:InvoiceTypeCode listAgencyName="PE:SUNAT"
                       listURI="urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo01"
                       listID="0101">
    01
  </cbc:InvoiceTypeCode>

  <cbc:DocumentCurrencyCode listID="ISO 4217 Alpha"></cbc:DocumentCurrencyCode>

  <cbc:LineCountNumeric>1</cbc:LineCountNumeric>

  <cac:Signature>
    <cbc:ID>F001-71530</cbc:ID>
    <cac:SignatoryParty>
      <cac:PartyIdentification><cbc:ID>20393181304</cbc:ID></cac:PartyIdentification>
      <cac:PartyName><cbc:Name><![CDATA[NOVA]]></cbc:Name></cac:PartyName>
    </cac:SignatoryParty>
    <cac:DigitalSignatureAttachment>
      <cac:ExternalReference>
        <cbc:URI>20393181304-F001-71530</cbc:URI>
      </cac:ExternalReference>
    </cac:DigitalSignatureAttachment>
  </cac:Signature>

  <cac:AccountingSupplierParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="6" schemeAgencyName="PE:SUNAT"
                schemeURI="urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo06">20393181304</cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyName><cbc:Name><![CDATA[NOVAS]]></cbc:Name></cac:PartyName>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName><![CDATA[NOVA]]></cbc:RegistrationName>
        <cac:RegistrationAddress>
          <cbc:AddressTypeCode>0000</cbc:AddressTypeCode>
        </cac:RegistrationAddress>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>

  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="0"
                schemeAgencyName="PE:SUNAT"
                schemeURI="urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo06">
          0
        </cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName><![CDATA[A Y L AGRICOLA E.I.R.L.]]></cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>

  <!-- Totales (ajusta tus campos exactos: sub_total, total, igv, isc, exonerated, etc.) -->
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="">0.00</cbc:TaxAmount>
  </cac:TaxTotal>

  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="">5770.38</cbc:LineExtensionAmount>
    <cbc:TaxInclusiveAmount currencyID="">5770.38</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="">0.00</cbc:AllowanceTotalAmount>
    <cbc:PayableAmount currencyID="">5770.38</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>

  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="GLL">462.0000</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="">5770.38</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID=""></cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="">5770.38</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID=""></cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>E</cbc:ID>
          <cbc:Percent>0.00</cbc:Percent>
          <cbc:TaxExemptionReasonCode>20</cbc:TaxExemptionReasonCode>
          <cac:TaxScheme>
            <cbc:ID>9997</cbc:ID>
            <cbc:Name>EXO</cbc:Name>
            <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>

    <cac:Item>
      <cbc:Description><![CDATA[DIESEL B-5  ****PAGO ANTICIPADO***]]></cbc:Description>
      <cac:SellersItemIdentification>
        <cbc:ID>B5</cbc:ID>
      </cac:SellersItemIdentification>
    </cac:Item>

    <cac:Price>
      <cbc:PriceAmount currencyID="">12.4900</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>

</Invoice>