fdis2 0.1.54 → 0.1.56

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: 6d58085cb6ad0a083114bdbd6550e6260fb8efaf299036876d512800b655ccf9
4
- data.tar.gz: a74364b45c32c4cd36dd89e97c11a77f2260dff63bf75c90d499f8aafec4ce04
3
+ metadata.gz: ead1d11ebc6b299361e3c0eb8c04d0015e6acee95d81fc2d9e99dcea48f7bad9
4
+ data.tar.gz: e8d4a93400f80c61d9fcb5fe42c2d44ce139d0a050bee7fc0f6654f600212ff0
5
5
  SHA512:
6
- metadata.gz: 729484e86cbe3047d048ee287ad7aea4808cdb49b369ad7db5be1cbf60374aca7c8e07ef760a7bbad73df916033b9e2bfbd1160e337e911a58e73494e805cd6a
7
- data.tar.gz: addb44c03d4094b77a51faec632799038297dc5a8240de23a20a53cd4a1e80f81c608b2fbb51c85fec57fa351cdfa918ac431e16118045510a2b2d00dd301587
6
+ metadata.gz: fec8da0be176c62c90c0c902bf31ea025ca518cc79f79865bffc017f1d2f129efd94e934305a87bbbd1af8978df6b3de552d6028b9168dc042b6717f192e640b
7
+ data.tar.gz: 8627d3dc767c7513661eedad345ecc08959729fc513a3e8091c6345c147e0b70bc16a1cf4c08e26c5a7d606c10d23062b2f971d87a2358ce359f8b1cf875e2a2
@@ -523,7 +523,7 @@ module Fdis2
523
523
 
524
524
 
525
525
  line_items.each do |line|
526
- iva_id = line.fetch(:tax, 16.0)
526
+ iva_id = line.fetch(:tax, 16.0).to_f
527
527
 
528
528
  ret_iva = line.fetch(:retencion_iva, 0)
529
529
 
@@ -602,9 +602,9 @@ module Fdis2
602
602
  child_traslado['Base'] = subtotal_line.round(4).to_s
603
603
 
604
604
  if iva_id > 0
605
- tasa_cuota = (iva_id / 100).round(6)
605
+ tasa_cuota = (iva_id / 100)
606
606
  child_traslado['Importe'] = importe_iva.round(4).to_s
607
- child_traslado['TasaOCuota'] = tasa_cuota.to_s
607
+ child_traslado['TasaOCuota'] = sprintf("%.6f", tasa_cuota)
608
608
  else
609
609
  child_traslado['Importe'] = "0.00"
610
610
  child_traslado['TasaOCuota'] = '0.000000'
data/lib/fdis2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis2
2
- VERSION = "0.1.54"
2
+ VERSION = "0.1.56"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.54
4
+ version: 0.1.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-10-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -58,14 +57,14 @@ dependencies:
58
57
  requirements:
59
58
  - - '='
60
59
  - !ruby/object:Gem::Version
61
- version: 1.14.5
60
+ version: 1.13.9
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - '='
67
66
  - !ruby/object:Gem::Version
68
- version: 1.14.5
67
+ version: 1.13.9
69
68
  description: Gem used to fetch the CFDIS API for the mexican billing system (SAT).
70
69
  email:
71
70
  - angelpadillam@gmail.com
@@ -122,7 +121,6 @@ licenses:
122
121
  - MIT
123
122
  metadata:
124
123
  allowed_push_host: https://rubygems.org
125
- post_install_message:
126
124
  rdoc_options: []
127
125
  require_paths:
128
126
  - lib
@@ -137,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
135
  - !ruby/object:Gem::Version
138
136
  version: '0'
139
137
  requirements: []
140
- rubygems_version: 3.0.1
141
- signing_key:
138
+ rubygems_version: 3.6.7
142
139
  specification_version: 4
143
140
  summary: Gem used to fetch the CFDIS Web API
144
141
  test_files: []