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
|