comee_core 0.3.25 → 0.3.26
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/sales_order_item.rb +0 -4
- data/lib/comee/core/version.rb +1 -1
- metadata +1 -1
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
|
data/lib/comee/core/version.rb
CHANGED