none
Problema con el Firmador RRS feed

  • Debate general

  • <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
    <Invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:sac="urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
      <ext:UBLExtensions>
        <ext:UBLExtension>
          <ext:ExtensionContent>
            <sac:AdditionalInformation>
              <sac:AdditionalMonetaryTotal>
                <cbc:ID>1001</cbc:ID>
                <cbc:PayableAmount currencyID="PEN">690.00</cbc:PayableAmount>
              </sac:AdditionalMonetaryTotal>
              <sac:AdditionalMonetaryTotal>
                <cbc:ID>1002</cbc:ID>
                <cbc:PayableAmount currencyID="PEN">0.00</cbc:PayableAmount>
              </sac:AdditionalMonetaryTotal>
              <sac:AdditionalMonetaryTotal>
                <cbc:ID>1003</cbc:ID>
                <cbc:PayableAmount currencyID="PEN">0</cbc:PayableAmount>
              </sac:AdditionalMonetaryTotal>
              <sac:AdditionalProperty>
                <cbc:ID>1000</cbc:ID>
                <cbc:Value>OCHOCIENTOS CATORCE CON 20/100 SOLES</cbc:Value>
              </sac:AdditionalProperty>
            </sac:AdditionalInformation>
          </ext:ExtensionContent>
        </ext:UBLExtension>
        <ext:UBLExtension>
          <ext:ExtensionContent>
            <ds:Signature Id="SignatureAJ">
              <SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
                <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
                <Reference URI="">
                  <Transforms>
                    <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                  </Transforms>
                  <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                  <DigestValue>eZlJvznUAbwEcKCkeu9fyu6nn/U=</DigestValue>
                </Reference>
              </SignedInfo>
              <SignatureValue xmlns="http://www.w3.org/2000/09/xmldsig#">A2hJ91qx9JBEwt6bQD3fupJssz0k1JLO5YprkYzIdri8oymX2Mb5feY6bCn2NO8WL0fz9D8f9Kpw8MJQ1lyweFUFSoqPE1acOWQuyAPcsumHfhuWVfPZzunCUMUMbmLjWuwd4dA++FTlQdztk40XzmlI5J6hOg5CpfBT4fX5tSDWSEO5/+0L+twV4vKKay0MnKL2O9vfLb6wze8KJFOkJ7ANFtTc/GhFhe2Wea9mIcMDHtpqsJyu4lS2ZBbjoAJH8E6oLwPGMsp+GKqZzF0QkGpXgibeKddyuzVGFQVaexuvBHe7nWpacEp4iBwkh+6XFzHquWwi/jCGnMTHXA6wYg==</SignatureValue>
              <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                <X509Data>
                  <X509SubjectName>JuniorsPC</X509SubjectName>
                  <X509Certificate>MIIGXzCCBUegAwIBAgIQePthdG2xUAWEI5+9gYjx+DANBgkqhkiG9w0BAQsFADCBmzELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxQTA/BgNVBAMTOENPTU9ETyBTSEEtMjU2IENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMB4XDTE2MDIyNTAwMDAwMFoXDTE3MDIyNDIzNTk1OVowggFeMQswC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YBBAGyMQECAQMFMCswKQYIKwYBBQUHAgEWHWh0dHBzOi8vc2VjdXJlLmNvbW9kby5uZXQvQ1BTMF0GA1UdHwRWMFQwUqBQoE6GTGh0dHA6Ly9jcmwuY29tb2RvY2EuY29tL0NPTU9ET1NIQTI1NkNsaWVudEF1dGhlbnRpY2F0aW9uYW5kU2VjdXJlRW1haWxDQS5jcmwwgZAGCCsGAQUFBwEBBIGDMIGAMFgGCCsGAQUFBzAChkxodHRwOi8vY3J0LmNvbW9kb2NhLmNvbS9DT01PRE9TSEEyNTZDbGllbnRBdXRoZW50aWNhdGlvbmFuZFNlY3VyZUVtYWlsQ0EuY3J0MCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5jb21vZG9jYS5jb20wGgYDVR0RBBMwEYEPZnNAYWNvbnJlbnQuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQACJ5/uoCFrgNrAyDRy2PpoZ2m/lPuz0D2R89EZp2LYnX8L5OIR2wy+13arF5pnNiVKQ+u0v5VOm80jnV666o+DQMRyFPJsuBPMUhrEWH6EKfG9a2DEECL/LLfaj8NoHBa3Gx6Unt8IKXN7ZZ79EU2Kk+jZINe4XUkyhwI+MClcO/bm/+GnlVQ007ySzKP+O2noGciPD4YmfmdIs8dKJgkxewhyRBXeR+dAxh+gSm6JdgcnGE1ZX7ztUQZuwl1TkCoDPxZ7Y8V5hFq7WieykcHVDU6509kPH/i/gViDeI4hJ/VnleobgNlQeii9HmeVo/cL19oYL2mF6gL5H1NvdcE8</X509Certificate>
                </X509Data>
              </KeyInfo>
            </ds:Signature>
          </ext:ExtensionContent>
        </ext:UBLExtension>
      </ext:UBLExtensions>
      <cbc:UBLVersionID>2.0</cbc:UBLVersionID>
      <cbc:CustomizationID>1.0</cbc:CustomizationID>
      <cbc:ID>FF11-0000005</cbc:ID>
      <cbc:IssueDate>2016-06-01</cbc:IssueDate>
      <cbc:InvoiceTypeCode>01</cbc:InvoiceTypeCode>
      <cbc:DocumentCurrencyCode>PEN</cbc:DocumentCurrencyCode>
      <cac:Signature>
        <cbc:ID>SignatureAJ</cbc:ID>
        <cac:SignatoryParty>
          <cac:PartyIdentification>
            <cbc:ID>20492409025</cbc:ID>
          </cac:PartyIdentification>
          <cac:PartyName>
            <cbc:Name>ACON S.A.C</cbc:Name>
          </cac:PartyName>
        </cac:SignatoryParty>
        <cac:DigitalSignatureAttachment>
          <cac:ExternalReference>
            <cbc:URI>#SignatureAJ</cbc:URI>
          </cac:ExternalReference>
        </cac:DigitalSignatureAttachment>
      </cac:Signature>
      <cac:AccountingSupplierParty>
        <cbc:CustomerAssignedAccountID>20492409023</cbc:CustomerAssignedAccountID>
        <cbc:AdditionalAccountID>6</cbc:AdditionalAccountID>
        <cac:Party>
          <cac:PartyName>
            <cbc:Name>ACON S.A.C</cbc:Name>
          </cac:PartyName>
          <cac:PostalAddress>
            <cbc:ID>150131</cbc:ID>
            <cbc:StreetName>URB.</cbc:StreetName>
            <cbc:CitySubdivisionName>-</cbc:CitySubdivisionName>
            <cbc:CityName></cbc:CityName>
            <cbc:CountrySubentity>LI</cbc:CountrySubentity>
            <cbc:District>SAN</cbc:District>
            <cac:Country>
              <cbc:IdentificationCode>PE</cbc:IdentificationCode>
            </cac:Country>
          </cac:PostalAddress>
          <cac:PartyLegalEntity>
            <cbc:RegistrationName>ACON S.A.C</cbc:RegistrationName>
          </cac:PartyLegalEntity>
        </cac:Party>
      </cac:AccountingSupplierParty>
      <cac:AccountingCustomerParty>
        <cbc:CustomerAssignedAccountID>20505675878</cbc:CustomerAssignedAccountID>
        <cbc:AdditionalAccountID>6</cbc:AdditionalAccountID>
        <cac:Party>
          <cac:PostalAddress>
            <cbc:ID>-</cbc:ID>
            <cbc:StreetName>-</cbc:StreetName>
            <cbc:CitySubdivisionName>-</cbc:CitySubdivisionName>
            <cbc:CityName>-</cbc:CityName>
            <cbc:CountrySubentity>-</cbc:CountrySubentity>
            <cbc:District>-</cbc:District>
            <cac:Country>
              <cbc:IdentificationCode>PE</cbc:IdentificationCode>
            </cac:Country>
          </cac:PostalAddress>
          <cac:PartyLegalEntity>
            <cbc:RegistrationName>FL S.A.C.</cbc:RegistrationName>
          </cac:PartyLegalEntity>
        </cac:Party>
      </cac:AccountingCustomerParty>
      <cac:TaxTotal>
        <cbc:TaxAmount currencyID="PEN">124.20</cbc:TaxAmount>
        <cac:TaxSubtotal>
          <cbc:TaxAmount currencyID="PEN">124.20</cbc:TaxAmount>
          <cac:TaxCategory>
            <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:LegalMonetaryTotal>
        <cbc:PayableAmount currencyID="PEN">814.20</cbc:PayableAmount>
      </cac:LegalMonetaryTotal>
      <cac:InvoiceLine>
        <cbc:ID>1</cbc:ID>
        <cbc:InvoicedQuantity unitCode="NIU">3.000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="PEN">690.00</cbc:LineExtensionAmount>
        <cac:PricingReference>
          <cac:AlternativeConditionPrice>
            <cbc:PriceAmount currencyID="PEN">271.40</cbc:PriceAmount>
            <cbc:PriceTypeCode>01</cbc:PriceTypeCode>
          </cac:AlternativeConditionPrice>
          <cac:AlternativeConditionPrice>
            <cbc:PriceAmount currencyID="PEN">0</cbc:PriceAmount>
            <cbc:PriceTypeCode>02</cbc:PriceTypeCode>
          </cac:AlternativeConditionPrice>
        </cac:PricingReference>
        <cac:TaxTotal>
          <cbc:TaxAmount currencyID="PEN">124.20</cbc:TaxAmount>
          <cac:TaxSubtotal>
            <cbc:TaxAmount currencyID="PEN">124.20</cbc:TaxAmount>
            <cac:TaxCategory>
              <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>ALQ. MONITOR LED  PHILIPS  23.8"  244E5QHSD</cbc:Description>
          <cac:SellersItemIdentification>
            <cbc:ID>323001</cbc:ID>
          </cac:SellersItemIdentification>
        </cac:Item>
        <cac:Price>
          <cbc:PriceAmount currencyID="PEN">230.00</cbc:PriceAmount>
        </cac:Price>
      </cac:InvoiceLine>
    </Invoice>

    He seguido la forma de firma de aplicacion, y me sigue enviando el error: El Documento electronico ingresado ha sido alterado

    Acaso es el encoding: UTF-8 o ISO-8859-1??

    Espero me puedan ayudar.


    viernes, 3 de junio de 2016 19:21

Todas las respuestas

  • el encoding te lo marca la documentación de la factura electrónica que estes usando. En España es Facturae y está codificada en utf8(lo recomendado). Para qué organismo estas generando las facturas electrónicas? Estás asaplicando correctamente el,esquema?

    Si se solucionó tu consulta no olvides marcar la respuesta. Si te ayudó, vótala como útil. Saludos


    viernes, 3 de junio de 2016 19:33