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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecad30a1ccdfcc984f964d88abacc8da6c818b21
4
- data.tar.gz: c555f9198c15bf59c7999195fcbd66ea0dc254ec
3
+ metadata.gz: 558b15f861e807e9e05ba38e3ab6335107d20cf8
4
+ data.tar.gz: aba11f15d50442c1d5e86aeaa5032f220e38a666
5
5
  SHA512:
6
- metadata.gz: 305c258d3d8246f8f5cc1b759e1c7de817d16628f9d7acf90384c834baf536ae9c5a807a62c73218da7f63f866cdbf9b934dd55c01e30e0ee417ae8ef294486d
7
- data.tar.gz: dfb5d6612774fef53fef0e73d7cbd888206921f7058aa2d96d3046ecdfe4bf97b43b8bfa7fce66ae7c4dd775b038b9b1e317454e0bb8fa35630a834a743147f1
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(from,to)
23
- pl = ProfitLoss.new.generate(from,to)
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
@@ -1,3 +1,3 @@
1
1
  module Vfwcash
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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