sw_fac 0.3.53 → 0.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sw_fac/facturacion.rb +6 -6
- data/lib/sw_fac/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '081b2169bbf06b9bf414b0aceee72d3d80a27b4e21cea8698d253720dcd83663'
|
|
4
|
+
data.tar.gz: 800afdcdc5ba71f13b2713f855709a8dcb9dd4b94222df24159d6ace2d382f82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8872313bc3dfd5eac05bde72eb4332888d3d5df2aac64dc5f860852e57014fea09f83dd984a8f68ef80a0f12aa1e2a7ca17f7765a127b23e80544971fd464086
|
|
7
|
+
data.tar.gz: 3554e02cedfc207a1b0b868f5b9af8eb0806352592c51fbc65f9ef620bd86164015ad70111fdfe54238dfee8542e5ac1ddc4a860634ca78f49be1edd8203c344
|
data/lib/sw_fac/facturacion.rb
CHANGED
|
@@ -536,8 +536,8 @@ module SwFac
|
|
|
536
536
|
child_concepto['Unidad'] = line[:unidad].to_s
|
|
537
537
|
child_concepto['Descripcion'] = line[:descripcion].to_s
|
|
538
538
|
child_concepto['Cantidad'] = cantidad.to_s
|
|
539
|
-
child_concepto['ValorUnitario'] = valor_unitario.round(
|
|
540
|
-
child_concepto['Importe'] = total_line.round(
|
|
539
|
+
child_concepto['ValorUnitario'] = valor_unitario.round(4).to_s
|
|
540
|
+
child_concepto['Importe'] = total_line.round(4).to_s
|
|
541
541
|
# child_concepto['Descuento'] = line.fetch(:descuento, 0.00).round(6).to_s
|
|
542
542
|
|
|
543
543
|
|
|
@@ -547,11 +547,11 @@ module SwFac
|
|
|
547
547
|
## Creando cfdi:Traslados para cada linea
|
|
548
548
|
child_traslados = Nokogiri::XML::Node.new "cfdi:Traslados", xml
|
|
549
549
|
child_traslado = Nokogiri::XML::Node.new "cfdi:Traslado", xml
|
|
550
|
-
child_traslado['Base'] = total_line.round(
|
|
550
|
+
child_traslado['Base'] = total_line.round(4).to_s
|
|
551
551
|
child_traslado['Impuesto'] = '002'
|
|
552
552
|
child_traslado['TipoFactor'] = "Tasa"
|
|
553
553
|
child_traslado['TasaOCuota'] = '0.160000'
|
|
554
|
-
child_traslado['Importe'] = importe_iva.round(
|
|
554
|
+
child_traslado['Importe'] = importe_iva.round(4).to_s
|
|
555
555
|
|
|
556
556
|
# if line[:tipo_impuesto] == '004'
|
|
557
557
|
# child_traslado['TasaOCuota'] = '0.000000'
|
|
@@ -569,7 +569,7 @@ module SwFac
|
|
|
569
569
|
if ret_iva > 0
|
|
570
570
|
child_retenciones = Nokogiri::XML::Node.new "cfdi:Retenciones", xml
|
|
571
571
|
child_retencion = Nokogiri::XML::Node.new "cfdi:Retencion", xml
|
|
572
|
-
child_retencion['Base'] = total_line.round(
|
|
572
|
+
child_retencion['Base'] = total_line.round(4).to_s
|
|
573
573
|
child_retencion['Impuesto'] = '002'
|
|
574
574
|
child_retencion['TipoFactor'] = "Tasa"
|
|
575
575
|
|
|
@@ -579,7 +579,7 @@ module SwFac
|
|
|
579
579
|
child_retencion['TasaOCuota'] = "0.160000"
|
|
580
580
|
end
|
|
581
581
|
|
|
582
|
-
child_retencion['Importe'] = importe_ret_linea.round(
|
|
582
|
+
child_retencion['Importe'] = importe_ret_linea.round(4).to_s
|
|
583
583
|
|
|
584
584
|
child_retenciones.add_child(child_retencion)
|
|
585
585
|
child_impuestos.add_child(child_retenciones)
|
data/lib/sw_fac/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sw_fac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.54
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Angel Padilla
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|