OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [ubl-dev] Document Invoice UBL


Hola Oriol,
Muchas gracias por tus aclaraciones.

He revisado el cálculo para cada uno de los nodos, pero el que no tengo muy claro es PayableAmount que defines como:
  >> Es el total a pagar PayableAmount = TaxInclusive - PrepaidAmount - TaxTotal/TaxAmount negativos. Es decir los impuestos retenidos.

En TaxInclusive ya hemos aplicado los impuestos (TotalTaxAmount = suma de Invoice.TaxTotal(i).TaxAmount, en el que ya estarán descontados los Impuestos Retenidos pq están en negativo), con lo que entiendo que ya no es necesario restar los impuestos retenidos (Tax en negativo). ¿No sería, entonces,  PayableAmount = TaxInclusive - PrepaidAmount??


En TaxTotal, si le indico el porcentaje en TaxTotal.TaxSubtotal.TaxCategory.Percent, ¿es necesario indicar el nodo TaxTotal.TaxSubtotal.TaxCategory.ID?? ¿y si es así, cómo se codificaría?
Y en TaxTotal.TaxSubtotal.TaxCategory.TaxScheme.TaxTypeCode, le indico IVA (¿o VAT??). ¿Es necesario también indicar el TaxTotal.TaxSubtotal.TaxCategory.TaxScheme.ID?? ¿si es necesario, cómo??
 

Respecto al validador que me indicas en http://www.invinet.org/recursos/conformance/invoice-validation.html, para confirmar por lo menos si mi fichero estructuralmente es correcto, ¿qué regla puedo utilizar de las que permite seleccionar? ¿o a nivel estructural también necesitaría reglas de negocio españolas?
He estado probando con la regla BIIRULES el fichero UBL que adjunto, y me aparecen, principalmente, errores en los ID's de TaxCategory y TaxScheme que he comentado antes, y errores de cálculos en el InvoiceLine.LineExtensionAmount y en Invoice.TaxExclusive que no acabo de comprender, ya que el resultado de las operaciones es el que almaceno en InvoiceLine.LineExtensionAmount, e Invoice.TaxExclusive. No consigo ver el problema...

¿De qué otra forma puedo validar los ficheros UBL que genero? Y si yo envio mi factura UBL, ¿cómo saben interpretarla si no están definidas las reglas de negocio, ni los códigos para España??

Gracias por adelantado, y un saludo


2011/9/20 Oriol Bausà Peris <oriol@invinet.org>
Hola de nuevo Elena,

El 20/09/2011, a las 09:39, Elena Pastor escribió:

Buenos días Oriol,
primero de nada gracias por una contestación tan rápida y por tu ayuda.

¿Me podrias confirmar si es correcto, o hacerme las aclaraciones necesarias para montar un ubl válido??
- Respecto a Invoice.TaxTotal deben estar agrupados los impuestos existentes en las líneas, asignando un TaxTotal diferente para cada tipo de IVA, es decir, si tenemos IVA, IRPF y RE (indicado en TaxTotal(i).TaxSubtotal(j).TaxCategory.TaxScheme.TaxTypeCode), tendremos 3 nodos de TaxTotal con sus respectivos desgloses de porcentajes en sus TaxSubtotal, guardando en TaxTotal.TaxAmount, la suma de los TaxAmount de los TaxSubtotal. ¿Es correcto??


La regla general es un TaxTotal por cada tipo de impuesto (que se debe especificar al final del árbol. En BII se utiliza el elemento TaxScheme/ID para identificar el esquema impositivo) y un Taxsubtotal por cada categoria dentro del mismo tipo de impuesto.

Tu ejemplo es correcto. Tres tipos de impuesto = 3 TaxTotal, y en TaxAmount el impuesto de cada uno de ellos y en TaxableAmount las bases imponibles. 


- Respecto a los cargos y descuentos (AllowanceCharge), en un factura podemos tener descuentos y cargos a nivel de cabecera y/o a nivel de línea.
En Invoice.InvoiceItem(i).AllowanceCharge(j) indicamos los cargos y descuentos de la línea (ChargeIndicator, BaseAmount * MultiplierFactorNumeric = Amount).
Pero a nivel de Invoice.AllowanceCharge, ¿indicaremos en éste nodo únicamente los cargos y/o descuentos a nivel de cabecera? ¿o también el desglose de las líneas??


LineExtensionAmount debe contener los descuentos y cargos a nivel de línea pero no los impuestos. Por lo tanto, no se deben repetir los descuentos y cargos en cabecera de la factura. Los AllowanceCharge a nivel de cabecera deben ser únicamente los que aplican a toda la factura y son los que se deben totalizar en LegalMonetaryTotal.

- Respecto a InvoiceLine:
  InvoiceLine.LineExtensionAmount: Total de la línea, sin impuestos incluidos, ¿pero aplicados los descuentos/cargos de la línea???


Si

- Respecto a LegalMonetaryTotal:
    LineExtensionAmount: Suma de LineExtensionAmount de las líneas. (Importe total de las líneas, sin impuestos, ¿¿ni cargos/descuentos (de cabecera)??

Exacto

    TaxExclusiveAmount: Total de la factura, sin impuestos incluidos, ¿pero se incluyen cargos/descuentos generales de la factura??? (LineExtensionAmount = TaxExclusiveAmount??)

Es el LineExtensionAmount + ChargeTotalAmount - AllowanceTotalAmount

    TaxInclusive: Total de la factura, con impuestos incluidos (suma de todos los Invoice.TaxTotal.TaxAmount), ¿sin decuentos ni cargos generales??

TaxExclusive + TaxTotal/TaxAmount (puede haber varios)   Es el Total Factura

    AllowanceTotalAmount: Suma de los descuentos generales de la factura. (ChargeIndicator = false)
Ok

    ChargeTotalAmount: Suma de los cargos generales de la factura. (ChargeIndicator = true)

Ok

    PayableAmount: Total de factura. (TaxInclusive - AllowanceTotalAmount + ChargeTotalAmount) ??


Es el total a pagar PayableAmount = TaxInclusive - PrepaidAmount - TaxTotal/TaxAmount negativos. Es decir los impuestos retenidos.

   
Voy a seguir con los procesos de cálculos e intentar montar un fichero xml-ubl correcto. Si me pudieras pasar algún ejemplo de factura con 'un poco de todo', te lo agradecería....

Sigo con ello, y gracias por adelantado.

(¿No existe entonces ningún validador contable para ficheros UBL, igual que existe para Facturae??? ¿Y estructural, para comprobar p.e. que todos los nodos obligatorios están incluidos,...? )



Hay un validador de instancias UBL que desarrollamos en Invinet para PEPPOL. Lo puedes ver en http://www.invinet.org/recursos/conformance/invoice-validation.html , pero como España no está en PEPPOL, no están las reglas de negocio españolas. 

Saludos
Oriol

Gracias otra vez.

Un saludo

2011/9/19 Oriol Bausà Peris <oriol@invinet.org>
Hola Elena,

Soy Oriol Bausà miembro de UBL y responsable del UBL ESLSC. En este subcomité de UBL trabajamos en la localización de UBL y en la adecuación de este formato a los requisitos de España.

Para contemplar los impuestos retenidos en la versión UBL 2.0 se debe utilizar una repetición de TaxTotal/TaxSubtotal con el porcentaje e importes en negativo para que los cálculos de totales funcionen adecuadamente.

El Recargo de equivalencia es un impuesto más, similar al IVA, por lo que se debe especificar como éste.

En general, puedes tener un TaxTotal para cada esquema impositivo, es decir uno para el IVA, uno para el RE, otro para el IRPF, etc, y usar los TaxSubtotal para informar de distintas categorias, p.e. si en una factura hay más de una categoría de IVA. En el caso de impuestos retenidos como el IRPF, tal como comentaba arriba, es necesario que indiques valores negativos.

En cuanto al tema de los códigos, en UBL no se obliga a utilizar ninguna lista concreta de códigos, por lo que puedes usar una lista propia, El Ministerio de Industria está generando una lista en formato Genericode con los códigos de impuestos para España. En cuanto la haga pública os lo haré saber.

De momento no existe ninguna herramienta online para la validación de facturas en formato UBL con los requisitos para España.

Si quieres podemos usar este foro para intercambiar ejemplos de facturas UBL para España. Cualquier cosa que necesites me lo haces saber.

Saludos cordiales
Oriol Bausà


El 19/09/2011, a las 19:01, Elena Pastor escribió:

> Hello,
> I'm working on a project of a format electronic billing UBL (UBL Invoice) in Spain, and I need information to do so.
> I need information on how to include Withhelds Tax (Impuestos Retenidos) and Equivalent Surcharge (Recargo Equivalente), tax codes of spain, ...
> All what is needed to properly mount Invoice.InvoiceLine.TaxTotal, Invoice.TaxTotal, AllowanceCharge (invoice header, invoice line), LegalMonetaryTotal,...
>
> Where can I find examples of UBL invoice files? And examples of Spanish invoice?
> Can you give me any information about how to build and calculate the UBL Invoice document?
> And some link or forum where i can go to make questions about  UBL invoice of Spain?
> Is there an online tool where you can validate files of UBL Invoice of Spain?
>
> Any help I would be helpful. Thank you very much in advance.
>
> Regards,
>   E. Pastor
>




<?xml version="1.0"?>
<Invoice xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2" xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:udt="urn:un:unece:uncefact:data:draft:UnqualifiedDataTypesSchemaModule:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
  <cbc:UBLVersionID>2.0</cbc:UBLVersionID>
  <cbc:CustomizationID>urn:oasis:names:specification:ubl:xpath:Invoice-2.0:sbs-1.0-draft</cbc:CustomizationID>
  <cbc:ProfileID>bpid:urn:oasis:names:draft:bpss:ubl-2-sbs-invoice-notification-draft</cbc:ProfileID>
  <cbc:ID>A00095678</cbc:ID>
  <cbc:CopyIndicator>false</cbc:CopyIndicator>
  <cbc:UUID>849FBBCE-E081-40B4-906C-94C5FF9D1AC3</cbc:UUID>
  <cbc:IssueDate>2005-06-21</cbc:IssueDate>
  <cbc:InvoiceTypeCode>SalesInvoice</cbc:InvoiceTypeCode>
  <cbc:Note>sample</cbc:Note>
  <cbc:TaxPointDate>2005-06-21</cbc:TaxPointDate>
  <cbc:DocumentCurrencyCode>GBP</cbc:DocumentCurrencyCode>
  <cac:OrderReference>
    <cbc:ID>AEG012345</cbc:ID>
    <cbc:IssueDate>2005-06-20</cbc:IssueDate>
  </cac:OrderReference>
  <cac:AccountingSupplierParty>
    <cbc:CustomerAssignedAccountID>CO001</cbc:CustomerAssignedAccountID>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>Consortial</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Busy Street</cbc:StreetName>
        <cbc:BuildingName>Thereabouts</cbc:BuildingName>
        <cbc:BuildingNumber>56A</cbc:BuildingNumber>
        <cbc:CityName>Farthing</cbc:CityName>
        <cbc:PostalZone>AA99 1BB</cbc:PostalZone>
        <cbc:CountrySubentity>Heremouthshire</cbc:CountrySubentity>
        <cac:AddressLine>
          <cbc:Line>The Roundabout</cbc:Line>
        </cac:AddressLine>
        <cac:Country>
          <cbc:IdentificationCode>GB</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:Contact>
        <cbc:Name>Mrs Bouquet</cbc:Name>
        <cbc:Telephone>0158 1233714</cbc:Telephone>
        <cbc:Telefax>0158 1233856</cbc:Telefax>
        <cbc:ElectronicMail>bouquet@fpconsortial.co.uk</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cbc:CustomerAssignedAccountID>XFB01</cbc:CustomerAssignedAccountID>
    <cbc:SupplierAssignedAccountID>GT00978567</cbc:SupplierAssignedAccountID>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>IYT Corporation</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Avon Way</cbc:StreetName>
        <cbc:BuildingName>Thereabouts</cbc:BuildingName>
        <cbc:BuildingNumber>56A</cbc:BuildingNumber>
        <cbc:CityName>Bridgtow</cbc:CityName>
        <cbc:PostalZone>ZZ99 1ZZ</cbc:PostalZone>
        <cbc:CountrySubentity>Avon</cbc:CountrySubentity>
        <cac:AddressLine>
          <cbc:Line>3rd Floor, Room 5</cbc:Line>
        </cac:AddressLine>
        <cac:Country>
          <cbc:IdentificationCode>GB</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:Contact>
        <cbc:Name>Mr Fred Churchill</cbc:Name>
        <cbc:Telephone>0127 2653214</cbc:Telephone>
        <cbc:Telefax>0127 2653215</cbc:Telefax>
        <cbc:ElectronicMail>fred@iytcorporation.gov.uk</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:Delivery>
    <cbc:ActualDeliveryDate>2005-06-20</cbc:ActualDeliveryDate>
    <cac:DeliveryAddress>
      <cbc:StreetName>Avon Way</cbc:StreetName>
      <cbc:BuildingName>Thereabouts</cbc:BuildingName>
      <cbc:BuildingNumber>56A</cbc:BuildingNumber>
      <cbc:CityName>Bridgtow</cbc:CityName>
      <cbc:PostalZone>ZZ99 1ZZ</cbc:PostalZone>
      <cbc:CountrySubentity>Avon</cbc:CountrySubentity>
      <cac:AddressLine>
        <cbc:Line>3rd Floor, Room 5</cbc:Line>
      </cac:AddressLine>
      <cac:Country>
        <cbc:IdentificationCode>GB</cbc:IdentificationCode>
      </cac:Country>
    </cac:DeliveryAddress>
  </cac:Delivery>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode>20</cbc:PaymentMeansCode>
    <cbc:PaymentDueDate>2005-07-21</cbc:PaymentDueDate>
    <cac:PayeeFinancialAccount>
      <cbc:ID>12345678</cbc:ID>
      <cbc:Name>Farthing Purchasing Consortia</cbc:Name>
      <cbc:AccountTypeCode>Current</cbc:AccountTypeCode>
      <cbc:CurrencyCode>GBP</cbc:CurrencyCode>
      <cac:Country>
        <cbc:IdentificationCode>GB</cbc:IdentificationCode>
      </cac:Country>
    </cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:PaymentTerms>
    <cbc:Note>Payable within 1 calendar month from the invoice date</cbc:Note>
  </cac:PaymentTerms>
  <cac:AllowanceCharge>
    <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
    <cbc:AllowanceChargeReasonCode>10</cbc:AllowanceChargeReasonCode>
    <cbc:MultiplierFactorNumeric>0.10</cbc:MultiplierFactorNumeric>
    <cbc:Amount currencyID="GBP">7.22</cbc:Amount>
    <cbc:BaseAmount currencyID="GBP">72.23</cbc:BaseAmount>
  </cac:AllowanceCharge>
  <cac:AllowanceCharge>
    <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
    <cbc:AllowanceChargeReasonCode>7</cbc:AllowanceChargeReasonCode>
    <cbc:MultiplierFactorNumeric>0.07</cbc:MultiplierFactorNumeric>
    <cbc:Amount currencyID="GBP">5.06</cbc:Amount>
    <cbc:BaseAmount currencyID="GBP">72.23</cbc:BaseAmount>
  </cac:AllowanceCharge>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="GBP">10.68</cbc:TaxAmount>
    <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="GBP">50.71</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="GBP">9.13</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:Percent>18.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:TaxTypeCode>IVA</cbc:TaxTypeCode>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="GBP">19.35</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="GBP">1.55</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:Percent>8.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:TaxTypeCode>IVA</cbc:TaxTypeCode>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="GBP">2.49</cbc:TaxAmount>
    <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="GBP">49.78</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="GBP">2.49</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:Percent>5.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:TaxTypeCode>RE</cbc:TaxTypeCode>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="GBP">-2.77</cbc:TaxAmount>
    <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="GBP">39.63</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="GBP">-2.77</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:Percent>-7.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:TaxTypeCode>IRPF</cbc:TaxTypeCode>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="GBP">72.23</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="GBP">70.07</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="GBP">80.47</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="GBP">7.22</cbc:AllowanceTotalAmount>
    <cbc:ChargeTotalAmount currencyID="GBP">5.06</cbc:ChargeTotalAmount>
    <cbc:PayableAmount currencyID="GBP">80.47</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="S7">1.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="GBP">31.37</cbc:LineExtensionAmount>
    <cac:OrderLineReference>
      <cbc:LineID>1</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>P40</cbc:ID>
        <cac:DocumentReference>
          <cbc:ID>1</cbc:ID>
          <cbc:DocumentTypeCode>Pedido 40</cbc:DocumentTypeCode>
        </cac:DocumentReference>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>10</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.10</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">3.24</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">32.35</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>7</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.07</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">2.26</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">32.35</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">5.65</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">31.37</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">5.65</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>18.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>IVA</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">1.57</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">31.37</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">1.57</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>5.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>RE</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>linea 1</cbc:Description>
      <cbc:Name>ART1</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="GBP">32.35</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="S7">1.00</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="S7">2.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="GBP">20.91</cbc:LineExtensionAmount>
    <cac:OrderLineReference>
      <cbc:LineID>2</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>P40</cbc:ID>
        <cac:DocumentReference>
          <cbc:ID>1</cbc:ID>
          <cbc:DocumentTypeCode>Pedido 40</cbc:DocumentTypeCode>
        </cac:DocumentReference>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>5</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.05</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">1.03</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">20.50</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>7</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.07</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">1.44</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">20.50</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">3.76</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">20.91</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">3.76</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>18.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>IVA</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">-1.46</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">20.91</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">-1.46</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>-7.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>IRPF</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>linea 2</cbc:Description>
      <cbc:Name>ART2</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="GBP">10.25</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="S7">1.00</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>3</cbc:ID>
    <cbc:InvoicedQuantity unitCode="S7">2.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="GBP">19.95</cbc:LineExtensionAmount>
    <cac:OrderLineReference>
      <cbc:LineID>3</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>P40</cbc:ID>
        <cac:DocumentReference>
          <cbc:ID>1</cbc:ID>
          <cbc:DocumentTypeCode>Pedido 40</cbc:DocumentTypeCode>
        </cac:DocumentReference>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>10</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.10</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">2.10</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">21.00</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReasonCode>5</cbc:AllowanceChargeReasonCode>
      <cbc:MultiplierFactorNumeric>0.05</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="GBP">1.05</cbc:Amount>
      <cbc:BaseAmount currencyID="GBP">21.00</cbc:BaseAmount>
    </cac:AllowanceCharge>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">1.60</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">19.95</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">1.60</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>8.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>IVA</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">1.00</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">19.95</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">1.00</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>5.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>RE</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="GBP">-1.40</cbc:TaxAmount>
      <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="GBP">19.95</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="GBP">-1.40</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:Percent>-7.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:TaxTypeCode>IRPF</cbc:TaxTypeCode>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>linea 3</cbc:Description>
      <cbc:Name>ART3</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="GBP">10.50</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="S7">1.00</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>
</Invoice>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]