sales_and_orders_decorator 0.1.7 → 0.1.8
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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b680f352911576bb2fcba96b27e3c72b71ad6b
|
4
|
+
data.tar.gz: 358d6b440ed63077ed1361f345bfd51ca7cee659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f0eaa7c842f0183ae98b0834bc7c12250d8f771f03ad28e056e268520a7594f68fb3df883de91d7c02117d28271a120d6f995feceffb4c9abcd144fb74b5a7
|
7
|
+
data.tar.gz: a8591e0f76c24f1ead772e24800f60a2ef6eccff2f58827b1b6b20926c386a9b440ceb16dec46864381853e054cf9b8da235605e5039393d87eac2a076bc488a
|
@@ -211,7 +211,7 @@ class WeekSalesDecorator < BuisnessDecorator
|
|
211
211
|
#Common logic to sort the products for a week time line.
|
212
212
|
def common_method
|
213
213
|
@product_sale.each do |product|
|
214
|
-
sale_boolean = product.created_at.between?(Time.now.midnight-7.day,Time.now
|
214
|
+
sale_boolean = product.created_at.between?(Time.now.midnight-7.day,Time.now)
|
215
215
|
if(sale_boolean)
|
216
216
|
@root_sales.sales_array << product
|
217
217
|
end
|
@@ -260,7 +260,7 @@ class MonthSalesDecorator < BuisnessDecorator
|
|
260
260
|
#Common logic to sort the products for a period of last one month time line.
|
261
261
|
def common_method
|
262
262
|
@product_sale.each do |product|
|
263
|
-
sale_boolean = product.created_at.between?(Time.now.midnight-1.month,Time.now
|
263
|
+
sale_boolean = product.created_at.between?(Time.now.midnight-1.month,Time.now)
|
264
264
|
if(sale_boolean)
|
265
265
|
@root_sales.sales_array << product
|
266
266
|
end
|