blend_spreadsheet_loan_generator 0.1.102 → 0.1.103

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: bfe713bbe1e4e57601559e592fc0a5fc621b5e72e151bb100ac341c6e29b8690
4
- data.tar.gz: 409a0e1d8cc8a91926638577fb97d18794b25338c786547550f18dd849f525ef
3
+ metadata.gz: a53645750943fd847c6d787a9bbc73f23982daa5793ecb37f92100167d905b9e
4
+ data.tar.gz: 895e30e96a23336012ca31e8f772f354efb8feb0670d612fa2ca068b5979444b
5
5
  SHA512:
6
- metadata.gz: 1b4e6474624e79661081ab0ef187b8518d22e8ba79a3840aa30d4b7ef111db9442a367902621358b70f4cd37579516e526551a4b7603a6100e158c1097baf668
7
- data.tar.gz: 3cb5ee2b57bf520c54ac42e35f43a33da737c1df2a6a2ea3714a2a34cb2e97a224d74f402dc797880f49773abd046885177fbd79af4be44505904703ac5f2358
6
+ metadata.gz: bf34f63e6d2bcfe7c983f4a191fa12de929dc56cf859f54f3676a0a981b3a7d735e9499b89d3599094ff7294f0a7fd07ddc523ec32343b9c4dd08fef4b72f644
7
+ data.tar.gz: 741777ca11694b3330609ce0aefd11df91234af988091d23605b75a895387466f3a5bb48bae43acdd4da2648e30193a142962871570402a59e63f635221a066c
@@ -170,6 +170,7 @@ module BlendSpreadsheetLoanGenerator
170
170
 
171
171
  def period_calculated_fees_formula(line:, first_term_skip: false)
172
172
  term = line - 1
173
+ return excel_float(0.0) if first_term_skip
173
174
  if loan.bullet_term?(term)
174
175
  index = first_term_skip ? index(line - 1) : index(line)
175
176
 
@@ -206,6 +207,7 @@ module BlendSpreadsheetLoanGenerator
206
207
 
207
208
  def capitalized_fees_end_formula(line:, first_term_skip: false)
208
209
  term = line - 1
210
+ return excel_float(0.0) if first_term_skip
209
211
  if term <= loan.deferred_and_capitalized
210
212
  index = first_term_skip ? index(line - 1) : index(line)
211
213
  with_fees = "#{remaining_capital_start(line)} * (1 + #{period_fees_rate(line)} + #{period_rate(line)})^#{index}"
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.102'.freeze
4
+ VERSION = '0.1.103'.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.102
4
+ version: 0.1.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman