comee_core 0.3.24 → 0.3.26
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: 1e989cb5c8441960e8e3febb136396a50edd3b93ae8815e36907543bcafe5bcc
|
4
|
+
data.tar.gz: 4cf78d1dcbad550815e60c31600bac8b5b49255c70963fd13d68584fd708a07e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9b2c7ed866f8f75a53cd1b5bac9d48ed30d6cbb0636bc8ca5b6a982d0973bb2b3658d43d1eb6ded4b508707f551efc6eefe11557b22067c63f4e77321b2a33
|
7
|
+
data.tar.gz: 633c71cf0b4a6fb8ac37d921c42569c9db2a67c27ad740281f1e31c0c084944dc61ae8b4472afac14cced744410be8f596fc94ee75a88d8f7c2507537cdc1b70
|
@@ -42,8 +42,6 @@ module Comee
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def calculate_price_change
|
45
|
-
return if customer_order_item.unit_id == unit_id && customer_order_item.price == price
|
46
|
-
|
47
45
|
if customer_order_item.unit_id == unit_id
|
48
46
|
self.price_diff = price - customer_order_item.price
|
49
47
|
else
|
@@ -54,8 +52,6 @@ module Comee
|
|
54
52
|
end
|
55
53
|
|
56
54
|
def calculate_quantity_change
|
57
|
-
return if customer_order_item.unit_id == unit_id && customer_order_item.quantity == quantity
|
58
|
-
|
59
55
|
if customer_order_item.unit_id == unit_id
|
60
56
|
self.quantity_diff = quantity - customer_order_item.quantity
|
61
57
|
else
|
@@ -219,8 +219,8 @@ module Comee
|
|
219
219
|
additional_details: {
|
220
220
|
supplier_id: master_price.supplier_id,
|
221
221
|
supplier_name: master_price.supplier.name,
|
222
|
-
supplier_item_no: product_lookup
|
223
|
-
supplier_description: product_lookup
|
222
|
+
supplier_item_no: product_lookup&.code,
|
223
|
+
supplier_description: product_lookup&.item_description,
|
224
224
|
country_of_origin: master_price&.country_of_origin&.name
|
225
225
|
}
|
226
226
|
}
|
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.3.
|
4
|
+
version: 0.3.26
|
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-07-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|