blend_spreadsheet_loan_generator 0.1.4 → 0.1.9
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: 66fa3389501501c3ba4841e8a860c6eee985125d428753fb7bae2b6434fd2527
|
4
|
+
data.tar.gz: bce7e8497a6b967039b3a6b52d1292ce3e5d0e27e0710e6912116529187d4f71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38b9b0ab76e606d58df75ceedcef4220bf965372d645ced7f9c5fba35342c690f6a2bd52a0a87cff3696e7ba9156c601735236b3ae54926d6dc6b9af58cb58d7
|
7
|
+
data.tar.gz: ba20c6e30bf6c7eaa3e3c776da4b3f9b0a1a60721e6c207aaec96e71bddfeea8937e88bcd81a34752764dc6b6643980bcc5ea10ffb4b087bd38bc1313e43c90d
|
@@ -94,19 +94,19 @@ module BlendSpreadsheetLoanGenerator
|
|
94
94
|
excel_float(values[last_paid_line][:remaining_capital_end])
|
95
95
|
|
96
96
|
worksheet[2, columns.index('remaining_capital_end') + 1] =
|
97
|
-
excel_float(values[last_paid_line][:remaining_capital_end] - capital_paid)
|
97
|
+
"=#{excel_float(values[last_paid_line][:remaining_capital_end] - capital_paid)} - #{period_interests(2)} - #{period_fees(2)}"
|
98
98
|
|
99
99
|
worksheet[2, columns.index('period_interests') + 1] =
|
100
|
-
|
100
|
+
"=ARRONDI(#{period_theoric_interests(2)}; 2)"
|
101
101
|
|
102
102
|
worksheet[2, columns.index('period_theoric_interests') + 1] =
|
103
|
-
excel_float(values[last_paid_line + 1][:period_interests])
|
103
|
+
"=#{excel_float(values[last_paid_line + 1][:period_interests])} + #{period_calculated_interests(2)}"
|
104
104
|
|
105
105
|
worksheet[2, columns.index('period_fees') + 1] =
|
106
|
-
excel_float(values[last_paid_line + 1][:period_fees])
|
106
|
+
"=#{excel_float(values[last_paid_line + 1][:period_fees])} + #{period_calculated_fees(2)}"
|
107
107
|
|
108
108
|
worksheet[2, columns.index('period_capital') + 1] =
|
109
|
-
excel_float(capital_paid)
|
109
|
+
"=#{excel_float(capital_paid)} - #{period_interests(2)} - #{period_fees(2)}"
|
110
110
|
|
111
111
|
worksheet[2, columns.index('capitalized_interests_start') + 1] =
|
112
112
|
excel_float(values[last_paid_line + 1][:capitalized_interests_start])
|
@@ -114,21 +114,9 @@ module BlendSpreadsheetLoanGenerator
|
|
114
114
|
worksheet[2, columns.index('capitalized_fees_start') + 1] =
|
115
115
|
excel_float(values[last_paid_line + 1][:capitalized_fees_start])
|
116
116
|
|
117
|
-
worksheet[2, columns.index('capitalized_interests_end') + 1] = (
|
118
|
-
if loan.deferred_and_capitalized > 0
|
119
|
-
"=#{period_calculated_interests(2)}"
|
120
|
-
else
|
121
|
-
excel_float(0.0)
|
122
|
-
end
|
123
|
-
)
|
117
|
+
worksheet[2, columns.index('capitalized_interests_end') + 1] = excel_float(0.0)
|
124
118
|
|
125
|
-
worksheet[2, columns.index('capitalized_fees_end') + 1] = (
|
126
|
-
if loan.deferred_and_capitalized > 0
|
127
|
-
"=#{period_calculated_fees(2)}"
|
128
|
-
else
|
129
|
-
excel_float(0.0)
|
130
|
-
end
|
131
|
-
)
|
119
|
+
worksheet[2, columns.index('capitalized_fees_end') + 1] = excel_float(0.0)
|
132
120
|
|
133
121
|
worksheet[2, columns.index('period_reimbursed_capitalized_interests') + 1] =
|
134
122
|
excel_float(values[last_paid_line + 1][:capitalized_interests_start])
|