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: dc08ad949c9e66f2b2f4026348c29fba65c68e823ec852b02d05e6b45afdaf99
4
- data.tar.gz: d8571a7b44137ee4f48ed5b08b7d753462428ab80abceca23b36875fcb504e46
3
+ metadata.gz: 1e989cb5c8441960e8e3febb136396a50edd3b93ae8815e36907543bcafe5bcc
4
+ data.tar.gz: 4cf78d1dcbad550815e60c31600bac8b5b49255c70963fd13d68584fd708a07e
5
5
  SHA512:
6
- metadata.gz: 5b52af4a6c6203f3e3978c2ce8ab82e5edef410d6d44a3c6bb5d8dfa8fdcfc004164da1ba0947e66ef90ee156e0fabdc2967a05077b3f731126fb9d006a7ecac
7
- data.tar.gz: dd308ef0b4048733475bd5b1c5f14e6cdfa173ef0eab79c1a2203fa04a37fb2103adbef23dc84638a74959667a136bcbd87e27da59a06c2bc29f4925beeed5eb
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.code,
223
- supplier_description: product_lookup.item_description,
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
  }
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.24".freeze
3
+ VERSION = "0.3.26".freeze
4
4
  end
5
5
  end
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.24
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-07 00:00:00.000000000 Z
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