abank 0.5.0 → 0.5.2

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: 89ef46f10e2a27d3ec0b07cec44c409b5ccc8657becb08c797c3593ac0c34d01
4
- data.tar.gz: bee920d33a78383e41b836326bc0d18e32ea5040fa3580f7fe6d0abfd59779b8
3
+ metadata.gz: 60ad38dcf2fc8c0b595819fdf1f169d65567fae500534bb7e727e7ecc0d0a612
4
+ data.tar.gz: 7d2c33114e7cb5fd3f896e023566711f6ff9bb3ce6405ab864a85138637a7a27
5
5
  SHA512:
6
- metadata.gz: 62d1e5e44883182033f530ad970dda63f66cf72b0b3ae677a297ef8a8f73b02e9627ef6b125ad49dfc8382e6ad218bd95cf6659b8b166e8c1d16112878a3ba46
7
- data.tar.gz: f64f197e84c2d49e80874771555da87d4af3a0f42b63e120024603a259fa1e9f065fee6eafc0be376a8190e6e361face9f26e57cb7393f0143b5813bc9239ac8
6
+ metadata.gz: d36d0befa0bc77d1fc9b3adbefcc4975312cddb7475317213194759608595b1b278f5657d349ac1cfb0ffddd3bdec355424977e625865ab6701b6392c9b057a5
7
+ data.tar.gz: 30f112dee9feb2a08d9e0307872e33f8397b89ba76a27b47dbf044e04f480aa1eb6ade1f155a53bd9278581a2a16bf94f610b1391e3624c7807d66c245a810e9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abank (0.5.0)
4
+ abank (0.5.2)
5
5
  google-cloud-bigquery
6
6
  roo
7
7
  thor
data/lib/abank/big.rb CHANGED
@@ -54,7 +54,7 @@ module Abank
54
54
  @ctlct = []
55
55
  unless mvkys.empty?
56
56
  # obtem lista contratos arrendamento associados aos movimentos a apagar
57
- @ctlct = sql("select distinct ct from #{BD}.gmc where #{BD}.ky(dl,dv,ds,vl,nc) in(#{mvkys})")
57
+ @ctlct = sql("select distinct ct from #{BD}.gmr where #{BD}.ky(dl,dv,ds,vl,nc) in(#{mvkys})")
58
58
 
59
59
  re_apaga.mv_delete_dml
60
60
  end
@@ -69,6 +69,7 @@ module Abank
69
69
 
70
70
  # (see CLI#tag)
71
71
  def mv_classifica
72
+ @ctlct = []
72
73
  stp("call #{BD}.uct()")
73
74
  puts("MOVIMENTOS CLASSIFICADOS #{bqnrs}")
74
75
  @ctlct = sql("select ct from #{BD}.ca") if bqnrs.positive?
@@ -150,7 +151,7 @@ module Abank
150
151
 
151
152
  # @return [String] sql para obter movimentos novos (depois da ultima renda do contrato arrendamento)
152
153
  def sql_novo_mv(mdl)
153
- "select * from #{BD}.gmv where ct='#{opcao[:c]}' and dl>='#{(mdl + 1).strftime(DF)}' order by 1,2"
154
+ "select * from #{BD}.gmn where ct='#{opcao[:c]}' and dl>='#{(mdl + 1).strftime(DF)}' order by 1,2"
154
155
  end
155
156
 
156
157
  # @return [String] sql para obter dados do inicio contrato arrendamento
data/lib/abank/folha.rb CHANGED
@@ -155,7 +155,7 @@ module Abank
155
155
  # @return [String] ' NOVO'
156
156
  def values_mv
157
157
  @mvvls += ",('#{rowfc[0].strftime(DF)}','#{dvc.strftime(DF)}','#{rowfc[2]}',#{rowfc[3]}"\
158
- ",#{conta},#{dvc.year},#{dvc.month},'#{tpc}',#{ctc})"
158
+ ",#{conta},#{dvc.year},#{dvc.month},'#{tpc}',#{ctc},null,null)"
159
159
  ' NOVO'
160
160
  end
161
161
 
data/lib/abank/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Abank
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler