comee_core 0.1.71 → 0.1.73
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f70459330a344373488a24814acd99ac3fd15fd2cd43e8b0da1cb54c4b0d21bb
|
4
|
+
data.tar.gz: 1fe0179e6032e06ed07bf1a5906c6778565f820d1d895af35a60ab4287b8dc43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be550687705bb1d04341c3bc238f417ab8d525a34fa7aa3bdc79a7ec297d6f56d46bb3ca68b8b2f1e135252a3d9386abb8184a1749816faef1531063ea40312
|
7
|
+
data.tar.gz: f343407146e4014597855c58879eddfb0788e3efd0e450590e6b486ef9c9ec909737c491525d5d1e53c74c42389a9e09fb7085df02464dd2b16275eef54248e4
|
@@ -27,9 +27,11 @@ module Comee
|
|
27
27
|
status: obj.status,
|
28
28
|
margin: obj.margin,
|
29
29
|
margin_type: obj.margin_type,
|
30
|
+
client_id: obj.client.id,
|
30
31
|
client_code: obj.client.code,
|
31
32
|
client_name: obj.client.name,
|
32
33
|
client_address: obj.client.address,
|
34
|
+
product_id: obj.product.id,
|
33
35
|
product_code: obj.product.code,
|
34
36
|
product_name: obj.product.name,
|
35
37
|
product_description: obj.product.description,
|
@@ -40,6 +42,7 @@ module Comee
|
|
40
42
|
product_hs_code: obj.product.hs_code,
|
41
43
|
product_hs_description: obj.product.hs_description,
|
42
44
|
product_image: obj.product.thumbnail_image_url,
|
45
|
+
unit_id: obj.unit.id,
|
43
46
|
unit_code: obj.unit.code,
|
44
47
|
unit_name: obj.unit.name
|
45
48
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Comee
|
2
2
|
module Core
|
3
3
|
class MasterPriceSerializer < ActiveModel::Serializer
|
4
|
-
attributes :id, :purchase_price, :selling_price, :valid_from, :valid_to, :primary, :margin, :lead_time
|
4
|
+
attributes :id, :purchase_price, :selling_price, :valid_from, :valid_to, :primary, :margin, :lead_time, :status
|
5
5
|
belongs_to :product
|
6
6
|
belongs_to :supplier
|
7
7
|
end
|
data/lib/comee/core/version.rb
CHANGED