vyapari 0.1.5dev8 → 0.1.5dev9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/invoice.rb +1 -1
- data/app/models/stock_entry.rb +1 -1
- data/lib/vyapari/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: 28ffe643842fcbd0f79cd728537aba00773433f3
|
4
|
+
data.tar.gz: 638c38653a4c40346741351bf787ff4716b0d5d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 658da9c47f160b5f409388851aa626144f485f17f168f337f0b519d0e2be0d5f0c920f82d1305376f4880c4d36e52a7e7d8c1120811063365d2dfdd05bb799a0
|
7
|
+
data.tar.gz: fc7d1306d50295df05cac0a76b429c55833408cd7bf42be385af5eb215aff2438ca2b840e29b9792cef7a32cf929f57813e46a6aae33b183f357491f030d6965
|
data/app/models/invoice.rb
CHANGED
@@ -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.
|
60
|
+
scope :today, lambda { where('DATE(created_at) = ?', Date.current.in_time_zone)}
|
61
61
|
|
62
62
|
# ------------------
|
63
63
|
# Instance Methods
|
data/app/models/stock_entry.rb
CHANGED
@@ -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.
|
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
|
|
data/lib/vyapari/version.rb
CHANGED