jueves, 24 de abril de 2014

Ejemplo Factura Externos XML CFDi

Les presentamos la factura para externos, en esta factura el emisor añade información de otros proveedores del que también el factura el servicio; por ejemplo telmex seria el emisor; dish, tiara, etc... serian externos

Les comparto un XML timbrado bajo este esquema, como es ejemplo los montos y datos son ficticios.

<?xml version="1.0" encoding="UTF-8"?>
<cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:terceros="http://www.sat.gob.mx/terceros" xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" LugarExpedicion="MONTERREY, NUEVO LEON" Moneda="MXN" TipoCambio="1.0000" certificado="MIIEdDCCA1ygAwIBAgIUMjAwMDEwMDAwMDAxMDAwMDU4NjcwDQYJKoZIhvcNAQEFBQAwggFvMRgwFgYDVQQDDA9BLkMuIGRlIHBydWViYXMxLzAtBgNVBAoMJlNlcnZpY2lvIGRlIEFkbWluaXN0cmFjacOzbiBUcmlidXRhcmlhMTgwNgYDVQQLDC9BZG1pbmlzdHJhY2nDs24gZGUgU2VndXJpZGFkIGRlIGxhIEluZm9ybWFjacOzbjEpMCcGCSqGSIb3DQEJARYaYXNpc25ldEBwcnVlYmFzLnNhdC5nb2IubXgxJjAkBgNVBAkMHUF2LiBIaWRhbGdvIDc3LCBDb2wuIEd1ZXJyZXJvMQ4wDAYDVQQRDAUwNjMwMDELMAkGA1UEBhMCTVgxGTAXBgNVBAgMEERpc3RyaXRvIEZlZGVyYWwxEjAQBgNVBAcMCUNveW9hY8OhbjEVMBMGA1UELRMMU0FUOTcwNzAxTk4zMTIwMAYJKoZIhvcNAQkCDCNSZXNwb25zYWJsZTogSMOpY3RvciBPcm5lbGFzIEFyY2lnYTAeFw0xMjA3MjcxNzAyMDBaFw0xNjA3MjcxNzAyMDBaMIHbMSkwJwYDVQQDEyBBQ0NFTSBTRVJWSUNJT1MgRU1QUkVTQVJJQUxFUyBTQzEpMCcGA1UEKRMgQUNDRU0gU0VSVklDSU9TIEVNUFJFU0FSSUFMRVMgU0MxKTAnBgNVBAoTIEFDQ0VNIFNFUlZJQ0lPUyBFTVBSRVNBUklBTEVTIFNDMSUwIwYDVQQtExxBQUEwMTAxMDFBQUEgLyBIRUdUNzYxMDAzNFMyMR4wHAYDVQQFExUgLyBIRUdUNzYxMDAzTURGUk5OMDkxETAPBgNVBAsTCFVuaWRhZCAxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2TTQSPONBOVxpXv9wLYo8jezBrb34i/tLx8jGdtyy27BcesOav2c1NS/Gdv10u9SkWtwdy34uRAVe7H0a3VMRLHAkvp2qMCHaZc4T8k47Jtb9wrOEh/XFS8LgT4y5OQYo6civfXXdlvxWU/gdM/e6I2lg6FGorP8H4GPAJ/qCNwIDAQABox0wGzAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIGwDANBgkqhkiG9w0BAQUFAAOCAQEATxMecTpMbdhSHo6KVUg4QVF4Op2IBhiMaOrtrXBdJgzGotUFcJgdBCMjtTZXSlq1S4DG1jr8p4NzQlzxsdTxaB8nSKJ4KEMgIT7E62xRUj15jI49qFz7f2uMttZLNThipunsN/NF1XtvESMTDwQFvas/Ugig6qwEfSZc0MDxMpKLEkEePmQwtZD+zXFSMVa6hmOu4M+FzGiRXbj4YJXn9Myjd8xbL/c+9UIcrYoZskxDvMxc6/6M3rNNDY3OFhBK+V/sPMzWWGt8S1yjmtPfXgFs1t65AZ2hcTwTAuHrKwDatJ1ZPfa482ZBROAAX1waz7WwXp0gso7sDCm2/yUVww==" descuento="100.00" fecha="2014-04-24T20:11:35" folio="100" formaDePago="PAGO EN UNA SOLA EXHIBICION" metodoDePago="EFECTIVO" noCertificado="20001000000100005867" sello="YQ4X9Vn3WxiATAE+KZxKog7/WTyoaBtWvf6L3Ik3qh/q6FAKTmBkSf46mHplJx1qlsjzt5B+Hbe4SciNrbupSiKh0a6TrS3nLfO4WJnCcx4c79pHGzAYqOjUtwycXAD/WKBTTtED2cGC3MM9Ag/cBnsGiA69l3FBNiqy+kmb47k=" serie="A" subTotal="1100.00" tipoDeComprobante="ingreso" total="1160.00" version="3.2" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/sitio_internet/TimbreFiscalDigital/TimbreFiscalDigital.xsd http://www.sat.gob.mx/terceros http://www.sat.gob.mx/sitio_internet/cfd/terceros/terceros11.xsd ">
    <cfdi:Emisor nombre="ACCEM SERVICIOS EMPRESARIALES SC" rfc="AAA010101AAA">
        <cfdi:DomicilioFiscal calle="JUAREZ" codigoPostal="01234" colonia="CENTRO" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="100" pais="MEXICO" />
        <cfdi:ExpedidoEn calle="HIDALGO" codigoPostal="64610" colonia="LAS CUMBRES 3 SECTOR" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="240" pais="MEXICO" />
        <cfdi:RegimenFiscal Regimen="MI REGIMEN" />
    </cfdi:Emisor>
    <cfdi:Receptor nombre="MIGUEL ANGEL SOSA HERNANDEZ" rfc="SOHM7509289MA">
        <cfdi:Domicilio calle="PERIFERICO" codigoPostal="23010" colonia="SAN ANGEL" estado="DISTRITO FEDERAL" localidad="CIUDAD DE MÉXICO" municipio="ALVARO OBREGON" noExterior="1024" noInterior="B" pais="MEXICO" />
    </cfdi:Receptor>
    <cfdi:Conceptos>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO MIO PRUEBA" importe="100.00" noIdentificacion="COD" unidad="PIEZA" valorUnitario="100.00" />
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 1" importe="11.00" noIdentificacion="TER1" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 1 SA DE CV" rfc="EXT920423741" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="1" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 2" importe="11.00" noIdentificacion="TER2" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 2 SA DE CV" rfc="EXT920423742" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="2" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 3" importe="11.00" noIdentificacion="TER3" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 3 SA DE CV" rfc="EXT920423743" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="3" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 4" importe="11.00" noIdentificacion="TER4" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 4 SA DE CV" rfc="EXT920423744" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="4" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 5" importe="11.00" noIdentificacion="TER5" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 5 SA DE CV" rfc="EXT920423745" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="5" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 6" importe="11.00" noIdentificacion="TER6" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 6 SA DE CV" rfc="EXT920423746" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="6" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 7" importe="11.00" noIdentificacion="TER7" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 7 SA DE CV" rfc="EXT920423747" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="7" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 8" importe="11.00" noIdentificacion="TER8" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 8 SA DE CV" rfc="EXT920423748" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="8" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
        <cfdi:Concepto cantidad="1" descripcion="PRODUCTO DE TERCEROS PRUEBA 9" importe="11.00" noIdentificacion="TER9" unidad="PIEZA" valorUnitario="100.00">
            <cfdi:ComplementoConcepto>
                <terceros:PorCuentadeTerceros nombre="PROVEEDOR EXTERNO 9 SA DE CV" rfc="EXT920423749" version="1.1">
                    <terceros:InformacionFiscalTercero calle="JUAREZ" codigoPostal="64610" colonia="DEL VALLE" estado="NUEVO LEON" localidad="MONTERREY" municipio="MONTERREY" noExterior="9" pais="MEXICO" />
                    <terceros:Impuestos>
                        <terceros:Retenciones>
                            <terceros:Retencion importe="11.00" impuesto="IVA" />
                        </terceros:Retenciones>
                        <terceros:Traslados>
                            <terceros:Traslado importe="16.00" impuesto="IVA" tasa="16" />
                            <terceros:Traslado importe="0.00" impuesto="IEPS" tasa="3" />
                        </terceros:Traslados>
                    </terceros:Impuestos>
                </terceros:PorCuentadeTerceros>
            </cfdi:ComplementoConcepto>
        </cfdi:Concepto>
    </cfdi:Conceptos>
    <cfdi:Impuestos totalImpuestosRetenidos="106.67" totalImpuestosTrasladados="160.00">
        <cfdi:Retenciones>
            <cfdi:Retencion importe="106.67" impuesto="IVA" />
        </cfdi:Retenciones>
        <cfdi:Traslados>
            <cfdi:Traslado importe="160.00" impuesto="IVA" tasa="16" />
        </cfdi:Traslados>
    </cfdi:Impuestos>
    <cfdi:Complemento>
        <tfd:TimbreFiscalDigital FechaTimbrado="2014-04-24T20:15:05" UUID="5A9BE204-82C5-4B33-BAC8-ABFD2B6934CE" noCertificadoSAT="20001000000100005761" selloCFD="YQ4X9Vn3WxiATAE+KZxKog7/WTyoaBtWvf6L3Ik3qh/q6FAKTmBkSf46mHplJx1qlsjzt5B+Hbe4SciNrbupSiKh0a6TrS3nLfO4WJnCcx4c79pHGzAYqOjUtwycXAD/WKBTTtED2cGC3MM9Ag/cBnsGiA69l3FBNiqy+kmb47k=" selloSAT="xP82oz/rzbCCvrOsBedwkO9n0QmVUv8n/87v7FT2h9xFtS0dflOJbeKPvCw5LCRTL0EtRcZtPFRKbiIK3zESaHGknTAnwNavb7pKVTn4QlI6RQRrVLg6OXZJ5E9kLVz47lwEPmkGwEI8017goH2HAmwcHuFssN7faBC1zG6Paok=" version="1.0" xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital" xsi:schemaLocation="http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/TimbreFiscalDigital/TimbreFiscalDigital.xsd" />
    </cfdi:Complemento>
</cfdi:Comprobante>



Para generar este XML e integrarlo a tu aplicación puedes descargar el KIT de desarrollo en www.multifacturas.com, este  genera, sella, timbra, almacena y respalda el CFDi de modo automático





1 comentario:

  1. Es forzoso tener que usar el RFC para realizar los calculos?

    ResponderEliminar

Ejemplo de factura electrónica 2022 en Panamá (DGI)

Código fuente Facturación 2022 Panamá Panamá comenzó el proceso de migración a facturación electrónica,  actualmente ya salieron los primero...