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 +4 -4
- data/lib/sales_and_orders_decorator.rb +2 -2
- data/lib/sales_and_orders_decorator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff8ba4093efae2d569b93b25d4403b4bada9d59
|
4
|
+
data.tar.gz: 1515025b932770a1373fbde6fdf858759d5550bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 *
|
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 >
|
126
|
+
if(prod.offerPrice > 25)
|
127
127
|
@offeredSale_counter +=sd.quantity
|
128
128
|
else
|
129
129
|
@nonOfferedSale_counter +=sd.quantity
|
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
|
+
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-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|