vfwcash 0.6.0 → 0.6.1
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/models/gcash.rb +1 -1
- data/lib/vfwcash/api.rb +2 -6
- data/lib/vfwcash/version.rb +1 -1
- metadata +1 -3
- data/vfwcash-0.5.0.gem +0 -0
- data/vfwcash-0.5.1.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 558b15f861e807e9e05ba38e3ab6335107d20cf8
|
|
4
|
+
data.tar.gz: aba11f15d50442c1d5e86aeaa5032f220e38a666
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcad1fd4d721d52cb18661ae8921dbfa3f83bb45ec997f1a282f89bd97da53e44971ffe87b7826110012b84568740bc3392ab50a5d013818c04f637995a4d4b0
|
|
7
|
+
data.tar.gz: ad0a8c5a6b658b25658f1045bbd6c324b173aaafb516256ffc8853da65f66cdd5a8d52e7a7a302317cd457851387b4b72150e82039a5cbd0cbd6ce4db55e5f6c
|
data/lib/models/gcash.rb
CHANGED
|
@@ -193,7 +193,7 @@ module Vfwcash
|
|
|
193
193
|
today = Date.today
|
|
194
194
|
@from = options[:from].nil? ? today.beginning_of_month : Vfwcash.set_date(options[:from])
|
|
195
195
|
@to = options[:to].nil? ? today.end_of_month : Vfwcash.set_date(options[:to])
|
|
196
|
-
level = options[:lev]
|
|
196
|
+
level = options[:level] ||= options[:lev]
|
|
197
197
|
i = CashAccount.find_by(name:'Income')
|
|
198
198
|
e = CashAccount.find_by(name:'Expenses')
|
|
199
199
|
report = {"Income" => {amount:period_splits(i),total:0,children:{}},
|
data/lib/vfwcash/api.rb
CHANGED
|
@@ -19,12 +19,8 @@ module Vfwcash
|
|
|
19
19
|
pdf = Between.new(@date,@cash,from,to)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def profit_loss(
|
|
23
|
-
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def profit_loss_new(options)
|
|
27
|
-
@cash.profit_loss(options)
|
|
22
|
+
def profit_loss(report)
|
|
23
|
+
pdf = ProfitLoss.new(report)
|
|
28
24
|
end
|
|
29
25
|
|
|
30
26
|
def ledger
|
data/lib/vfwcash/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vfwcash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Alex
|
|
@@ -171,8 +171,6 @@ files:
|
|
|
171
171
|
- pdf_examples/views/checkbooks/register.html.slim
|
|
172
172
|
- pdf_examples/views/checkbooks/split.html.slim
|
|
173
173
|
- pdf_examples/views/checkbooks/summary.html.slim
|
|
174
|
-
- vfwcash-0.5.0.gem
|
|
175
|
-
- vfwcash-0.5.1.gem
|
|
176
174
|
- vfwcash.gemspec
|
|
177
175
|
homepage: ''
|
|
178
176
|
licenses:
|
data/vfwcash-0.5.0.gem
DELETED
|
Binary file
|
data/vfwcash-0.5.1.gem
DELETED
|
Binary file
|