comee_core 0.3.13 → 0.3.14

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
  SHA256:
3
- metadata.gz: 37e018316397b9835966d15f409f2884a9e1cc3749eef845f92f36a4ab72ecad
4
- data.tar.gz: 5bf530dcf32e3567c152ff57ba3d339a4f0f0feae80581d85215daa3c124d77a
3
+ metadata.gz: 07ea8b2d38974e5d0c2bc42dbd9a9242ede67b2a9a18e7f8101e68db2a0f2f55
4
+ data.tar.gz: 532f72af1b4e969c73b155ca975b3dd3b72b3a63e1eadc147e5eec1f9d0bf6d9
5
5
  SHA512:
6
- metadata.gz: 102bc7736fb711184cc69fc515df446b4c850eeab201a3eb8449b524b5fa2c780f74208489732a4f111dcb3f92609db9b980298e3f20275bd6ef7aa09fbe16c1
7
- data.tar.gz: 1d3c76695cadb18c210e59084e0e350f865d86a4a5d1c0df4b7eec91eca7cf4cacf8d9cc650ccab00f959c0eb8673f6ee39d9ca72987f498344fd329eba52627
6
+ metadata.gz: 0b2069cc8af72a264e78738a6d0ec44868d543126384ea67fc32c041da0fafdc3625f9bf15465462fc3f9846c10576018bef95e7696e2d8606c3bb99c5f82fab
7
+ data.tar.gz: cb950057668a419cfac9b0b266512594db85b15eea6696a9f37bdb6a40d57dad909a8ee0213851e8ea9cb03c3f8f5323d8920e3bdaca9d97a51eca8d86c5412c
@@ -5,13 +5,16 @@ module Comee
5
5
 
6
6
  def index
7
7
  super do
8
- Client.includes(:parent, :agents, :contacts, :client_warehouses, :country, :user, :currency).all
8
+ Client.includes(
9
+ :parent, :agents, :contacts, :client_warehouses, :client_addresses, :country, :user, :currency
10
+ ).all
9
11
  end
10
12
  end
11
13
 
12
14
  def filter
13
- clients = Client.includes(:parent, :agents, :contacts, :client_warehouses, :country, :user, :currency)
14
- .ransack(params[:q]).result
15
+ clients = Client.includes(
16
+ :parent, :agents, :contacts, :client_warehouses, :client_addresses, :country, :user, :currency
17
+ ).ransack(params[:q]).result
15
18
  render_content(clients)
16
19
  end
17
20
 
@@ -13,7 +13,8 @@ module Comee
13
13
  end
14
14
 
15
15
  def filter
16
- shipment_item = ShipmentItem.includes(:sales_order_item).ransack(params[:q]).result
16
+ shipment_item = ShipmentItem.includes(sales_order_item: [:unit, :product, sales_order: :client])
17
+ .ransack(params[:q]).result
17
18
  options = {include: ["sales_order_item.sales_order.client", "sales_order_item.product", "sales_order_item.unit"]}
18
19
  render_content(shipment_item, options)
19
20
  end
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.13".freeze
3
+ VERSION = "0.3.14".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.