blend_spreadsheet_loan_generator 0.1.4 → 0.1.5
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: 1798a1b582151dd12de060249962938514521e1ce61019f2ce4aa4efd25077ea
|
4
|
+
data.tar.gz: 76d71d3e6e5c1c87c618878222a48b2052f6fd55458883a7f9f145f42171267b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b12dd6b05d15e399ad9e572abdb3fba305f81695014f7075f7fa3d6af0f0d7b29c77a0082bc1d12267069f2df9bbc5d5028fc8d4f8c4742411e910b6a33a7e
|
7
|
+
data.tar.gz: 193804f583041fc85a1d4bd41b98a287f0ffdf42fe5f7b8ef3f95420196e44fbd15cf58cdb985673c32f35c6347d70b72ded6e8201ec0cd17f967e2ffd2ed9f8
|
@@ -97,13 +97,13 @@ module BlendSpreadsheetLoanGenerator
|
|
97
97
|
excel_float(values[last_paid_line][:remaining_capital_end] - capital_paid)
|
98
98
|
|
99
99
|
worksheet[2, columns.index('period_interests') + 1] =
|
100
|
-
|
100
|
+
"=ARRONDI(#{period_theoric_interests(line)}; 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
109
|
excel_float(capital_paid)
|
@@ -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])
|