dtefacil_xml_builder 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module DtefacilXmlBuilder
|
|
6
6
|
|
7
7
|
attr_accessor :descuento, :actividades_economicas, :receptor, :detalles
|
8
8
|
|
9
|
-
def
|
9
|
+
def set_invoice actividades_economicas, receptor, detalles
|
10
10
|
@actividades_economicas=actividades_economicas
|
11
11
|
@r= Receptor.new
|
12
12
|
@r.set_receptor receptor
|
@@ -5,8 +5,8 @@ module DtefacilXmlBuilder
|
|
5
5
|
receptor = { :rut => "15842089-9", :razon_social => "Vladimir", :giro => "Computacion", :direccion => "Alameda", :comuna => "Santiago", :ciudad => "Satiago" }
|
6
6
|
detalles = [{:nombre => "Pelota", :cantidad => 3, :precio_unitario => 45}]
|
7
7
|
f = FacturaElectronica.new
|
8
|
-
f.
|
9
|
-
|
8
|
+
f.set_invoice [324], receptor, detalles
|
9
|
+
f.render_xml
|
10
10
|
end
|
11
11
|
|
12
12
|
def read_dte
|