<?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>
    <cbc:ID>F001-88004</cbc:ID>
    <cbc:IssueDate>2026-03-11</cbc:IssueDate>
    <cbc:InvoiceTypeCode listID="0101">01</cbc:InvoiceTypeCode>
    <cbc:DocumentCurrencyCode>PEN</cbc:DocumentCurrencyCode>

    <cac:AccountingSupplierParty>
        <cac:Party>
            <cac:PartyIdentification><cbc:ID schemeID="6">20123456789</cbc:ID></cac:PartyIdentification>
            <cac:PartyLegalEntity><cbc:RegistrationName>Proveedor QA XML</cbc:RegistrationName></cac:PartyLegalEntity>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cac:PartyIdentification><cbc:ID schemeID="6">20000000001</cbc:ID></cac:PartyIdentification>
            <cac:PartyLegalEntity><cbc:RegistrationName>MI EMPRESA</cbc:RegistrationName></cac:PartyLegalEntity>
        </cac:Party>
    </cac:AccountingCustomerParty>

    <cac:LegalMonetaryTotal>
        <cbc:PayableAmount currencyID="PEN">210.00</cbc:PayableAmount>
        <cbc:TaxInclusiveAmount currencyID="PEN">210.00</cbc:TaxInclusiveAmount>
    </cac:LegalMonetaryTotal>

    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="PEN">32.03</cbc:TaxAmount>
    </cac:TaxTotal>

    <!-- LÍNEA 1: 3 CAJAS de IBUPROFENO (unitCode="BX") a S/ 50 c/u -->
    <!-- Producto EXISTENTE, se vende por unidad (NIU), cada caja = 100 tabletas -->
    <cac:InvoiceLine>
        <cbc:ID>1</cbc:ID>
        <cbc:InvoicedQuantity unitCode="BX">3</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="PEN">150.00</cbc:LineExtensionAmount>
        <cac:PricingReference>
            <cac:AlternativeConditionPrice>
                <cbc:PriceAmount currencyID="PEN">59.00</cbc:PriceAmount>
                <cbc:PriceTypeCode>01</cbc:PriceTypeCode>
            </cac:AlternativeConditionPrice>
        </cac:PricingReference>
        <cac:TaxTotal>
            <cbc:TaxAmount currencyID="PEN">22.88</cbc:TaxAmount>
            <cac:TaxSubtotal>
                <cbc:TaxableAmount currencyID="PEN">127.12</cbc:TaxableAmount>
                <cbc:TaxAmount currencyID="PEN">22.88</cbc:TaxAmount>
                <cac:TaxCategory>
                    <cbc:Percent>18</cbc:Percent>
                    <cbc:TaxExemptionReasonCode>10</cbc:TaxExemptionReasonCode>
                    <cac:TaxScheme><cbc:ID>1000</cbc:ID><cbc:Name>IGV</cbc:Name><cbc:TaxTypeCode>VAT</cbc:TaxTypeCode></cac:TaxScheme>
                </cac:TaxCategory>
            </cac:TaxSubtotal>
        </cac:TaxTotal>
        <cac:Item>
            <cbc:Description>IBUPROFENO Tableta Recubierta 800 mg</cbc:Description>
            <cac:SellersItemIdentification><cbc:ID>PROV-IBU800-CJ100</cbc:ID></cac:SellersItemIdentification>
        </cac:Item>
        <cac:Price><cbc:PriceAmount currencyID="PEN">50.00</cbc:PriceAmount></cac:Price>
    </cac:InvoiceLine>

    <!-- LÍNEA 2: 2 CAJAS de VITAMINA C (unitCode="BX") a S/ 30 c/u -->
    <!-- Producto NUEVO, cada caja = 10 tubos -->
    <cac:InvoiceLine>
        <cbc:ID>2</cbc:ID>
        <cbc:InvoicedQuantity unitCode="BX">2</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="PEN">60.00</cbc:LineExtensionAmount>
        <cac:PricingReference>
            <cac:AlternativeConditionPrice>
                <cbc:PriceAmount currencyID="PEN">35.40</cbc:PriceAmount>
                <cbc:PriceTypeCode>01</cbc:PriceTypeCode>
            </cac:AlternativeConditionPrice>
        </cac:PricingReference>
        <cac:TaxTotal>
            <cbc:TaxAmount currencyID="PEN">9.15</cbc:TaxAmount>
            <cac:TaxSubtotal>
                <cbc:TaxableAmount currencyID="PEN">50.85</cbc:TaxableAmount>
                <cbc:TaxAmount currencyID="PEN">9.15</cbc:TaxAmount>
                <cac:TaxCategory>
                    <cbc:Percent>18</cbc:Percent>
                    <cbc:TaxExemptionReasonCode>10</cbc:TaxExemptionReasonCode>
                    <cac:TaxScheme><cbc:ID>1000</cbc:ID><cbc:Name>IGV</cbc:Name><cbc:TaxTypeCode>VAT</cbc:TaxTypeCode></cac:TaxScheme>
                </cac:TaxCategory>
            </cac:TaxSubtotal>
        </cac:TaxTotal>
        <cac:Item>
            <cbc:Description>VITAMINA C EFERVESCENTE 1000mg TUBO</cbc:Description>
            <cac:SellersItemIdentification><cbc:ID>VITC-EFV-CJ10</cbc:ID></cac:SellersItemIdentification>
        </cac:Item>
        <cac:Price><cbc:PriceAmount currencyID="PEN">30.00</cbc:PriceAmount></cac:Price>
    </cac:InvoiceLine>
</Invoice>
