blend_spreadsheet_loan_generator 0.1.1 → 0.1.3
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: 7ac5eef31526ea780541bd6b4f71e329b02bb91c4b0b7feb081cae4da135c61d
|
4
|
+
data.tar.gz: 126dc892debfb35bf8ef28971c60ca3ba4c06cafa4317cd6130f82eb6a0cb636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c31602ff96812990d013e88ad8019565f9564f8c717208ec7fe0d136b5486d026120ac602cbb868e3573c092e40ac7bffaea749782f412e81a2b9e55319ad1
|
7
|
+
data.tar.gz: a2f133e5692098d008881502f03682bc1dffacf324a3a2319e2a1b89c27494700059be87ef5678e46ed323f0751bec4d1dae8de2179772a132e9180000f7f3d1
|
@@ -99,6 +99,9 @@ module BlendSpreadsheetLoanGenerator
|
|
99
99
|
worksheet[2, columns.index('period_interests') + 1] =
|
100
100
|
excel_float(values[last_paid_line + 1][:period_interests])
|
101
101
|
|
102
|
+
worksheet[2, columns.index('period_theoric_interests') + 1] =
|
103
|
+
excel_float(values[last_paid_line + 1][:period_interests])
|
104
|
+
|
102
105
|
worksheet[2, columns.index('period_fees') + 1] =
|
103
106
|
excel_float(values[last_paid_line + 1][:period_fees])
|
104
107
|
|
@@ -111,6 +114,10 @@ module BlendSpreadsheetLoanGenerator
|
|
111
114
|
worksheet[2, columns.index('capitalized_fees_start') + 1] =
|
112
115
|
excel_float(values[last_paid_line + 1][:capitalized_fees_start])
|
113
116
|
|
117
|
+
worksheet[2, columns.index('capitalized_interests_end') + 1] = excel_float(0.0)
|
118
|
+
|
119
|
+
worksheet[2, columns.index('capitalized_fees_end') + 1] = excel_float(0.0)
|
120
|
+
|
114
121
|
worksheet[2, columns.index('period_reimbursed_capitalized_interests') + 1] =
|
115
122
|
excel_float(values[last_paid_line + 1][:capitalized_interests_start])
|
116
123
|
|
@@ -24,6 +24,12 @@ module BlendSpreadsheetLoanGenerator
|
|
24
24
|
|
25
25
|
def call(amount:, duration:, rate:, **options)
|
26
26
|
begin
|
27
|
+
# session = GoogleDrive::Session.from_service_account_key(
|
28
|
+
# File.join(
|
29
|
+
# ENV['SPREADSHEET_LOAN_GENERATOR_DIR'],
|
30
|
+
# 'loan-spreadsheet-generator-6c27a42bdda7.json'
|
31
|
+
# )
|
32
|
+
# )
|
27
33
|
session = GoogleDrive::Session.from_config(
|
28
34
|
File.join(ENV['SPREADSHEET_LOAN_GENERATOR_DIR'], 'config.json')
|
29
35
|
)
|