fdis 0.1.29 → 0.1.30

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: 6c641c9a4d5fc07779b78954f3a0273b3ddc574e525e6f99f9558d85cabd01ab
4
- data.tar.gz: 8f334a86f08e8f0aa3fd1255cdd69dc07aec6b20bbf6b11f044c5c2fc1a62656
3
+ metadata.gz: 88161488a906ac16b9914d459300008ed8bc56207989f5b2e8a615aba0d87fa3
4
+ data.tar.gz: '096ee4758f686039603501c35a15f572d2691d43aac7f08e827f2beb510d2d2f'
5
5
  SHA512:
6
- metadata.gz: e098e8909c0b26879ad70d9866436e27751ebdac0a2f80b87cd1ce87822d3b314db9cae98460f1cfd6dd1357aef34764d7ff9bee239dbe28813a5d1901a9da9b
7
- data.tar.gz: 0da4a652c4eb1c762b0d241fafc97ef7c08634e395c014eefc473359a042c4cfd6e9391698d6eea0d0fd5d0eadc4e089f6b936ec91bb0d0c92c698d7b91967bc
6
+ metadata.gz: 71686ce4ef75aef6916d31046e99bf6f9d69d32c11f6dcd70510f9f1141728e7891b9f15cb3a3fd22f397b32f5fce4dccc79e9ed8c2044bcfebfb9278b1ffac3
7
+ data.tar.gz: 8050f0d0517a5dc7db4615171dcdd7ec2f98e388a520e1cd3f191dcfe7c2e787245bf5dc0771db16253100fb0405959983112f2c29582de3a9bedd0bb503c14a
@@ -586,13 +586,12 @@ module Fdis
586
586
  child_traslado = Nokogiri::XML::Node.new "cfdi:Traslado", xml
587
587
  child_traslado['Impuesto'] = '002'
588
588
  child_traslado['TipoFactor'] = "Tasa"
589
+ child_traslado['Base'] = total_line.round(4).to_s
589
590
 
590
591
  if iva_id == 0
591
- child_traslado['Base'] = "1"
592
592
  child_traslado['Importe'] = "0.00"
593
593
  child_traslado['TasaOCuota'] = '0.000000'
594
594
  else
595
- child_traslado['Base'] = total_line.round(4).to_s
596
595
  child_traslado['Importe'] = importe_iva.round(4).to_s
597
596
  child_traslado['TasaOCuota'] = '0.160000'
598
597
  end
@@ -667,13 +666,12 @@ module Fdis
667
666
  traslado_child = Nokogiri::XML::Node.new "cfdi:Traslado", xml
668
667
  traslado_child['Impuesto'] = '002'
669
668
  traslado_child['TipoFactor'] = 'Tasa'
669
+ traslado_child['Base'] = subtotal.round(2)
670
670
 
671
671
  if iva_id == 0
672
- traslado_child['Base'] = "1"
673
672
  traslado_child['Importe'] = "0.00"
674
673
  traslado_child['TasaOCuota'] = '0.000000'
675
674
  else
676
- traslado_child['Base'] = subtotal.round(2)
677
675
  traslado_child['Importe'] = suma_iva.round(2).to_s
678
676
  traslado_child['TasaOCuota'] = '0.160000'
679
677
  end
data/lib/fdis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis
2
- VERSION = "0.1.29"
2
+ VERSION = "0.1.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-27 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler