fdis 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdis/facturacion.rb +2 -4
- data/lib/fdis/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: 88161488a906ac16b9914d459300008ed8bc56207989f5b2e8a615aba0d87fa3
|
4
|
+
data.tar.gz: '096ee4758f686039603501c35a15f572d2691d43aac7f08e827f2beb510d2d2f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71686ce4ef75aef6916d31046e99bf6f9d69d32c11f6dcd70510f9f1141728e7891b9f15cb3a3fd22f397b32f5fce4dccc79e9ed8c2044bcfebfb9278b1ffac3
|
7
|
+
data.tar.gz: 8050f0d0517a5dc7db4615171dcdd7ec2f98e388a520e1cd3f191dcfe7c2e787245bf5dc0771db16253100fb0405959983112f2c29582de3a9bedd0bb503c14a
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|