item_builder_mwh 0.1.49 → 0.1.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/item_builder_mwh/get_quantity_service.rb +2 -2
- data/lib/item_builder_mwh/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17bf022473ba05313e95dbd6fdc984e0aa82c55431eca029856e8fbd2ad3feeb
|
4
|
+
data.tar.gz: 1b9c71942d2d9a5a9f1909e507ea35aa10386b43b6148c6d0c7da87e08f0a0b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212634577b6c1cc744c644a5e6ad99ef2c86bd1e80911f2aa4a3ee019101c3186ede76a638eb72eb724b524975a8741198f640c87b52ff5f59390ddd80f8ec84
|
7
|
+
data.tar.gz: 128aa92ddd7d877e30214c5739a8b5db7574b58f74be05271a937f8e13332460c9b72afa6fb72126ad64e1ae26f657cde87a54c02202559e5abcbe75f386abc6
|
@@ -151,7 +151,7 @@ class ItemBuilderMwh
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def appropriate_allocated_stock(existing_allocated_stock)
|
154
|
-
map_store_ids = VariantListing.where(id: existing_allocated_stock.map(&:variant_association_id)).
|
154
|
+
map_store_ids = VariantListing.where(id: existing_allocated_stock.map(&:variant_association_id)).pluck(:id, :profile_channel_association_id).to_h
|
155
155
|
wh_mapping_by_store = wh_mapping_by_store(map_store_ids.values.flatten.uniq)
|
156
156
|
existing_allocated_stock.select do |allocated_stock|
|
157
157
|
wh_mapping_by_store[map_store_ids[allocated_stock.variant_association_id]] == wh_ids&.first
|
@@ -164,7 +164,7 @@ class ItemBuilderMwh
|
|
164
164
|
.where(
|
165
165
|
profile_channel_association_id: ids,
|
166
166
|
warehouses: { consignment: false }
|
167
|
-
).
|
167
|
+
).pluck(:profile_channel_association_id, :warehouse_id).to_h
|
168
168
|
end
|
169
169
|
end
|
170
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: item_builder_mwh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Ivander
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -159,10 +159,10 @@ files:
|
|
159
159
|
- lib/item_builder_mwh/version.rb
|
160
160
|
- lib/item_builder_mwh/zalora_quantity_service.rb
|
161
161
|
- lib/item_builder_mwh/zilingo_quantity_service.rb
|
162
|
-
homepage:
|
162
|
+
homepage:
|
163
163
|
licenses: []
|
164
164
|
metadata: {}
|
165
|
-
post_install_message:
|
165
|
+
post_install_message:
|
166
166
|
rdoc_options: []
|
167
167
|
require_paths:
|
168
168
|
- lib
|
@@ -177,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
181
|
-
signing_key:
|
180
|
+
rubygems_version: 3.3.7
|
181
|
+
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Item Builder Multiwarehouse
|
184
184
|
test_files: []
|