invoicing_payments_processing 1.1.79 → 1.1.80
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/movement.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09a21bacef2cf167afd383956f5e60118528b1c
|
4
|
+
data.tar.gz: f326089a00630e7eb3e91c4f06272c154794fa81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4631bac0fcc2b95a5babc0c65cadfea9efbd291c3ecaf56e03a58562c418e153e5c4163e6a49bb076b58f1d6610795c63768f0d29595b362f3982870694438d0
|
7
|
+
data.tar.gz: c8eb03127d5d5c9544bb6d9479dcec76b0d6a801aeea8a5217b64db6e82ee4a9b5058d4984b9a48e4c5480492b3165f791b0449d89c0588c878eecc5202437dd
|
data/lib/movement.rb
CHANGED
@@ -155,7 +155,7 @@ module BlackStack
|
|
155
155
|
=end
|
156
156
|
q =
|
157
157
|
"select ISNULL(SUM(ISNULL(m.credits,0)),0) AS n " +
|
158
|
-
"from movement m with (nolock) " +
|
158
|
+
"from movement m with (nolock index(IX_movement__type__id_client__product_code__create_time_desc__credits_desc)) " +
|
159
159
|
"where isnull(m.type, #{BlackStack::Movement::MOVEMENT_TYPE_ADD_PAYMENT.to_s}) in (#{BlackStack::Movement::MOVEMENT_TYPE_ADD_PAYMENT.to_s}, #{BlackStack::Movement::MOVEMENT_TYPE_ADD_BONUS.to_s}) " +
|
160
160
|
"and m.id_client='#{self.client.id.to_guid}' " +
|
161
161
|
"and isnull(m.credits,0) < 0 " +
|
@@ -176,7 +176,7 @@ module BlackStack
|
|
176
176
|
=end
|
177
177
|
q =
|
178
178
|
"select ISNULL(SUM(ISNULL(m.credits,0)),0) AS n " +
|
179
|
-
"from movement m with (nolock) " +
|
179
|
+
"from movement m with (nolock index(IX_movement__type__id_client__product_code__create_time_desc__credits_asc)) " +
|
180
180
|
"where m.id_client='#{self.client.id.to_guid}' " +
|
181
181
|
"and isnull(m.credits,0) > 0 " +
|
182
182
|
"and upper(isnull(m.product_code, '')) = '#{self.product_code.upcase}' " +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoicing_payments_processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.80
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|