Skip to content

Commit

Permalink
Correcting attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
lesm committed Sep 13, 2017
1 parent bdc689a commit 4c9007c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/fm_timbrado_cfdi/fm_timbre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module FmTimbradoCfdi
class FmTimbre < FmCfdiParser
attr_reader :no_certificado_sat, :no_certificado, :fecha_timbrado, :uuid, :sello_sat, :sello_cfd,
:fecha_comprobante, :serie, :folio, :trans_id, :version, :rfc_provedor_certificado
:fecha_comprobante, :serie, :folio, :trans_id, :version, :rfc_provedor_certificacion


def cadena_original
Expand All @@ -25,7 +25,7 @@ def atributos
'sello_cfd',
'fecha_comprobante',
'serie',
'rfc_provedor_certificado',
'rfc_provedor_certificacion',
'folio' ]
end

Expand Down Expand Up @@ -77,7 +77,7 @@ def obtener_folio(xml, ns)
xml.xpath("//cfdi:Comprobante", ns).attribute('folio').value rescue nil
end

def obtener_rfc_provedor_certificado(xml, ns)
def obtener_rfc_provedor_certificacion(xml, ns)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fm_timbrado_cfdi/fm_timbre3_3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def obtener_folio(xml, ns)
xml.xpath("//cfdi:Comprobante", ns).attribute('Folio').value rescue nil
end

def obtener_rfc_provedor_certificado(xml, ns)
def obtener_rfc_provedor_certificacion(xml, ns)
xml.xpath("//tfd:TimbreFiscalDigital", ns).attribute('RfcProvCertif').value rescue nil
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/fm_timbrado_cfdi/fm_timbre3_3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
it { timbre.sello_sat.should_not be_nil }
it { timbre.sello_cfd.should_not be_nil }
it { timbre.cadena_original.should_not be_nil }
it { timbre.rfc_provedor_certificado.should_not be_nil }
it { timbre.rfc_provedor_certificacion.should_not be_nil }
end
end

0 comments on commit 4c9007c

Please sign in to comment.