blend_spreadsheet_loan_generator 0.1.36 → 0.1.37
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: 27190e62c6f022886585a05178b48b3145887fc2299d32dd184572d034f8a22f
|
4
|
+
data.tar.gz: 4208f3be04bc68c700ad262fcd90e7e6130c3eb3414ef5ac8ae46035a6d7cb30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 075fae95ddf44ce9ce1b360debd2942c5cfbb94a623f9f37519f74109db3f43cab3624953c383a14dfc829819a1e3d363e569aada4305ea63755313ccc58df3b
|
7
|
+
data.tar.gz: 1c2721d5083b1e9e5bda9055dcc9ae3afe69744fb3b98036373a6b57f18e2d6dce2e0d34e0894cff7e21c8dd376b5fe9ea3e9790935e85cf721dc6456328327c
|
@@ -163,8 +163,6 @@ module BlendSpreadsheetLoanGenerator
|
|
163
163
|
term = line - 1
|
164
164
|
if term <= loan.deferred_and_capitalized
|
165
165
|
excel_float(0.0)
|
166
|
-
elsif loan.deferred_and_capitalized > 0 && loan.deferred.present?
|
167
|
-
|
168
166
|
else
|
169
167
|
"=ARRONDI(#{period_calculated_fees(line)}; 2)"
|
170
168
|
end
|
@@ -176,6 +174,12 @@ module BlendSpreadsheetLoanGenerator
|
|
176
174
|
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)} + #{period_fees_rate(line)})^#{loan.deferred_and_capitalized} * (#{period_rate(line)} + #{period_fees_rate(line)})"
|
177
175
|
without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{loan.deferred_and_capitalized} * #{period_rate(line)}"
|
178
176
|
"=#{with_fees} - #{without_fees}"
|
177
|
+
elsif loan.bullet? && term == loan.duration
|
178
|
+
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_fees_rate(line)} + #{period_rate(line)})^#{index(line)}"
|
179
|
+
without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{index(line)}"
|
180
|
+
current = "#{with_fees} - #{without_fees}"
|
181
|
+
|
182
|
+
"=#{current} - #{capitalized_fees_end(line - 1)}"
|
179
183
|
else
|
180
184
|
amount_to_capitalize = [
|
181
185
|
'(',
|
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.37
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|