workarea-admin 3.4.38 → 3.4.39

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: 1b773a7d51ba2ea70a5da176f5fa8ac5af6d76b9167f57e8ad55add3eb268980
4
- data.tar.gz: 98e9a119aaa7b4293e44418365179417cd135869cbfaf7cb2b7db19aa8ebfa19
3
+ metadata.gz: c6a212108166042aafd35198dd00a9634a40548133acd4805e50809caf14670b
4
+ data.tar.gz: da550878bda42c55340b4cd414a0e771571272fd506cc105850d31d5a7c684e4
5
5
  SHA512:
6
- metadata.gz: 15d5797a42852a1293362ff65ac1737f8bb858f10f04183f551d580c53c42c80dc055c50a6d53ed33002177a33c2f827fccb500c971cb729311886707d6d0133
7
- data.tar.gz: '049e84efb2d384b01bb6f68ead79654eae384436f1d3ffa2d02920c7411c42d195b76af6228dfa9606c5e4fecd6e311100cd9006eec935c694d397d0ef5f4686'
6
+ metadata.gz: d36769d2327f453b76806f547d9de8d38a88e903403c7fc33d9abea0174f7d6da2239733d163097410070dab4453a95c94f271733a1810d4f4aa002d5b7c6443
7
+ data.tar.gz: 8473245d50289ce340ac32cac7127d142e4302790bf7f333b1f505a3155c5f83c05ca1eeb3f35ef9ee5f7f8430838a6bde182732c992b05d39957ad89c5289ff
@@ -21,8 +21,9 @@ module Workarea
21
21
  end
22
22
 
23
23
  if attributes[:inventory].present?
24
- inventory = Inventory::Sku.find_or_create_by(id: variant.sku)
24
+ inventory = Inventory::Sku.find_or_initialize_by(id: variant.sku)
25
25
  inventory.available = attributes[:inventory]
26
+ inventory.policy = 'standard' if inventory.new_record?
26
27
  inventory.save!
27
28
  end
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.38
4
+ version: 3.4.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.38
19
+ version: 3.4.39
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.38
26
+ version: 3.4.39
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: workarea-storefront
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.38
33
+ version: 3.4.39
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.4.38
40
+ version: 3.4.39
41
41
  description: Provides site administration functionality for the Workarea Commerce
42
42
  Platform.
43
43
  email: