blsm-vd-core 0.6.4 → 0.6.5

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: a9b09a58a5a5ec9e0160d3b300e3671dd4a84cd8
4
- data.tar.gz: 67889e69e7cfdb61f6578681df863926346e1470
3
+ metadata.gz: 2b2f4acad51281973e6d02817c4c08ee66939336
4
+ data.tar.gz: 43ebe2ab0e5e1865207fe1f50daf0ab516432ad4
5
5
  SHA512:
6
- metadata.gz: 66cf9fd87324df8032c18dec0e078e625a93e11280a7af171b9540b82a8b374d3fbf5db8fd8ee0da68b2ff98f1305120d8db971b8c66ed2bea926deac093c6b0
7
- data.tar.gz: ac5cc2c0a3057e0926fd3a79584f128b198a61a400ae55123bf8cc8f35f1a45fe02ea7713ee78822dcdad0089a5ea2bafe350e1e8fb64d5078ed81f17014f140
6
+ metadata.gz: 4eaff6e9c3946323ff45e372ec824b932b2eba38ba6fb35babb12678c14d67445295df87fab4ff97d047ddb85d84305333db86195ba6dcdd09c440c858d711a9
7
+ data.tar.gz: 79c77ed0e4713460f048bc3f8c70680aabdc14de45ec34ea5325cade02566206be5fdf3a509c9a3414c488ea7eb3cdf32abbd6cfaaab1629ca01b22650317476
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -328,7 +328,12 @@ module BlsmVdCore
328
328
  VdUserInfo.find_by_id(seller_info.id) { |info| info.sync_shop_state }
329
329
 
330
330
  #分销额增加,更新未发出货物的(state=CREATE)分成比率
331
- seller.clearing_items.where(:state => "WAIT_TO_SURE").update_all(:rate_of_profit => seller_info.profit_rate)
331
+ seller.clearing_items.where(:state => "WAIT_TO_SURE").each do |item|
332
+ unless item.order.ubox_order?
333
+ item.update_attributes({:rate_of_profit => seller_info.profit_rate,
334
+ :earn_amount => item.order.jm_profit})
335
+ end
336
+ end
332
337
 
333
338
  #安全库录入信息
334
339
  VdInfoSec.committed(vd_transaction)
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.6.4
4
+ version: 0.6.5
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: 2016-07-02 00:00:00.000000000 Z
12
+ date: 2016-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.2.2
222
+ rubygems_version: 2.4.3
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: "首趣微店核心模块"