blend_spreadsheet_loan_generator 0.1.16 → 0.1.17
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: ab1273f7e038e128f03cb7880db2c0233968e48369f564ddb2e9626df330b8dd
|
4
|
+
data.tar.gz: 90ab851c0a9bd1dd2800a28fe7e293391815ee97072e8be1cd902b0677d23d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a322704b32486bc37ab697f1fa625646cd424fb12696d822bca1cb44693f59c0ca66e1cf6cb4ea108f586d7904b39e167ce974563e765cc0f3d17d5d581e61
|
7
|
+
data.tar.gz: ceeef05aa0320b1823cb250d74505e24548f5812334e4efd24f5af9f480762bbd6a5533d8041a502e5110a89f21ced424ffc444645efa5361fefb19bb5b580b9
|
@@ -47,7 +47,7 @@ module BlendSpreadsheetLoanGenerator
|
|
47
47
|
guaranteed_line = values.index { |term| term[:index] == options.fetch(:guaranteed_terms, nil) } || nil
|
48
48
|
total_guaranteed_interests = (
|
49
49
|
if guaranteed_line.present? && guaranteed_line > last_paid_line
|
50
|
-
values[last_paid_line..guaranteed_line].sum
|
50
|
+
values[(last_paid_line + 1)..guaranteed_line].sum { |value| value[:period_calculated_interests] }
|
51
51
|
else
|
52
52
|
0
|
53
53
|
end
|