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: fa93374c882440fc87abcbb6ec11e85de16e22c19e821b2e8765bc2fba3547b9
4
- data.tar.gz: db1b12e7bc1d1c9b28bb5ea1ae6bc53664f1f36c2afe188015efe16d9d5d17eb
3
+ metadata.gz: 7ac5eef31526ea780541bd6b4f71e329b02bb91c4b0b7feb081cae4da135c61d
4
+ data.tar.gz: 126dc892debfb35bf8ef28971c60ca3ba4c06cafa4317cd6130f82eb6a0cb636
5
5
  SHA512:
6
- metadata.gz: 052cfde4298899b5726648e587ebae068d78cb47226160b381a4195b18543f4c59cd4d7ffebba35e9cb082b4acbc54573eda2049a7b41cd8e66db078f3e4a66f
7
- data.tar.gz: 935c17914bef2ba43bffa0d1f57eba6b578e1b6d91a3e8882155c77dbeea9a3b0739bb1c0e2443d20f321a595386067cdb060166824347f10177fe9422b8dfa8
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
  )
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.3'
5
5
 
6
6
  class Version < Dry::CLI::Command
7
7
  desc 'Print version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blend_spreadsheet_loan_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman