sw_fac 0.3.54 → 0.3.55

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: '081b2169bbf06b9bf414b0aceee72d3d80a27b4e21cea8698d253720dcd83663'
4
- data.tar.gz: 800afdcdc5ba71f13b2713f855709a8dcb9dd4b94222df24159d6ace2d382f82
3
+ metadata.gz: 876b881e7fc870771dd0217a9ba092c0c5b488548b4ae17fb7ee54f2c41da3ea
4
+ data.tar.gz: 07f02855d6c1cfd38401cce9f07e5b2eddd4929caa2572b1001c177f45a6f1c7
5
5
  SHA512:
6
- metadata.gz: 8872313bc3dfd5eac05bde72eb4332888d3d5df2aac64dc5f860852e57014fea09f83dd984a8f68ef80a0f12aa1e2a7ca17f7765a127b23e80544971fd464086
7
- data.tar.gz: 3554e02cedfc207a1b0b868f5b9af8eb0806352592c51fbc65f9ef620bd86164015ad70111fdfe54238dfee8542e5ac1ddc4a860634ca78f49be1edd8203c344
6
+ metadata.gz: f6e9ec4a4b6c140c855b972b1f1ec122aaf5d892ec1ff2450d73fd384140a10cddec9bbf8bf06f239397b0201047540f7a60314d142d82d82adbc34120a430e7
7
+ data.tar.gz: '08b029ec32d8d132f42bfabd32a1686fc6f8556843bc1af2504ea2e886be107f1b6345374a33fd8d90bdd9eba0b156dacb7cbecda72b6ec2bc4150ae7dae099b'
@@ -79,7 +79,7 @@ module SwFac
79
79
  child_pago['MonedaP'] = params.fetch(:moneda, 'MXN')
80
80
  child_pago['Monto'] = params[:total].round(2).to_s
81
81
 
82
- saldo_anterior = params[:total].to_f
82
+ saldo_anterior = params[:total].to_s
83
83
 
84
84
  params[:line_items].each_with_index do |line, index|
85
85
  monto = line[:monto].to_f
@@ -89,9 +89,9 @@ module SwFac
89
89
  child_pago_relacionado['MetodoDePagoDR'] = 'PPD'
90
90
  child_pago_relacionado['NumParcialidad'] = (index + 1).to_s
91
91
 
92
- child_pago_relacionado['ImpSaldoAnt'] = (saldo_anterior).to_s
92
+ child_pago_relacionado['ImpSaldoAnt'] = (saldo_anterior).round(2).to_s
93
93
  child_pago_relacionado['ImpPagado'] = monto.round(2).to_s
94
- child_pago_relacionado['ImpSaldoInsoluto'] = (saldo_anterior - monto).to_s
94
+ child_pago_relacionado['ImpSaldoInsoluto'] = (saldo_anterior - monto).round(2).to_s
95
95
  saldo_anterior -= monto
96
96
 
97
97
  child_pago.add_child(child_pago_relacionado)
@@ -1,3 +1,3 @@
1
1
  module SwFac
2
- VERSION = "0.3.54"
2
+ VERSION = "0.3.55"
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.54
4
+ version: 0.3.55
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-25 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler