blsm-vd-core 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 601d611307527fb03f9f94545961cc3c02e7b33c
4
- data.tar.gz: abb6f44eab1cb92cbeeb041c34cf121b2d0131ac
3
+ metadata.gz: 0705fb92065d1219ae581b277ca0db6bc5bdcd0b
4
+ data.tar.gz: e8c7ba74bf9252fb59c8a9ef78c7260069c31ba5
5
5
  SHA512:
6
- metadata.gz: 23f7653eaa982c6f1c477fe48f805b1a224a14a9ebfac106b4624482243c3eebb5248d0268e3b1bc27c4c0042ee0c27a131b71f06d41b8f4885607a99520bcbb
7
- data.tar.gz: be37cb71369ebbcf24db2286ddef7f446f3d520f72a05db71a9f3ae05db2400668117544a7ecb51b5f8d33ccaaaff92cad92ec9e7cf0222fe047eff6beeacdc5
6
+ metadata.gz: bf3f8b259c348cfc285e776db69c07a6279ac86dade319f397d3906bb0e565fc4463cc9c2193fa4562a990c207db1c037cb0500087cd19dfb5806faaab43383e
7
+ data.tar.gz: 5b8e6b6546c58fba4efc4b366ed0e68e8bc2a06e7d19a16b15a7345aa5a3128f941190d9c1886cfa3264192e692c0b29e16b857a7c58c6d173c3cf924603923d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (1.0.1)
4
+ blsm-vd-core (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -25,7 +25,7 @@ module BlsmVdCore
25
25
  next if item.product_prop.nil?
26
26
  rate = item.product_prop.ordinary_rate
27
27
  rate = VdUserScore::SCORES[:SALE_OUT_DIRECT] if rate.nil? && "normal" == role
28
- fee += ((item.quantity * item.franchise_price.to_f) * rate)
28
+ fee += ((item.quantity * item.franchise_price.to_f) * rate) && item.sale_price!=0
29
29
  end
30
30
  end
31
31
  sprintf('%0.2f', fee.to_f).to_f
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsm-vd-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-17 00:00:00.000000000 Z
12
+ date: 2017-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec