comee_core 0.3.59 → 0.3.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62c3a82f70ba464d1c87f3d179dafd0edb72160ab765e778e0b17c685728d2ae
4
- data.tar.gz: 5d30fca62ca6fe8aaa7af4060bad35a216f4fddc60981fabb79e9899a5e89ee9
3
+ metadata.gz: 876a961a9332cf2513a465ad11ce40d8d03ca647178394b9b5513c3df81699a4
4
+ data.tar.gz: 9bb2c547212e35beb30005e278ed9610f9a7b16939b2406f3ddd30dd86a1762e
5
5
  SHA512:
6
- metadata.gz: cae6372118d2a047ef698b59c0ec5c913cf969c35622721403a67f9ecb72d72972a4dbdd73a6ef9b8026a066cc89bdb6560d59863ccf7039da2b1eb40b11ee3b
7
- data.tar.gz: e20460d1d18626fb77adbb57c9d30e603b00b80702ceccb0dc225373090452207b1476ea16914905b0aa960314324c964c6490a79c6caa5e4ff4604ce9cc88f2
6
+ metadata.gz: c1fd0311049eabe5d0296e986dc515c5d4bc047c761cc8c97f855fa21f9cb24bdd1e56b1fb9568b1621f367065b4669b8ae6d97da7241acb54625ae4616e2f0b
7
+ data.tar.gz: 61dc904a3f5daf3e84bd37b9e84cfee52976d5af9ddfc4bc84c2f34760244232abe64c43b268fe37ba7bbe48730222f2b2a4a23ef94c1e8eb1c4b1528c660a64
@@ -20,8 +20,11 @@ module Comee
20
20
  end
21
21
 
22
22
  def filter
23
- data = ProductLookup.includes(:product, :itemable).ransack(params[:q]).result
24
- render_content(data)
23
+ data = ProductLookup.includes(:product, :itemable)
24
+ .ransack(params[:q]).result
25
+ render_content(data, {
26
+ include: %w[product itemable]
27
+ })
25
28
  end
26
29
 
27
30
  private
@@ -13,7 +13,7 @@ module Comee
13
13
  end
14
14
 
15
15
  def self.ransackable_associations(_auth_object = nil)
16
- []
16
+ %w[product]
17
17
  end
18
18
  end
19
19
  end
@@ -0,0 +1,7 @@
1
+ class AddAdditionalFieldsToPod < ActiveRecord::Migration[7.1]
2
+ def change
3
+ add_column :comee_core_pods, :container_no, :string, null: true
4
+ add_column :comee_core_pods, :seal_no, :string, null: true
5
+ add_column :comee_core_pods, :tare_weight, :string, null: true
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.59".freeze
3
+ VERSION = "0.3.61".freeze
4
4
  end
5
5
  end
@@ -2,5 +2,8 @@ FactoryBot.define do
2
2
  factory :pod, class: "Comee::Core::Pod" do
3
3
  reference_no { Faker::Alphanumeric.alpha(number: 10) }
4
4
  status { Comee::Core::Pod.statuses[:draft] }
5
+ container_no { Faker::Alphanumeric.alpha(number: 10) }
6
+ seal_no { Faker::Alphanumeric.alpha(number: 10) }
7
+ tare_weight { "1 T" }
5
8
  end
6
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.59
4
+ version: 0.3.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-29 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -542,6 +542,7 @@ files:
542
542
  - db/migrate/20240814125757_add_details_field_to_purchase_order_item.rb
543
543
  - db/migrate/20240815080137_add_confirmed_field_values_to_purchase_order.rb
544
544
  - db/migrate/20240829135433_add_serial_no_to_invoice_items.rb
545
+ - db/migrate/20240905111934_add_additional_fields_to_pod.rb
545
546
  - lib/comee/core.rb
546
547
  - lib/comee/core/engine.rb
547
548
  - lib/comee/core/version.rb