Created
July 20, 2020 04:18
-
-
Save giansalex/6cab789ed1d9ee838216c3847862a030 to your computer and use it in GitHub Desktop.
Factura electrónica - SUNAT - sin atributos opcionales (XML).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"> | |
<ext:UBLExtensions> | |
<ext:UBLExtension> | |
<ext:ExtensionContent> | |
<!-- Aqui ira la firma digital --> | |
</ext:ExtensionContent> | |
</ext:UBLExtension> | |
</ext:UBLExtensions> | |
<!-- La versión de UBL --> | |
<cbc:UBLVersionID>2.1</cbc:UBLVersionID> | |
<!-- La versión de la estructura del documento, SUNAT define 2.0 como valor constante para UBL 2.1 --> | |
<cbc:CustomizationID>2.0</cbc:CustomizationID> | |
<!-- El numero de la factura --> | |
<cbc:ID>F001-1</cbc:ID> | |
<!-- La fecha de emisión --> | |
<cbc:IssueDate>2020-07-21</cbc:IssueDate> | |
<!-- El tipo de comprobante: 01 (Factura - Catálogo 01) | |
Tipo de operación: @listID = 0101 (Venta interna - Catálogo 51) | |
--> | |
<cbc:InvoiceTypeCode listID="0101">01</cbc:InvoiceTypeCode> | |
<!-- Leyendas: @languageLocaleID = 1000 (Importe total en letras - Catálogo 52) --> | |
<cbc:Note languageLocaleID="1000"><![CDATA[CIENTO DIECIOCHO CON 00 /100 SOLES]]></cbc:Note> | |
<!-- La moneda del comprobante --> | |
<cbc:DocumentCurrencyCode>PEN</cbc:DocumentCurrencyCode> | |
<cac:Signature> | |
<!-- Ruc del firmante --> | |
<cbc:ID>20123456789</cbc:ID> | |
<cac:SignatoryParty> | |
<cac:PartyIdentification> | |
<!-- Ruc del firmante --> | |
<cbc:ID>20123456789</cbc:ID> | |
</cac:PartyIdentification> | |
<cac:PartyName> | |
<!-- Nombre del firmante --> | |
<cbc:Name><![CDATA[MI EMPRESA S.A.C]]></cbc:Name> | |
</cac:PartyName> | |
</cac:SignatoryParty> | |
<cac:DigitalSignatureAttachment> | |
<cac:ExternalReference> | |
<!-- Referencia del firmante, nada expecífico que SUNAT exija. --> | |
<cbc:URI>#EMPRESA-SIGN</cbc:URI> | |
</cac:ExternalReference> | |
</cac:DigitalSignatureAttachment> | |
</cac:Signature> | |
<!-- Datos del emisor --> | |
<cac:AccountingSupplierParty> | |
<cac:Party> | |
<cac:PartyIdentification> | |
<!-- Ruc del Emisor --> | |
<!-- Tipo documento: @schemeID = 6 (RUC - Catálogo 06) --> | |
<cbc:ID schemeID="6">20123456789</cbc:ID> | |
</cac:PartyIdentification> | |
<cac:PartyName> | |
<!-- Nombre comercial del Emisor --> | |
<cbc:Name><![CDATA[MI EMPRESA]]></cbc:Name> | |
</cac:PartyName> | |
<cac:PartyLegalEntity> | |
<!-- Razon social del Emisor --> | |
<cbc:RegistrationName><![CDATA[MI EMPRESA S.A.C]]></cbc:RegistrationName> | |
<!-- Datos de la dirección del Emisor --> | |
<cac:RegistrationAddress> | |
<!-- Codigo de Ubigeo --> | |
<cbc:ID>150101</cbc:ID> | |
<!-- Código asignado por la SUNAT para el establecimiento anexo declarado en el RUC, 0000 si no tiene --> | |
<cbc:AddressTypeCode>0000</cbc:AddressTypeCode> | |
<!-- Urbanización --> | |
<cbc:CitySubdivisionName>CASUARINAS</cbc:CitySubdivisionName> | |
<!-- Provincia --> | |
<cbc:CityName>LIMA</cbc:CityName> | |
<!-- Departamento --> | |
<cbc:CountrySubentity>LIMA</cbc:CountrySubentity> | |
<!-- Distrito --> | |
<cbc:District>LIMA</cbc:District> | |
<cac:AddressLine> | |
<!-- Dirección completa detallada --> | |
<cbc:Line><![CDATA[Av. Park 211]]></cbc:Line> | |
</cac:AddressLine> | |
<cac:Country> | |
<!-- Codigo del pais --> | |
<cbc:IdentificationCode>PE</cbc:IdentificationCode> | |
</cac:Country> | |
</cac:RegistrationAddress> | |
</cac:PartyLegalEntity> | |
</cac:Party> | |
</cac:AccountingSupplierParty> | |
<!-- Datos del receptor --> | |
<cac:AccountingCustomerParty> | |
<cac:Party> | |
<cac:PartyIdentification> | |
<!-- Documento del receptor --> | |
<!-- Tipo documento: @schemeID = 6 (RUC - Catálogo 06) --> | |
<cbc:ID schemeID="6">20603343710</cbc:ID> | |
</cac:PartyIdentification> | |
<cac:PartyLegalEntity> | |
<!-- Razon social del receptor --> | |
<cbc:RegistrationName><![CDATA[NEGOCIOS S.A.C.]]></cbc:RegistrationName> | |
<cac:RegistrationAddress> | |
<cbc:ID>150101</cbc:ID> | |
<cac:AddressLine> | |
<!-- Dirección completa del receptor --> | |
<cbc:Line><![CDATA[AV. OLIVAR NRO. 425 ]]></cbc:Line> | |
</cac:AddressLine> | |
<cac:Country> | |
<!-- Codigo del pais --> | |
<cbc:IdentificationCode>PE</cbc:IdentificationCode> | |
</cac:Country> | |
</cac:RegistrationAddress> | |
</cac:PartyLegalEntity> | |
</cac:Party> | |
</cac:AccountingCustomerParty> | |
<cac:TaxTotal> | |
<!-- Total impuestos --> | |
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount> | |
<!-- Sumatoria de los detalle por cada Operaciones Gravadas/Inafectas/Exoneradas --> | |
<cac:TaxSubtotal> | |
<!-- Sum. valor venta (gravadas) --> | |
<cbc:TaxableAmount currencyID="PEN">100.00</cbc:TaxableAmount> | |
<!-- Sum. IGV (gravadas) --> | |
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount> | |
<cac:TaxCategory> | |
<cac:TaxScheme> | |
<!-- Tipo de tributo: 1000 (IGV Impuesto General a las Ventas - Catálogo 05) --> | |
<cbc:ID>1000</cbc:ID> | |
<cbc:Name>IGV</cbc:Name> | |
<cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> | |
</cac:TaxScheme> | |
</cac:TaxCategory> | |
</cac:TaxSubtotal> | |
</cac:TaxTotal> | |
<cac:LegalMonetaryTotal> | |
<!-- Total valor venta --> | |
<cbc:LineExtensionAmount currencyID="PEN">100.00</cbc:LineExtensionAmount> | |
<!-- Total precio venta --> | |
<cbc:TaxInclusiveAmount currencyID="PEN">118.00</cbc:TaxInclusiveAmount> | |
<!-- Importe total de la venta --> | |
<cbc:PayableAmount currencyID="PEN">118.00</cbc:PayableAmount> | |
</cac:LegalMonetaryTotal> | |
<!-- Detalles --> | |
<cac:InvoiceLine> | |
<!-- Número de orden del detalle --> | |
<cbc:ID>1</cbc:ID> | |
<!-- Cantidad del producto/servicio --> | |
<!-- Unidad de medida: @unitCode = NIU (Unidad - Catálogo 03) --> | |
<cbc:InvoicedQuantity unitCode="NIU">2</cbc:InvoicedQuantity> | |
<!-- Valor venta --> | |
<cbc:LineExtensionAmount currencyID="PEN">100.00</cbc:LineExtensionAmount> | |
<cac:PricingReference> | |
<cac:AlternativeConditionPrice> | |
<!-- Precio venta unitario --> | |
<cbc:PriceAmount currencyID="PEN">59</cbc:PriceAmount> | |
<!-- Tipo de precio: 01 (Precio unitario con IGV - Catálogo 16) --> | |
<cbc:PriceTypeCode>01</cbc:PriceTypeCode> | |
</cac:AlternativeConditionPrice> | |
</cac:PricingReference> | |
<cac:TaxTotal> | |
<!-- Total impuesto detalle --> | |
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount> | |
<cac:TaxSubtotal> | |
<!-- Valor base para calcular el igv detalle --> | |
<cbc:TaxableAmount currencyID="PEN">100.00</cbc:TaxableAmount> | |
<!-- IGV --> | |
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount> | |
<cac:TaxCategory> | |
<!-- Tasa de IGV: 18% --> | |
<cbc:Percent>18</cbc:Percent> | |
<!-- Tipo de Afectacion IGV: 10 (Gravado, Operación Onerosa - Catálogo 07) --> | |
<cbc:TaxExemptionReasonCode>10</cbc:TaxExemptionReasonCode> | |
<cac:TaxScheme> | |
<!-- Tipo de tributo: 1000 (IGV Impuesto General a las Ventas - Catálogo 05) --> | |
<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> | |
<!-- Descripción del producto/servicio --> | |
<cbc:Description><![CDATA[TIJERAS - PRUEBA DE SISTEMAS]]></cbc:Description> | |
<cac:SellersItemIdentification> | |
<!-- Codigo del producto --> | |
<cbc:ID>P001</cbc:ID> | |
</cac:SellersItemIdentification> | |
<cac:CommodityClassification> | |
<!-- Codigo del producto SUNAT (Catálogo 25)--> | |
<cbc:ItemClassificationCode>44121618</cbc:ItemClassificationCode> | |
</cac:CommodityClassification> | |
</cac:Item> | |
<cac:Price> | |
<!-- Valor venta unitario --> | |
<cbc:PriceAmount currencyID="PEN">50</cbc:PriceAmount> | |
</cac:Price> | |
</cac:InvoiceLine> | |
</Invoice> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment