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: edb54a116e11733bfbadee0b3647410f7af60f96
4
- data.tar.gz: e8eb456f765dd96981a4ab6e6e3bf8815aec4c01
3
+ metadata.gz: 2106041dac71ba5bd48f71ffdd84b491d35790d5
4
+ data.tar.gz: 3443fcb025167519f05e5eb560a650741003122d
5
5
  SHA512:
6
- metadata.gz: 98934d40b15f532e030050a1c1615b3b959375d4dbce9535106473fe76167d02fc0d13bb79605085c5d0cdfb4bac6f87de29a75693cbe126350a6a1c93a341e6
7
- data.tar.gz: ca21dc937ba3f15f6e5f808183e3afb89340b91af33d75aae7486dcb5e11efefad132258aa9d9af83dbe636a188724f649c33a06a4e57a87b74106544e330409
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] = [:int_job_id, :int_job_text_id, :var_job_number, :var_job]
94
- selects[:rental_query] = [:dec_total_rent]
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 = []
@@ -47,6 +47,8 @@ module Toolhound
47
47
  end
48
48
 
49
49
  def for_entity_over_period(options)
50
+ options = (options || {}).dup
51
+
50
52
  entity_id = options.delete :entity_id
51
53
  from = options.delete :from
52
54
  to = options.delete :to
@@ -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 :from_date
88
- to_date = options.delete :to_date
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
@@ -1,3 +1,3 @@
1
1
  module Toolhound
2
- VERSION = "1.0.18"
2
+ VERSION = "1.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolhound-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Klooth