sales_and_orders_decorator 0.1.4 → 0.1.5

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: 05e350dd6294e496a203c49be9ca501263219294
4
- data.tar.gz: 2d2a90b80ad02d6f91dd21cce03bd0ad68f67b3b
3
+ metadata.gz: 1ff8ba4093efae2d569b93b25d4403b4bada9d59
4
+ data.tar.gz: 1515025b932770a1373fbde6fdf858759d5550bc
5
5
  SHA512:
6
- metadata.gz: 4ca8161027b04abe0824c641237964ca0d6fc86adb358003f01dc5f9edbedfd3449f1430f8c8943d01fc6a0b493b4ad0396175e05399da5380f667ba80b723c8
7
- data.tar.gz: b8a816093ffd9ca29ce74bf75b2f9647b9b5936bf436f2a478e0c4e24856c394cca532dbdb773031f432dad757ec52d6e57647cf5ba005332b3427a1da72c6b9
6
+ metadata.gz: 37ca7e1fc4d8c6d7e98378157fa6f4dba3d29240a859331c69ed1ed51485cff04fe0f89a40318673400e7d7a58846e2f6f999bf0471f476520dcfdfc6fbe5359
7
+ data.tar.gz: 0d987c79fdee84f22a6bc67629add8c3f7b05576ecddd18acb3f0b91133fbc5283148177d6f0f3755d91cd13078e9be586a895de356834051a95e75e6a648432
@@ -115,7 +115,7 @@ class BuisnessDecorator
115
115
  @totalSale_counter += sd.total_price
116
116
  @totalSale_quantity += sd.quantity
117
117
  end
118
- @totalProductSold = @totalSale_quantity * 7
118
+ @totalProductSold = @totalSale_quantity * 25
119
119
  @profit_counter = @totalSale_counter - @totalProductSold
120
120
  end
121
121
 
@@ -123,7 +123,7 @@ class BuisnessDecorator
123
123
  def check_offer
124
124
  @root_sales.sales_array.each do |sd|
125
125
  prod = Product.find(sd.product_id)
126
- if(prod.offerPrice > 7)
126
+ if(prod.offerPrice > 25)
127
127
  @offeredSale_counter +=sd.quantity
128
128
  else
129
129
  @nonOfferedSale_counter +=sd.quantity
@@ -1,3 +1,3 @@
1
1
  module SalesAndOrdersDecorator
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sales_and_orders_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishore Kumar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler