blend_spreadsheet_loan_generator 0.1.107 → 0.1.111
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237e78cc969abb37217013bed00dbf7e8e66b475ad49cfef3a7a626f7bc8950a
|
4
|
+
data.tar.gz: e72e56255ba6140c48a13a3f87a49e942b61a4fd7dc3c05abb070d347f26b1ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c35d3c183d990dabf506005999500e09ee02a5825dae45503db005f843b425e3c4979a49f915249dc964b0960a0efe8417271eefa0fd1355765d857d3f6d30c1
|
7
|
+
data.tar.gz: b3a3552ea4c21554bb8e4f3912008e2ebbe5421f261583f43282269d69a27cbfbf9f40669cd0cceb0b85e80394c6ab3df8baf8e3010399381169239fb9ac1c8d
|
@@ -80,19 +80,21 @@ module BlendSpreadsheetLoanGenerator
|
|
80
80
|
due_on = values[last_paid_line + 1][:due_on] + 1.month
|
81
81
|
|
82
82
|
capital_paid = amount_paid.to_f - (
|
83
|
+
values[last_paid_line + 1][:period_interests] +
|
84
|
+
values[last_paid_line + 1][:period_fees] +
|
83
85
|
values[last_paid_line + 1][:capitalized_interests_end] +
|
84
86
|
values[last_paid_line + 1][:capitalized_fees_end]
|
85
87
|
)
|
86
|
-
capital_paid_for_ratio = amount_paid.to_f - (
|
87
|
-
|
88
|
-
|
89
|
-
)
|
88
|
+
# capital_paid_for_ratio = amount_paid.to_f - (
|
89
|
+
# values[last_paid_line + 1][:period_interests] +
|
90
|
+
# values[last_paid_line + 1][:period_fees]
|
91
|
+
# )
|
90
92
|
remaining_capital_for_ratio = (
|
91
|
-
values[last_paid_line + 1][:
|
93
|
+
values[last_paid_line + 1][:remaining_capital_start] +
|
92
94
|
values[last_paid_line + 1][:capitalized_interests_end]
|
93
95
|
)
|
94
96
|
|
95
|
-
ratio = options.fetch(:ratio,
|
97
|
+
ratio = options.fetch(:ratio, capital_paid.to_f / remaining_capital_for_ratio).to_f
|
96
98
|
guaranteed_interests_paid = ratio * total_guaranteed_interests
|
97
99
|
guaranteed_fees_paid = ratio * total_guaranteed_fees
|
98
100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blend_spreadsheet_loan_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.111
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MZiserman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|