comee_core 0.1.83 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/comee/core/fulfillment_centers_controller.rb +13 -0
- data/app/controllers/comee/core/products_controller.rb +5 -0
- data/app/models/comee/core/shipment_instruction.rb +4 -0
- data/app/serializers/comee/core/fulfillment_center_serializer.rb +7 -0
- data/config/routes.rb +13 -5
- data/lib/comee/core/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88c220e6b121eb2fc8a4191d432f5063df0bad832d3489443798c44618421797
|
4
|
+
data.tar.gz: 78c951ec96109410776b2345b927772a6e069ef078b558e69f7bbef0b49fca67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 726ab140419d49fb2b08bc68beb970cdc3f5f34ea5de70ed0f65d90a4b2930fb3a976def5dadd5837ca48e5c5a237d75dec8b5ad333c380f048302c224d588e7
|
7
|
+
data.tar.gz: 0a49d0031869536a37b50af5a67d86ca6e51bfc3631d3191965c90270d2dbe14949e748464ad164530543a48e353b355ed012321a6ada12dc574592301519aa5
|
@@ -27,6 +27,11 @@ module Comee
|
|
27
27
|
render json: {success: true, data: serialize(data)}
|
28
28
|
end
|
29
29
|
|
30
|
+
def categories
|
31
|
+
root = Product.find_by(code: "root")
|
32
|
+
render json: {success: true, data: serialize(root.children)}
|
33
|
+
end
|
34
|
+
|
30
35
|
def filter
|
31
36
|
products = Product.ransack(params[:q]).result
|
32
37
|
render json: {success: true, data: serialize(products)}
|
data/config/routes.rb
CHANGED
@@ -8,12 +8,17 @@ Comee::Core::Engine.routes.draw do
|
|
8
8
|
post "mark_as_unread", controller: :notifications, action: :mark_as_unread
|
9
9
|
end
|
10
10
|
end
|
11
|
-
|
12
|
-
|
11
|
+
resources :suppliers do
|
12
|
+
collection do
|
13
|
+
post "filter"
|
14
|
+
end
|
15
|
+
end
|
13
16
|
resources :products do
|
14
17
|
collection do
|
15
18
|
post "master_prices"
|
16
19
|
post "client_prices"
|
20
|
+
post "filter"
|
21
|
+
get "categories"
|
17
22
|
end
|
18
23
|
end
|
19
24
|
resources :product_lookups do
|
@@ -109,7 +114,10 @@ Comee::Core::Engine.routes.draw do
|
|
109
114
|
end
|
110
115
|
end
|
111
116
|
resources :customs_details
|
112
|
-
resources :item_statuses
|
113
|
-
|
114
|
-
|
117
|
+
resources :item_statuses do
|
118
|
+
collection do
|
119
|
+
post "filter"
|
120
|
+
end
|
121
|
+
end
|
122
|
+
resources :fulfillment_centers
|
115
123
|
end
|
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.84
|
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-01-
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -288,6 +288,7 @@ files:
|
|
288
288
|
- app/controllers/comee/core/customer_orders_controller.rb
|
289
289
|
- app/controllers/comee/core/customs_details_controller.rb
|
290
290
|
- app/controllers/comee/core/external_rfqs_controller.rb
|
291
|
+
- app/controllers/comee/core/fulfillment_centers_controller.rb
|
291
292
|
- app/controllers/comee/core/item_statuses_controller.rb
|
292
293
|
- app/controllers/comee/core/lookups_controller.rb
|
293
294
|
- app/controllers/comee/core/notifications_controller.rb
|
@@ -356,6 +357,7 @@ files:
|
|
356
357
|
- app/serializers/comee/core/customer_order_serializer.rb
|
357
358
|
- app/serializers/comee/core/customs_detail_serializer.rb
|
358
359
|
- app/serializers/comee/core/external_rfq_serializer.rb
|
360
|
+
- app/serializers/comee/core/fulfillment_center_serializer.rb
|
359
361
|
- app/serializers/comee/core/item_status_serializer.rb
|
360
362
|
- app/serializers/comee/core/lookup_serializer.rb
|
361
363
|
- app/serializers/comee/core/master_price_serializer.rb
|