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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '044489f1d3935fee022755dd378d80632122340169deb3ca44d2d5551372e936'
4
- data.tar.gz: 10d6f6000331d28ae3395e9d48cd9fd26ad653a439670ac003a3729ec40d8310
3
+ metadata.gz: 1e989cb5c8441960e8e3febb136396a50edd3b93ae8815e36907543bcafe5bcc
4
+ data.tar.gz: 4cf78d1dcbad550815e60c31600bac8b5b49255c70963fd13d68584fd708a07e
5
5
  SHA512:
6
- metadata.gz: 7cefb01b5c8706c79fa580a7d8ae5e8107fa00ea622c0f7cc81ffd07b6e88798c7285ee13f85fa4bfa1e5b562343884af5610976a415ccbc85bd1580d5b9a8ae
7
- data.tar.gz: 1bec632932e6884141d502201457defbb7df40ea315cdcb11b3314d9fa5c4d292e1f5e2405f8c7f4bdcd565083cfbde1f2d35d30701af6140f29d4eac90a0bd8
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
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.25".freeze
3
+ VERSION = "0.3.26".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.