abank 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/abank/big.rb +3 -3
- data/lib/abank/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de10c87be621e35389199acb7ffd3d3cab6108d47e6a4567843498676aa9d406
|
4
|
+
data.tar.gz: 6522e24a538f2614e149c528e51c136bc4d382e048fedf613ee6c1a2c2a5e5a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9e2dccd22fa3a0a1516354069564f6794a678a0cb918d96e28e27bade10435cfe19b42a8795d54a58bf12be331c67427673e7d5bdfe2ed1211997e62e69f87
|
7
|
+
data.tar.gz: 0ff5bbc6dad1e8bebed8fd0b29dd3a3b3e4ac4f3387e1ae93c8553b7cd6ab01c403bc032dfb3f4c5f741237375a5f20b83af75b9fcba3656dca4e7ea34bb6b66
|
data/Gemfile.lock
CHANGED
data/lib/abank/big.rb
CHANGED
@@ -151,9 +151,9 @@ module Abank
|
|
151
151
|
|
152
152
|
# @return [String] sql para obter ultima renda do contrato arrendamento
|
153
153
|
def sql_last_re
|
154
|
-
'select ct,
|
155
|
-
|
156
|
-
|
154
|
+
'select r1.ct,r0.dl dc,r1.ano,r1.cnt,r1.dl,CAST(REGEXP_EXTRACT(r1.ct,r"\d+") as numeric)/100 vr '\
|
155
|
+
"from #{BD}.re r1 join hernanilr.ab.re r0 on (r0.ct=r1.ct and r0.cnt=0 and r1.cnt>0)"\
|
156
|
+
" where r1.ct='#{opcao[:c]}' order by ano desc,cnt desc limit 1"
|
157
157
|
end
|
158
158
|
|
159
159
|
# @return [String] sql para obter movimentos novos (depois da ultima renda do contrato arrendamento)
|
data/lib/abank/version.rb
CHANGED