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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e8d7f79168a645178cfe475de1e1fc4fbffdcb27a684f8c1c4d4dfd429b19ad
4
- data.tar.gz: a837c3cddc6733370155ae20f73cf3704f224a16e630d34cef884d9ebded5565
3
+ metadata.gz: '081b2169bbf06b9bf414b0aceee72d3d80a27b4e21cea8698d253720dcd83663'
4
+ data.tar.gz: 800afdcdc5ba71f13b2713f855709a8dcb9dd4b94222df24159d6ace2d382f82
5
5
  SHA512:
6
- metadata.gz: e96806f1a7cc6a1fe073e0114d053c94644485af62e53cc68467fbc5feb6e079ca3ca1dcae624d2c70026d81b237f1e30c295304c45765b31b947a299a0256f9
7
- data.tar.gz: a8c9697dc603de289c5132fd60dbef36e3fdf0d8baf473ef8c0939efe3b3646ca6a9140d3b2f04a0227fa92a5aa7d47a2e0fd0e48f26f296eeb34f4fdf119cd6
6
+ metadata.gz: 8872313bc3dfd5eac05bde72eb4332888d3d5df2aac64dc5f860852e57014fea09f83dd984a8f68ef80a0f12aa1e2a7ca17f7765a127b23e80544971fd464086
7
+ data.tar.gz: 3554e02cedfc207a1b0b868f5b9af8eb0806352592c51fbc65f9ef620bd86164015ad70111fdfe54238dfee8542e5ac1ddc4a860634ca78f49be1edd8203c344
@@ -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(2).to_s
540
- child_concepto['Importe'] = total_line.round(2).to_s
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(2).to_s
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(2).to_s
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(2).to_s
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(2).to_s
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)
@@ -1,3 +1,3 @@
1
1
  module SwFac
2
- VERSION = "0.3.53"
2
+ VERSION = "0.3.54"
3
3
  end
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.53
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-20 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler