dtefacil_xml_builder 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'xmlsimple'
3
3
 
4
4
  module DtefacilXmlBuilder
5
5
  class DteReader
6
- attr_accessor :receptor, :detalles, :folio, :tipo, :folio, :monto
6
+ attr_accessor :receptor, :detalles, :folio, :tipo, :folio, :monto, :fecha_emision
7
7
 
8
8
  def dte= xml
9
9
  ref = XmlSimple.xml_in xml
@@ -13,7 +13,8 @@ module DtefacilXmlBuilder
13
13
 
14
14
  @tipo = id_doc_hash.first["TipoDTE"].first
15
15
  @folio = id_doc_hash.first["Folio"].first
16
- @monto = totales_hash.first["MntTotal"].first
16
+ @monto = totales_hash.first["MntTotal"].first
17
+ @fecha_emision= id_doc_hash.first["FchEmis"].first
17
18
 
18
19
  r = Receptor.new
19
20
  r.rut= receptor_hash.first["RUTRecep"].first
@@ -1,3 +1,3 @@
1
1
  module DtefacilXmlBuilder
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtefacil_xml_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: