blsm-vd-core 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/blsm-vd-core/version.rb +1 -1
- data/lib/blsm-vd-core.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7418901e98965d96d06917fc0791c9b568936b33
|
4
|
+
data.tar.gz: bf33a84b4e5466e64c71206020b6bcd80305e442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fbe8d8b8fdd3f6582c84e92143294a9b03541de02d8579d645538e611600ee9c3893dd98a8b74ec132a3e83f563c10db60a23d3ce45767c73fe9287a1e1642b
|
7
|
+
data.tar.gz: 17ccc1b148c6456bb1dad36b330b1180ee7396c7aca281465710b395b782684e633cdba00916b7ca2755e1ab17cb8a29fe5258360f00f2a56306cb32ef639346
|
data/Gemfile.lock
CHANGED
data/lib/blsm-vd-core/version.rb
CHANGED
data/lib/blsm-vd-core.rb
CHANGED
@@ -104,7 +104,7 @@ module BlsmVdCore
|
|
104
104
|
# 进货费返还
|
105
105
|
user_info = user.create_vd_user_info
|
106
106
|
if !order.line_items.blank? && user_info.purchase_fee > 0
|
107
|
-
franchise_price = order.line_items.inject(0){|result,item| result+item.franchise_price}
|
107
|
+
franchise_price = order.line_items.inject(0){|result,item| result+item.franchise_price*item.quantity}
|
108
108
|
earn_amount = franchise_price < user_info.purchase_fee ? franchise_price : user_info.purchase_fee
|
109
109
|
#创建结算项
|
110
110
|
ClearingItem.create({
|
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: 0.8.
|
4
|
+
version: 0.8.7
|
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:
|
12
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
229
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.4.
|
230
|
+
rubygems_version: 2.4.3
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: "首趣微店核心模块"
|