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 +4 -4
- data/app/models/comee/core/notification.rb +1 -1
- data/app/models/comee/core/warehouse_shipment.rb +8 -0
- data/db/migrate/20230812212844_create_comee_core_sales_order_items.rb +4 -2
- data/lib/comee/core/version.rb +1 -1
- metadata +6 -7
- data/db/migrate/20231008115247_add_quantity_to_comee_core_sales_order_item.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5137848142d039d57337eab4f356690f8a3980537eb66855509555fe129421a5
|
4
|
+
data.tar.gz: cd8d1a97afc51a5f693ab8cc6890457ecd95d06ed7fe2a7e9c84a14a1f07f047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67574412a78a311d4d268ef7a51dd68ef1b9263d4c25df5cde085f5c3e9a44878765025804aa43fc687f5160632eaabddf8dbeadc13969cf5ed50d2c7b2e1dea
|
7
|
+
data.tar.gz: 4a0202a3b0a1dfd624fd785c5822577774a374771d8121039061204c3e5860d4303a3c6436122aeadb19ed715f1be62acc45b05bd00273927c3e7715f12526c1
|
@@ -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.
|
13
|
-
t.
|
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
|
data/lib/comee/core/version.rb
CHANGED
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.
|
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-
|
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
|
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
|
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
|