comee_core 0.1.45.pre2 → 0.1.45
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/master_price.rb +1 -6
- data/lib/comee/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75ec5f13994e93da5d3763590ea59e605abcea49c688f4c904af3be6f7f7387a
|
4
|
+
data.tar.gz: ec537070f9cf37ebd7e261abfb49f8c4c847e6ae4ea91604554de2d51c5cce17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873f33e015d319b8194a8d22f16629140dbf604d2f481a078aa38ec5a7f6099f206e35036b9f2c5ef83764d6f0bbb8b2f52f0d0cd84375fc2b234e2ac1af65f6
|
7
|
+
data.tar.gz: 8ccf84bde86a909f24505431d980b3f4c5532d0d2eb0850685069611199f1aca0aa44e015d659df13606f2b2e16848573ce4f95a56f1bc83fd2ade6717be1643
|
@@ -25,13 +25,8 @@ module Comee
|
|
25
25
|
return unless product && primary
|
26
26
|
|
27
27
|
price = MasterPrice.find_by(product: product, primary: true, status: Price.statuses[:current])
|
28
|
-
|
29
|
-
Rails.logger.info(price)
|
30
|
-
Rails.logger.info("Current price:")
|
31
|
-
Rails.logger.info(self)
|
32
|
-
return unless price && price.id != id
|
28
|
+
return unless price && price.id != id && status == price.status
|
33
29
|
|
34
|
-
Rails.logger.info("RAISING ERROR ...")
|
35
30
|
errors.add(:base, "There is already a primary price entry for item '#{product.code}'")
|
36
31
|
end
|
37
32
|
|
data/lib/comee/core/version.rb
CHANGED
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.1.45
|
4
|
+
version: 0.1.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
@@ -459,9 +459,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
459
459
|
version: '3.0'
|
460
460
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
461
|
requirements:
|
462
|
-
- - "
|
462
|
+
- - ">="
|
463
463
|
- !ruby/object:Gem::Version
|
464
|
-
version:
|
464
|
+
version: '0'
|
465
465
|
requirements: []
|
466
466
|
rubygems_version: 3.4.10
|
467
467
|
signing_key:
|