Estándar de factura XML: Facturae

Facturae es un estándar de factura XML que se utiliza en España.

Si recibe facturas XML de una o más empresas desde ahí, las facturas podrían venir en este formato.

En este tema se muestra una lista de los tipos de campos de Kofax ReadSoft Invoices que normalmente se correlacionan con elementos en estos documentos e indica en qué parte del código XML se suelen encontrar los elementos. Los tipos de campo de Kofax ReadSoft Invoices que normalmente no se correlacionan con elementos XML no se muestran aquí.

Para obtener más información cómo la lógica en el XML inteligente de Collector funciona con este estándar, consulte ReadSoft COLLECTOR Integration Specification.pdf. Puede obtener este documento de su representante de Kofax.

Campo Kofax ReadSoft Invoices Posición del elemento asignado en el código XML
Campos de comprador  
Name if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/Name

else

   Facturae/Parties/BuyerParty/LegalEntitty/CorporateName

BuyerVATRegno Facturae/Parties/BuyerParty/TaxIdentification/TaxIdentificationNumber
CountryCode if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/AddressInSpain/CountryCode

else

   Facturae/Parties/BuyerParty/LegalEntitty/AddressInSpain/CountryCode

PostalCode if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/AddressInSpain/PostCode

else

   Facturae/Parties/BuyerParty/LegalEntitty/AddressInSpain/PostCode

Street if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/AddressInSpain/Address

else

   Facturae/Parties/BuyerParty/LegalEntitty/AddressInSpain/Address

POBox if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/AddressInSpain/PostCode

else

   Facturae/Parties/BuyerParty/LegalEntitty/AddressInSpain/PostCode

(Same as postal code)

City if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/AddressInSpain/Town

else

   Facturae/Parties/BuyerParty/LegalEntitty/AddressInSpain/Town

TelephoneNumber if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/ContactDetails/Telephone

else

   Facturae/Parties/BuyerParty/LegalEntitty/ContactDetails/Telephone

Email if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/ContactDetails/ElectronicMail

else

   Facturae/Parties/BuyerParty/LegalEntitty/ContactDetails/ElectronicMail

FaxNumber if (Facturae/Parties/BuyerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/BuyerParty/Individual/ContactDetails/Telefax

else

   Facturae/Parties/BuyerParty/LegalEntitty/ContactDetails/Telefax

Supplier fields  
Name if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/Name

else

   Facturae/Parties/SellerParty/LegalEntitty/CorporateName

POBox if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/AddressInSpain/PostCode

else

   Facturae/Parties/SellerParty/LegalEntitty/AddressInSpain/PostCode

(Same as postal code)

Street if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/AddressInSpain/Address

else

   Facturae/Parties/SellerParty/LegalEntitty/AddressInSpain/Address

PostalCode if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/AddressInSpain/PostCode

else

   Facturae/Parties/SellerParty/LegalEntitty/AddressInSpain/PostCode

City if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/AddressInSpain/Town

else

   Facturae/Parties/SellerParty/LegalEntitty/AddressInSpain/Town

CountryCode if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/AddressInSpain/CountryCode

else

   Facturae/Parties/SellerParty/LegalEntitty/AddressInSpain/CountryCode

TelephoneNumber   if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/ContactDetails/Telephone

else

   Facturae/Parties/SellerParty/LegalEntitty/ContactDetails/Telephone

Fax if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/ContactDetails/Telefax

else

   Facturae/Parties/SellerParty/LegalEntitty/ContactDetails/Telefax

SupplierTaxregno Facturae/Parties/SellerParty/TaxIdentification/TaxIdentificationNumber
Email if (Facturae/Parties/SellerParty/TaxIdentification/PersonTypeCode == F)

   Facturae/Parties/SellerParty/Individual/ContactDetails/ElectronicMail

else

   Facturae/Parties/SellerParty/LegalEntitty/ContactDetails/ElectronicMail

SupplierNumber  
Tipos de campo estándar de Kofax ReadSoft Invoices Posición del elemento asignado en el código XML
InvoiceCredit Facturae/Invoices/Invoice/InvoiceHeader/InvoiceDocumentType

if (InvoiceDocumentType == OO or InvoiceDocumentType== OR)

   1 (credit)

else

   0 (debit)

Invoice number Facturae/Invoices/Invoice/InvoiceHeader/InvoiceNumber
Invoice date Facturae/invoices/invoice/InvoiceIssueData/issueDate
Invoice due date Facturae/invoices/invoice/PaymentDetails/InstallmentsDueDate
Sub Total Facturae/invoices/invoice/invoiceTotals/TotalGrossAmount
Tax rate percent Facturae/invoices/invoice/TaxesOutputs/Tax/TaxRate
Tax Facturae/invoices/invoice/invoiceTotals/TaxOut
Total Facturae/invoices/invoice/InvoiceTotals/InvoiceTotal
Invoice currency Facturae/invoices/invoice/InvoiceIssueData/InvoiceCurrencyCode
Invoice order number Facturae/invoices/invoice/items/InvoiceLine/PurchaseorderReference
Supplier IBAN1 Facturae/invoices/invoice/PaymentDetails/installment/AccountToBeCredited/IBAN
DeliveryDate Facturae/invoices/invoice/InvoiceLine/DeliverNotesReferences/deliveryNote/deliveryNoteData
DeliveryNote Facturae/invoices/invoice/invoiceLine/DeliveryNotesReferences/DeliveryNote/DeliverNoteNumber
InvoiceDiscountAmount Facturae/invoices/invoice/invoiceTotals/GeneralDiscounts/Discount/DiscountAmount
InvoiceDiscountPercent Facturae/invoices/invoice/InvoiceTotals/GeneralDiscounts/Discount/DiscountRate
Buyer Tax reg no Facturae/Parties/BuyerParty/TaxidentificationNumber
Supplier Tax reg no Facturae/Parties/SellerParty/Taxidentification/TaxidentificationNumber
Invoicing period start Facturae/Invoices/Invoice/InvoiceIssueData/invoicingPeriod/StartDate
Invoicing period end Facturae/Invoices/Invoice/InvoiceIssueData/invoicingPeriod/EndDate
Invoice note Facturae/invoices/Invoice/PaymentDetails/Installment/CollectionAdditionalInformation
Line Item Fields Location of element mapped in the XML code
Row Id Facturae/invoices/Invoice/items/invoiceLine/RowIdentifier
Identifier Facturae/invoices/Invoice/items/invoiceLine/IssuerContractReference
Description Facturae/invoices/Invoice/items/invoiceLine/ItemDescription
Quantity Facturae/invoices/Invoice/items/invoiceLine/Quantity
Unit of Measure Facturae/invoices/Invoice/items/invoiceLine/UnitOfMeasure
Order no Facturae/invoices/Invoice/items/invoiceLine/ReceiverTransactionReference
Unit price Facturae/invoices/Invoice/items/invoiceLine/UnitPriceWithoutTax
Amount excl Tax Facturae/invoices/Invoice/items/invoiceLine/GrossAmount
Tax % Facturae/invoices/Invoice/items/invoiceLine/TaxesOutputs/Tax/TaxRate
Discount Facturae/invoices/Invoice/items/invoiceLine/DiscountsAndRabates/Discount/DiscountAmount
Discount % Facturae/invoices/Invoice/items/invoiceLine/DiscountsAndRabates/Discount/DiscountRate
Tax amount Facturae/invoices/Invoice/items/invoiceLine/TaxesOutputs/Tax/TaxAmount/TotalAmount
Amount incl Tax Facturae/invoices/Invoice/items/invoiceLine/TaxesOutputs/GrossAmount
Campos de adjuntos Posición del elemento asignado en el código XML
Información adicional Facturae/Invoices/Invoice/AdditionalDataRelatedDocuments/Attachmentencoding
Valor incrustado Facturae/Invoices/Invoice/AdditionalDataRelatedDocuments/AttachmentData
Tipo de datos Facturae/Invoices/Invoice/AdditionalDataRelatedDocuments/AttachmentFormat
Nombre de archivo Facturae/Invoices/Invoice/AdditionalDataRelatedDocuments/AttachmentDescription
Esquema URI Facturae/Invoices/Invoice/AdditionalDataRelatedDocuments/AttachmentCompression/Algorithm
campo de nota de factura Posición del elemento asignado en el código XML