finapps 0.16.2.pre → 0.16.3.pre
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/finapps/rest/cashflows.rb +4 -11
- data/lib/finapps/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: 64cfd7647ad8012bec1a5488b24827ead2d2359c
|
|
4
|
+
data.tar.gz: 63937c29ea02682610cfe9de5a944b1da43358d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fb073c6b065782a65cf49d0a012e129e0f6aa49bf77bb551ca5b5af35fa0094afbf5fef35a006f0b3cf4434e264a54228d184132f72330746677339805792aa
|
|
7
|
+
data.tar.gz: bf7e4cd89c12a1872b4f7f692b6f00eded3ec23078fb9d7cc5d04197cc8de429b72480d7e15fe1b2d48cf37c4baf32cdb5173e62e6db345cf8ff0cdb03248e41
|
|
@@ -65,21 +65,14 @@ module FinApps
|
|
|
65
65
|
|
|
66
66
|
def result_category_to_cashflow_detail(category)
|
|
67
67
|
raise 'Unable to locate category id for current category record.' unless category.key?('cat')
|
|
68
|
-
category_id = category['cat']
|
|
69
|
-
|
|
70
68
|
raise 'Unable to locate inflow amount for current category record.' unless category.key?('inflow')
|
|
71
|
-
inflow_amount = category['inflow']
|
|
72
|
-
|
|
73
69
|
raise 'Unable to locate outflow amount for current category record.' unless category.key?('outflow')
|
|
74
|
-
outflow_amount = category['outflow']
|
|
75
|
-
|
|
76
70
|
raise 'Unable to locate left over amount for current category record.' unless category.key?('diff')
|
|
77
|
-
leftover_amount = category['diff']
|
|
78
71
|
|
|
79
|
-
CashflowDetail.new({:category_id =>
|
|
80
|
-
:
|
|
81
|
-
:
|
|
82
|
-
:leftover_amount =>
|
|
72
|
+
CashflowDetail.new({:category_id => category['cat'],
|
|
73
|
+
:income_amount => category['inflow'],
|
|
74
|
+
:expenses_amount => category['outflow'],
|
|
75
|
+
:leftover_amount => category['diff']})
|
|
83
76
|
end
|
|
84
77
|
|
|
85
78
|
end
|
data/lib/finapps/version.rb
CHANGED