invoicing_payments_processing 1.1.60 → 1.1.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/balance.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7019008952c4a101402f3437fb2c7e72a64987f
|
4
|
+
data.tar.gz: 32eb0417161011cec4032e3f72aaf4f8d2f0d75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161824735dffd0670ca5d5d838121788ab3e1b36fc651cbfd401f0cbcf182c26cf6bb436dd131c5a31f787c5c507a8fa11b1ab7b35c6513da505af9c437c91f9
|
7
|
+
data.tar.gz: 1a40cfdd633075be2a2ccd1da1d3b047b16b8b582fcb1b03116de1b6e529336d6ce7afb3ca7bd5bfefd20064e10b9dfcebda6b1b163ca1a0c8706bab214eb840
|
data/lib/balance.rb
CHANGED
@@ -16,7 +16,7 @@ module BlackStack
|
|
16
16
|
"from movement with (nolock) " +
|
17
17
|
"where id_client='#{self.client.id}' " +
|
18
18
|
"and product_code='#{self.product_code}' " +
|
19
|
-
"and create_time
|
19
|
+
"and create_time <= '#{self.up_time.to_time.to_sql}' "
|
20
20
|
else
|
21
21
|
q =
|
22
22
|
"select cast(sum(cast(amount as numeric(18,12))) as numeric(18,6)) as amount, sum(credits) as credits " +
|