blend_spreadsheet_loan_generator 0.1.107 → 0.1.111

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: e066d31e3aac210b466d4e3e6993d408dc26dcba046a5a1ecfe181b2dabb0989
4
- data.tar.gz: b52baa3e2c499f79960579c5cfd0d33e28d288c3ca0b1263e3b02c7ba271657f
3
+ metadata.gz: 237e78cc969abb37217013bed00dbf7e8e66b475ad49cfef3a7a626f7bc8950a
4
+ data.tar.gz: e72e56255ba6140c48a13a3f87a49e942b61a4fd7dc3c05abb070d347f26b1ef
5
5
  SHA512:
6
- metadata.gz: 2637dd47c2545133a83c24d299cd4c72dd81ca02056fd210504a4100c85cc2eaa0534303c0a0415c9a83d76983893fdc9c567945ae29619a8d32ebb3f38a64d1
7
- data.tar.gz: a3b538214455f066f8bcddeae2920df8255bf43d9f5294efd25e715978b83a0836b6cb82f65786b2f52712e48a91f82ae3663176de15cd41967244da64d7545d
6
+ metadata.gz: c35d3c183d990dabf506005999500e09ee02a5825dae45503db005f843b425e3c4979a49f915249dc964b0960a0efe8417271eefa0fd1355765d857d3f6d30c1
7
+ data.tar.gz: b3a3552ea4c21554bb8e4f3912008e2ebbe5421f261583f43282269d69a27cbfbf9f40669cd0cceb0b85e80394c6ab3df8baf8e3010399381169239fb9ac1c8d
@@ -80,19 +80,21 @@ module BlendSpreadsheetLoanGenerator
80
80
  due_on = values[last_paid_line + 1][:due_on] + 1.month
81
81
 
82
82
  capital_paid = amount_paid.to_f - (
83
+ values[last_paid_line + 1][:period_interests] +
84
+ values[last_paid_line + 1][:period_fees] +
83
85
  values[last_paid_line + 1][:capitalized_interests_end] +
84
86
  values[last_paid_line + 1][:capitalized_fees_end]
85
87
  )
86
- capital_paid_for_ratio = amount_paid.to_f - (
87
- values[last_paid_line + 1][:period_interests] +
88
- values[last_paid_line + 1][:period_fees]
89
- )
88
+ # capital_paid_for_ratio = amount_paid.to_f - (
89
+ # values[last_paid_line + 1][:period_interests] +
90
+ # values[last_paid_line + 1][:period_fees]
91
+ # )
90
92
  remaining_capital_for_ratio = (
91
- values[last_paid_line + 1][:remaining_capital_end] +
93
+ values[last_paid_line + 1][:remaining_capital_start] +
92
94
  values[last_paid_line + 1][:capitalized_interests_end]
93
95
  )
94
96
 
95
- ratio = options.fetch(:ratio, capital_paid_for_ratio.to_f / remaining_capital_for_ratio).to_f
97
+ ratio = options.fetch(:ratio, capital_paid.to_f / remaining_capital_for_ratio).to_f
96
98
  guaranteed_interests_paid = ratio * total_guaranteed_interests
97
99
  guaranteed_fees_paid = ratio * total_guaranteed_fees
98
100
 
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.107'.freeze
4
+ VERSION = '0.1.111'.freeze
5
5
 
6
6
  class Version < Dry::CLI::Command
7
7
  desc 'Print version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blend_spreadsheet_loan_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.107
4
+ version: 0.1.111
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport