comee_core 0.1.60 → 0.1.62
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/products_controller.rb +5 -0
- data/app/controllers/comee/core/quotation_requests_controller.rb +1 -1
- data/app/controllers/concerns/comee/core/common.rb +6 -1
- data/app/models/comee/core/product.rb +4 -0
- data/config/routes.rb +1 -0
- data/lib/comee/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bddc614dddc4d9d2d3eeb9756abfb54e558223289ce15b3fc715bf30cbbd3a9c
|
4
|
+
data.tar.gz: beec0b6fac03ad5bf2ca4c53a1c9bc55af09eb71ec2a62a32e99043a951fdfba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c307992aa32dab21e9ad928051be6ee6a768f19f90d7f754510faff5f89ab83856f399eabe401c78089f15ab37e1035d778129340a363bb9521dea6d6176812d
|
7
|
+
data.tar.gz: 3218e7f848bb8970c25e0b6360c6a099e49d022425e76d07fdbbaffc5665027e202cfcc44b5464e9d7ca26211d3439fc49ee2c767166f2d86c735d3b3353594b
|
@@ -71,7 +71,7 @@ module Comee
|
|
71
71
|
|
72
72
|
def rfq_params
|
73
73
|
params.require(:payload).permit(:client_id, :order_number, :order_date, :delivery_address, :invoice_address,
|
74
|
-
items: %i[product_id unit_id quantity expected_delivery_date])
|
74
|
+
items: %i[product_id unit_id customer_item_no quantity expected_delivery_date])
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
@@ -14,7 +14,12 @@ module Comee
|
|
14
14
|
else
|
15
15
|
@clazz.all
|
16
16
|
end
|
17
|
-
|
17
|
+
page = params[:page]
|
18
|
+
if page
|
19
|
+
render json: {success: true, data: serialize(data), page: page, total: @clazz.count}
|
20
|
+
else
|
21
|
+
render json: {success: true, data: serialize(data)}
|
22
|
+
end
|
18
23
|
end
|
19
24
|
|
20
25
|
def show
|
@@ -28,6 +28,10 @@ module Comee
|
|
28
28
|
images.attached? ? images.map { |image| Rails.application.routes.url_helpers.rails_blob_url(image, only_path: false) } : []
|
29
29
|
end
|
30
30
|
|
31
|
+
def self.ransackable_attributes(_auth_object = nil)
|
32
|
+
%w[code name description]
|
33
|
+
end
|
34
|
+
|
31
35
|
def default_unit
|
32
36
|
preferred_units.find { |unit| unit["default"] }
|
33
37
|
end
|
data/config/routes.rb
CHANGED
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.62
|
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-12-
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|