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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7df8c1b136879fca6c52d3234b900f848dba2812
4
- data.tar.gz: 0b1c80978c00461d5a9e870fa21fcc679f8e95e2
3
+ metadata.gz: 35b680f352911576bb2fcba96b27e3c72b71ad6b
4
+ data.tar.gz: 358d6b440ed63077ed1361f345bfd51ca7cee659
5
5
  SHA512:
6
- metadata.gz: af0eabaa7620dd81bb954e9a12c966273a20a7731eca28de1ec97fec6eb339973b87eb17f3528246d6caa1acdff51fb7543d2ec9555868aeeff65f1f99c78bd9
7
- data.tar.gz: 38a1437a034be0a3cf86e20c751b3f082d36d74a5510214813e1bbd2ed6de92052638308a92761834bd36de43a594a55dca76a1623e10cf23ca6e44c10021fe9
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.midnight)
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.midnight)
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
@@ -1,3 +1,3 @@
1
1
  module SalesAndOrdersDecorator
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sales_and_orders_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishore Kumar