blend_spreadsheet_loan_generator 0.1.104 → 0.1.105

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: f3b33869e16c21139b0b1a8cbe50780acbb3eb84fc1c83493f9cf0fa0744d60e
4
- data.tar.gz: b93a53cded0a95d38b16937ad69b3d37b32bda8345dedbcacc7449723b0df5d7
3
+ metadata.gz: 72957cc9d2f27e41c08296925655eb7a260e7fdaef6c0930dcc308f9a7c8ab25
4
+ data.tar.gz: ff081b04d72056d4de09f73e026069c4eae6151f1a684fab698aa796065ae635
5
5
  SHA512:
6
- metadata.gz: 95a633cd848b3cb9006ff4d8685895ba76845b3074c9b2320db14d2b54fcc5f5d51658b449bda65a2340431742c3fbc481a6974f02afa5f31217bbea85eb8388
7
- data.tar.gz: c37ccf9331d18143f8b67f65d9ca1a30dff07ca28cbcca944f84630bade18ac2b46783150183f6a8da907e5b2f5fe5b51ce22404c6e799f7123078dd789463db
6
+ metadata.gz: 22fd450d7087a51b999348bb324a9d38726ea33425ba85e77c77026a871e7ff4ff0fb2e2ff685aa7110d3920efaeccabce75382e15f4f3ee8dc2558e27dbd04c
7
+ data.tar.gz: 12e57b1f793e676501f7d1c127052eaf0d1f313b9a10a90238c1aa6164fb0ab2bd6082a79cde7b3c1dc78522d9044b02e1b6ee978b839f3d222a38dda537c0de
@@ -180,7 +180,7 @@ module BlendSpreadsheetLoanGenerator
180
180
 
181
181
  "=#{current} - #{capitalized_fees_start(line)}"
182
182
  elsif loan.deferred_and_capitalized > 0 && term > loan.deferred_and_capitalized
183
- index = first_term_skip ? loan.deferred_and_capitalized : loan.deferred_and_capitalized - 1
183
+ index = first_term_skip ? loan.deferred_and_capitalized - 1 : loan.deferred_and_capitalized
184
184
 
185
185
  with_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)} + #{period_fees_rate(line)})^#{index} * (#{period_rate(line)} + #{period_fees_rate(line)})"
186
186
  without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{index} * #{period_rate(line)}"
@@ -74,7 +74,7 @@ module BlendSpreadsheetLoanGenerator
74
74
 
75
75
  @formula = Formula.new(loan: loan)
76
76
 
77
- apply_formulas(worksheet: worksheet, first_term_skip: true)
77
+ apply_formulas(worksheet: worksheet)
78
78
  apply_formats(worksheet: worksheet)
79
79
 
80
80
  worksheet.save
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.104'.freeze
4
+ VERSION = '0.1.105'.freeze
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.104
4
+ version: 0.1.105
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman