comee_core 0.1.25 → 0.1.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
  SHA256:
3
- metadata.gz: faed63ef20703db26547cca5e061d85a293bd15e02ecb110243828333876d961
4
- data.tar.gz: 17a1247d0236ea0059abdfade2674014d6be1dcb50cd8a0064cfafa84ca38f3b
3
+ metadata.gz: 5137848142d039d57337eab4f356690f8a3980537eb66855509555fe129421a5
4
+ data.tar.gz: cd8d1a97afc51a5f693ab8cc6890457ecd95d06ed7fe2a7e9c84a14a1f07f047
5
5
  SHA512:
6
- metadata.gz: 38cda2bc16fd07ce42462795fe83f4f0fba57446a902b67a066610294388ebc9f23bab6a82a0d3c111ed09c13456a3b02f6a3d65b576c3eb8bf2bdf1241f026a
7
- data.tar.gz: 53ad90ec924be6ebc4e3e6d3086e8a2b03424d914e5fa816f8c7460f8a3c795779721c876e1a5f3d0caef5badc974356f8b117124349e0277121f36fba489bd7
6
+ metadata.gz: 67574412a78a311d4d268ef7a51dd68ef1b9263d4c25df5cde085f5c3e9a44878765025804aa43fc687f5160632eaabddf8dbeadc13969cf5ed50d2c7b2e1dea
7
+ data.tar.gz: 4a0202a3b0a1dfd624fd785c5822577774a374771d8121039061204c3e5860d4303a3c6436122aeadb19ed715f1be62acc45b05bd00273927c3e7715f12526c1
@@ -10,7 +10,7 @@ module Comee
10
10
  end
11
11
 
12
12
  def self.messages(notifications)
13
- notifications.includes(:recipient).map(&:message)
13
+ notifications.map(&:message)
14
14
  end
15
15
  end
16
16
  end
@@ -8,6 +8,14 @@ module Comee
8
8
 
9
9
  validates :reference_number, presence: true, uniqueness: true
10
10
  validates :destination, :delivery_date, :status, presence: true
11
+
12
+ def self.ransackable_attributes(_auth_object = nil)
13
+ %w[client_id delivery_date destination id reference_number status]
14
+ end
15
+
16
+ def self.ransackable_associations(_auth_object = nil)
17
+ []
18
+ end
11
19
  end
12
20
  end
13
21
  end
@@ -9,8 +9,10 @@ class CreateComeeCoreSalesOrderItems < ActiveRecord::Migration[7.0]
9
9
  null: false,
10
10
  index: {name: "po_on_coi_indx"},
11
11
  foreign_key: {to_table: :comee_core_products}
12
- t.integer :quantity, null: false
13
- t.integer :price, null: false
12
+ t.float :quantity, null: false
13
+ t.float :quantity_remaining
14
+ t.float :quantity_en_route, default: 0
15
+ t.float :price, null: false
14
16
  t.date :delivery_date, null: false
15
17
 
16
18
  t.timestamps
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.1.25".freeze
3
+ VERSION = "0.1.27".freeze
4
4
  end
5
5
  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.1.25
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-19 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 7.0.6
75
+ version: 7.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 7.0.6
82
+ version: 7.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: ransack
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -312,7 +312,6 @@ files:
312
312
  - db/migrate/20231003073316_create_comee_core_inventories.rb
313
313
  - db/migrate/20231003080017_create_comee_core_warehouse_shipments.rb
314
314
  - db/migrate/20231004105455_create_comee_core_warehouse_shipment_items.rb
315
- - db/migrate/20231008115247_add_quantity_to_comee_core_sales_order_item.rb
316
315
  - lib/comee/core.rb
317
316
  - lib/comee/core/engine.rb
318
317
  - lib/comee/core/version.rb
@@ -1,6 +0,0 @@
1
- class AddQuantityToComeeCoreSalesOrderItem < ActiveRecord::Migration[7.0]
2
- def change
3
- add_column :comee_core_sales_order_items, :quantity_remaining, :integer
4
- add_column :comee_core_sales_order_items, :quantity_en_route, :integer, default: 0
5
- end
6
- end