item_builder 0.1.22 → 0.1.23
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/get_quantity_service.rb +2 -1
- data/lib/item_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6780bd1811cc5b5a70e34a875fbecc9f492d82c0755b80465fe06565f7f58ee
|
4
|
+
data.tar.gz: 0b45360d1a8651670204a8fa8638ea5454978b90122837d8447f0284ea39fa9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc7850d78db626648be0b915bf8a8f72d928268892d5360a83b071f65b2e6ba645505fbafae82548da165b0d7ed99f83f1ecdf195cff03c575fa7e4b60d3d7a7
|
7
|
+
data.tar.gz: 7cba37504ce2c06fec5d2bc5d9be2e80844629a214c1df12c9996147c4b779947867451d24575a30aea1d4455d7be26c5c118786d4491435f45d9ec544a01530
|
@@ -78,7 +78,8 @@ class ItemBuilder
|
|
78
78
|
if @bundle_variants.present?
|
79
79
|
qty_list = []
|
80
80
|
@bundle_variants.each do |bvr|
|
81
|
-
|
81
|
+
warehouse_space = wh_space.select {|ws| ws.item_variant_id == bvr.variant_id }.first
|
82
|
+
qty = warehouse_space.quantity if warehouse_space.present?
|
82
83
|
qty ||= 0
|
83
84
|
qty = qty / bvr.unit
|
84
85
|
qty_list.push(qty)
|
data/lib/item_builder/version.rb
CHANGED