toolhound-ruby 1.0.18 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2106041dac71ba5bd48f71ffdd84b491d35790d5
|
4
|
+
data.tar.gz: 3443fcb025167519f05e5eb560a650741003122d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9a923ba67704b35a400fef2cc7cd65912d77844dcf6a83ff80801dc1e44fb799a858dcffe5dd3d8cebc5db8ff526d8ed317705328559b3d6d35448976bdfe6
|
7
|
+
data.tar.gz: f2e6402c9d987ec68d9d17edbef74261950e2890319ee08bdb8e5f36da0bfd565f4d414ed07891fc9f9b2d0334776d57f523c1a50a8f5af2dd4c7909d700fbdb
|
@@ -90,8 +90,8 @@ module Toolhound
|
|
90
90
|
joins << "LEFT OUTER JOIN tblJobText on tblJobText.intJobID = tblJobCharge.intJobID AND tblJobText.varLocaleID = '#{locale}'"
|
91
91
|
|
92
92
|
selects = default_selects
|
93
|
-
selects[:job_text]
|
94
|
-
selects[:rental_query]
|
93
|
+
selects[:job_text] = [:int_job_id, :int_job_text_id, :var_job_number, :var_job]
|
94
|
+
selects[:rental_query] = [:dec_total_rent]
|
95
95
|
|
96
96
|
# (tblInventoryItem.intQOH=@p_QOH OR @p_QOH IS NULL)
|
97
97
|
wheres = []
|
@@ -54,6 +54,7 @@ module Toolhound
|
|
54
54
|
|
55
55
|
|
56
56
|
def return_periods(options = {})
|
57
|
+
options = (options || {}).dup
|
57
58
|
entity_id = options.delete :entity_id
|
58
59
|
damaged_only = options.delete :damaged_only
|
59
60
|
|
@@ -82,10 +83,11 @@ module Toolhound
|
|
82
83
|
|
83
84
|
end
|
84
85
|
|
85
|
-
def returns(options)
|
86
|
+
def returns(options = {})
|
87
|
+
options = (options || {}).dup
|
86
88
|
entity_id = options.delete :entity_id
|
87
|
-
from_date = options.delete :
|
88
|
-
to_date = options.delete :
|
89
|
+
from_date = options.delete :from
|
90
|
+
to_date = options.delete :to
|
89
91
|
damaged_only = options.delete :damaged_only
|
90
92
|
|
91
93
|
selects = default_selects
|