sales 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/bin/sale +2 -2
  3. metadata +2 -2
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
data/bin/sale CHANGED
@@ -179,12 +179,12 @@ def compute_and_present(reports)
179
179
  total_free_units += item[:units]
180
180
  else
181
181
  total_payed_units += item[:units]
182
- alltime_proceeds_per_currency[item[:currency_of_proceeds]] += item[:developer_proceeds]
182
+ alltime_proceeds_per_currency[item[:currency_of_proceeds]] += item[:developer_proceeds] * item[:units]
183
183
  end
184
184
  elsif INAPP_SALE_IDENTS.include? item[:product_type_id]
185
185
  app[:sold_units] += item[:units]
186
186
  total_inapp_units += item[:units]
187
- alltime_proceeds_per_currency[item[:currency_of_proceeds]] += item[:developer_proceeds]
187
+ alltime_proceeds_per_currency[item[:currency_of_proceeds]] += item[:developer_proceeds] * item[:units]
188
188
  if item[:product_type_id] == "IAY" #InAppPurchase
189
189
  alltime_renewables += item[:units]
190
190
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sales
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mihael
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-07-09 00:00:00 Z
13
+ date: 2012-07-18 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: iTunes Connect Command Line Autoingestion Script. Computes and presents totals. Uses Autoingestion.class for report downloading.