xsys 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd364aa2e5cb7fcd974198879cb7ad2d9be8c64d
4
- data.tar.gz: c2502fa76e91033154a332cd3b2393488fe6504c
3
+ metadata.gz: df21cecbc2ab26c4a2b7deea0d2384c8b2321b0c
4
+ data.tar.gz: 0b02379f194c553e7ec228db5666e5521a462ea8
5
5
  SHA512:
6
- metadata.gz: 3655bc63371d03bf0bbf2e1547393891c84ac73ab94198cfaef166332b8314f14c04316181fc553ef788f858f674243d154d93d9d751bd32477eb52b2cfe2aa9
7
- data.tar.gz: 605fb8b8c0706a52f268d77463767f808a050c63da6281caa90f90e0f38fb4e3d848f72c0a54ea9057a9420a29f0329a2d5ae66478e911d35fc300db994ef449
6
+ metadata.gz: 41214d24bda50a9152bfd859b28898f517bd6d512740c7c247500661bab2a5a1c291b1a39c2ff7e3af419ef47846601327562e0068ba7e92271a2953ccd8774f
7
+ data.tar.gz: f6ef097b6905b9db003960e5f3dfc6160a45d87eca5188deb9e7bd5dd4daa28fb39cfc199a41e86e35b83328ac10616b4006f17428506c279998a29a29c18338
@@ -221,3 +221,7 @@
221
221
  ## v0.6.2
222
222
 
223
223
  * Added param to skip exhibition on sellable stocks quantity
224
+
225
+ ## v0.6.3
226
+
227
+ * Bugfix skip exhibition stock
@@ -42,10 +42,12 @@ module Xsys
42
42
  def sellable_stocks_quantity(options={})
43
43
  result = 0
44
44
  online_shop_codes = ['OL']
45
+ deposit_shop_codes = ['ADM']
46
+ no_exhibition_shop_codes = online_shop_codes + deposit_shop_codes
45
47
 
46
48
  sellable_stocks.each do |stock|
47
49
  if options[:skip_exhibition]
48
- if online_shop_codes.include?(stock.shop_code)
50
+ if no_exhibition_shop_codes.include?(stock.shop_code)
49
51
  result += stock.quantity
50
52
  elsif stock.quantity > 0
51
53
  result += (stock.quantity - 1)
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick