toolhound-ruby 1.0.26 → 1.0.27

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: ce6f1f750b8f13b9bfd68244d35fd6100b5a6534
4
- data.tar.gz: ef2dad970686ce35b36e9dcba83a7faaa69a0c60
3
+ metadata.gz: f36db35250ce656b1d1e50f95b567fbdf90e7c4d
4
+ data.tar.gz: 8cf00d9f9e6013bb243fadd72da55095730262c8
5
5
  SHA512:
6
- metadata.gz: d2bb703e2e18d69ddf6e0835cb1fc3c38241075d01e56ccf7ed56fa658a3d6d5f516328848adf74ffebeb2f684fc9f24bfaead333e3d788fbdc00981a067a152
7
- data.tar.gz: 89698f322d8ab89e7740e2c84b72b3fb8f23aa72a5ba22eb8483bbe8904ec8e319b39ffccd0ea544cc437513948160601a162ae7fad061d55ff5748859a55afc
6
+ metadata.gz: 3912c54ab6ffc8bd31d101b0f82f644fdc7ceb0ebc3fe55206d0b39caaa47f7aac3e9d3551c7f06dff2a38c61e94a9817f4a4c47695b0ee2d5f58590c2c1675f
7
+ data.tar.gz: c0d82328373adc80faf5d06acb7527cffafae3164b2806bd99bb426d9ba322a0842cde700ce0ea40c492fbeaf3f2b1647f70f440e8db09003a165e59ccd3dafc
@@ -57,6 +57,8 @@ module Toolhound
57
57
  joins << "LEFT OUTER JOIN tblRentalItem ON tblRentalItem.intRentalItemID = tblRentalCharge.intRentalItemID"
58
58
  joins << "LEFT OUTER JOIN tblRentalDetail ON tblRentalDetail.intRentalDetailID = tblRentalItem.intRentalDetailID"
59
59
  joins << "LEFT OUTER JOIN tblRental ON tblRental.intRentalID = tblRentalDetail.intRentalID"
60
+ joins << "LEFT OUTER JOIN tblTransaction ON tblTransaction.intRentalID = tblRental.intRentalID"
61
+
60
62
  joins << "INNER JOIN tblInventoryID ON tblInventoryID.intInventoryIdID = tblRentalCharge.intInventoryIDID"
61
63
  joins << "INNER JOIN tblInventory ON tblInventoryID.intInventoryID = tblInventory.intInventoryID"
62
64
  joins << "INNER JOIN tblInventoryText ON tblInventory.intInventoryID = tblInventoryText.intInventoryID"
@@ -66,7 +68,6 @@ module Toolhound
66
68
  ) as taxQuery ON taxQuery.intLocationID = tblLocation.intLocationID"
67
69
  joins << "LEFT OUTER JOIN tblTax ON tblTax.intLocationID = taxQuery.intLocationID AND tblTax.dteCreatedDate = taxQuery.max_date"
68
70
  joins << "LEFT OUTER JOIN tblTaxText ON tblTaxText.intTaxID = tblTax.intTaxID AND tblTaxText.varLocaleID = '#{locale}'"
69
-
70
71
  wheres = [
71
72
  {"inventory.bol_deleted" => 0},
72
73
  {"inventory.bol_is_active" => 1},
@@ -81,7 +82,7 @@ module Toolhound
81
82
  rental_charge: [
82
83
  :int_rental_charge_id, :int_entity_id, :int_qty, :dec_total, :var_type, :int_inventory_id_id,
83
84
  :dec_days, :dec_daily, :dec_weeks, :dec_weekly, :dec_months, :dec_monthly,
84
- {var_work_order: :var_work_order_no},
85
+ # {var_work_order: :var_work_order_no},
85
86
  :dte_start_date, :dte_end_date
86
87
  ],
87
88
  inventory_id: [{var_inventory_id: :inventory_id_no}, :int_inventory_id],
@@ -90,9 +91,10 @@ module Toolhound
90
91
  :var_part_no, :var_description, {var_user_field1: :gl_revenue}, {var_user_field2: :gl_cogs_code},
91
92
  {var_user_field3: :phase_code}
92
93
  ],
94
+ transaction: [{var_work_order: :var_work_order_no}, :var_transaction_no],
93
95
  tax: [{dec_tax1_rate: :tax_rate}],
94
96
  tax_text: [{var_tax1_description: :tax_label}],
95
- rental: [:var_rental_number]
97
+ rental: [:var_rental_number]
96
98
  }
97
99
 
98
100
  build_and_query(selects: selects, where: wheres, joins: joins, order: "tblInventoryText.varPartNo")
@@ -1,3 +1,3 @@
1
1
  module Toolhound
2
- VERSION = "1.0.26"
2
+ VERSION = "1.0.27"
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.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Klooth