vyapari 0.1.5dev8 → 0.1.5dev9

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: e3f2f3a46d81aa05666be22078453d313b07f690
4
- data.tar.gz: 18f1f8438cd8a37174c5c9b6472f0995971eb080
3
+ metadata.gz: 28ffe643842fcbd0f79cd728537aba00773433f3
4
+ data.tar.gz: 638c38653a4c40346741351bf787ff4716b0d5d5
5
5
  SHA512:
6
- metadata.gz: 2cf6df83b781ff72492a6eab935ef8e339526228bd7a90f9c61ec94cd324dd51f23ef8ac56356ce8978d5235c21d3f68ce08b86ca54fe4a3ce56a2ce41073c36
7
- data.tar.gz: 315b00a715c43a87a070cf5427e89ccce08f3725116660a1498f2defdbe2e2d46c23f4a5bf5bf9ea431e2c8e151813a95624dfbbcf0003cebdfe8cde161443fe
6
+ metadata.gz: 658da9c47f160b5f409388851aa626144f485f17f168f337f0b519d0e2be0d5f0c920f82d1305376f4880c4d36e52a7e7d8c1120811063365d2dfdd05bb799a0
7
+ data.tar.gz: fc7d1306d50295df05cac0a76b429c55833408cd7bf42be385af5eb215aff2438ca2b840e29b9792cef7a32cf929f57813e46a6aae33b183f357491f030d6965
@@ -57,7 +57,7 @@ class Invoice < Vyapari::ApplicationRecord
57
57
  scope :payment_method, lambda { |pm| where("LOWER(payment_method)='#{payment_method}'") }
58
58
 
59
59
  scope :this_month, lambda { where("created_at >= ? AND created_at <= ?", Time.zone.now.beginning_of_month, Time.zone.now.end_of_month) }
60
- scope :today, lambda { where('DATE(created_at) = ?', Date.today)}
60
+ scope :today, lambda { where('DATE(created_at) = ?', Date.current.in_time_zone)}
61
61
 
62
62
  # ------------------
63
63
  # Instance Methods
@@ -51,7 +51,7 @@ class StockEntry < Vyapari::ApplicationRecord
51
51
  scope :in_stock, -> { where(status: [ACTIVE, RECEIVED, RETURNED]) }
52
52
 
53
53
  scope :this_month, lambda { where("created_at >= ? AND created_at <= ?", Time.zone.now.beginning_of_month, Time.zone.now.end_of_month) }
54
- scope :today, lambda { where('DATE(created_at) = ?', Date.today)}
54
+ scope :today, lambda { where('DATE(created_at) = ?', Date.current.in_time_zone)}
55
55
 
56
56
  def self.save_row_data(row)
57
57
 
@@ -1,3 +1,3 @@
1
1
  module Vyapari
2
- VERSION = '0.1.5dev8'
2
+ VERSION = '0.1.5dev9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vyapari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5dev8
4
+ version: 0.1.5dev9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma