blend_spreadsheet_loan_generator 0.1.3 → 0.1.4

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: 7ac5eef31526ea780541bd6b4f71e329b02bb91c4b0b7feb081cae4da135c61d
4
- data.tar.gz: 126dc892debfb35bf8ef28971c60ca3ba4c06cafa4317cd6130f82eb6a0cb636
3
+ metadata.gz: 710c06e4ba1b3b60a140bcc5d3ea24480ab2909f5a63635c3659e3cf79d42f3c
4
+ data.tar.gz: 176e5f7b416ce26c42956e0b8323be410f32daa9f79dfeeb23a15684c6b6502b
5
5
  SHA512:
6
- metadata.gz: 67c31602ff96812990d013e88ad8019565f9564f8c717208ec7fe0d136b5486d026120ac602cbb868e3573c092e40ac7bffaea749782f412e81a2b9e55319ad1
7
- data.tar.gz: a2f133e5692098d008881502f03682bc1dffacf324a3a2319e2a1b89c27494700059be87ef5678e46ed323f0751bec4d1dae8de2179772a132e9180000f7f3d1
6
+ metadata.gz: 2cb53e0599e76b8157fbd37cae6a7ca835be8b189e4a9c40d8fa7336cca42dfccbc0c264119a8c79580bc09e01afb5b206128dad8dea1ce6cd83d008d3301d7e
7
+ data.tar.gz: 39fe4477ba7182613dd095fc9ac8831cbb40d1922e3eeaf2478272eddbf2041cb7d3f17f38f68826a21f1416ed00d15b27caaef33663ad6efce9557044e74aec
@@ -114,9 +114,21 @@ 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] = excel_float(0.0)
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
+ )
118
124
 
119
- worksheet[2, columns.index('capitalized_fees_end') + 1] = excel_float(0.0)
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
+ )
120
132
 
121
133
  worksheet[2, columns.index('period_reimbursed_capitalized_interests') + 1] =
122
134
  excel_float(values[last_paid_line + 1][:capitalized_interests_start])
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman