vfwcash 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01cc5a2a237aac00aca7a215901eb9a4a50ae8be
4
- data.tar.gz: c678096ccdc03dc9f812d54c7a6f3bd2647b2345
3
+ metadata.gz: d7d4a620c1ace4924ad36cec018ba0baeb826224
4
+ data.tar.gz: 358ac7d95333880432836b1e27ddc3b7f283db28
5
5
  SHA512:
6
- metadata.gz: deae047d8fa465ddb45d29b0e19c446c13f3db7f434e49a1fb2124debb51046825717bb0803b8b22d3762331f5f734a910b9e74b7fe97fb00337197b83a3fa50
7
- data.tar.gz: 56e56720a816258dbbfa67b6960eef57143edc5b936217bcf642a5f094eec7e2cd58934dc07ce644a1dfaa8af5e466d91debdc784d8bdc49f67ef57e0d0dcdb0
6
+ metadata.gz: 54d9d66203d1fbb5a157d54223202ad8fd1ed99ecb0f57dc32c2506278ef4901b81c503f35d3f87da80f0b487ba5b0da5ca05b43047c41661821d5f75bc5f8ae
7
+ data.tar.gz: 81ef076b4a2bb537afdc634a8e5007c9b2a69fd7dcf6fd78a08a7a339558f54e59ebd7e57cf22de28fcda6018ba175f06b842774745722c27e070019cc3e09c5
@@ -3,12 +3,12 @@ class Split < SqliteBase
3
3
  belongs_to :tran, foreign_key: 'tx_guid'
4
4
  belongs_to :cash_account, foreign_key: 'account_guid'
5
5
 
6
- attribute :rdate, :date
7
- after_find do |s|
8
- if s.reconcile_date.present?
9
- s.rdate = Date.parse(s.reconcile_date)
10
- end
11
- end
6
+ # attribute :rdate, :date
7
+ # after_find do |s|
8
+ # if s.reconcile_date.present?
9
+ # s.rdate = Date.parse(s.reconcile_date)
10
+ # end
11
+ # end
12
12
 
13
13
  def amount
14
14
  return "#{self.value_num / self.value_denom}.#{self.value_num % self.value_denom}"
@@ -4,12 +4,12 @@ class Tran < SqliteBase
4
4
 
5
5
  has_many :splits, foreign_key: 'tx_guid'
6
6
 
7
- attribute :date, :date
8
- after_find do |t|
9
- if t.post_date.present?
10
- t.date = Date.parse(t.post_date)
11
- end
12
- end
7
+ # attribute :date, :date
8
+ # after_find do |t|
9
+ # if t.post_date.present?
10
+ # t.date = Date.parse(t.post_date)
11
+ # end
12
+ # end
13
13
 
14
14
 
15
15
  # def self.month_transactions(date)
@@ -18,9 +18,9 @@ class Tran < SqliteBase
18
18
  # end
19
19
 
20
20
  def self.month_transactions(date)
21
- bom = date.beginning_of_month.to_s(:db)
22
- eom = date.end_of_month.to_s(:db)
23
- trans = Tran.where(post_date:(bom..eom)).order(:post_date,:num)
21
+ bom = date.beginning_of_month.to_datetime.beginning_of_day.to_s(:db)
22
+ eom = date.end_of_month.to_s(:db).to_datetime.end_of_day.to_s(:db)
23
+ trans = Tran.where(post_date: bom..eom ).order(:post_date,:num)
24
24
  end
25
25
 
26
26
 
@@ -52,6 +52,9 @@ module Vfwcash
52
52
  db = Tran.last.post_date.include?('-')
53
53
  from = Vfwcash.set_date(from)
54
54
  to = Vfwcash.set_date(to)
55
+ from = from.to_datetime.beginning_of_day
56
+ to = to.to_datetime.end_of_day
57
+
55
58
  if db
56
59
  return (from.to_s(:db))..(to.to_s(:db))
57
60
  else
@@ -1,3 +1,3 @@
1
1
  module Vfwcash
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vfwcash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Alex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-25 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -173,6 +173,7 @@ files:
173
173
  - pdf_examples/views/checkbooks/summary.html.slim
174
174
  - vfwcash-0.6.1.gem
175
175
  - vfwcash-0.6.2.gem
176
+ - vfwcash-0.7.1.gem
176
177
  - vfwcash.gemspec
177
178
  homepage: ''
178
179
  licenses: