blend_spreadsheet_loan_generator 0.1.108 → 0.1.112

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: 999f9a70b2ee5829f4bc50ecfa6a4c08c59cc1e4fbc2e3a2cc47f9dffa8fab8b
4
- data.tar.gz: 1c9dbdb0d08d1ab2c74f2f85dd71847ea9b5ef96e6f89f17c3d8af4bb9e35b49
3
+ metadata.gz: 526e63e619b84d693c93294a98fd9354c9b35f4eb3c47b6d0e4ff49b533f30cd
4
+ data.tar.gz: 81192d4e8cd832a94f83948beb8b513463456a92cedf3f5d8501cc4f11179345
5
5
  SHA512:
6
- metadata.gz: eb2750a4d3c49e6dca99455a7b445d345c9abd52d031a936e29786d377e3b62ce0bfbbfcd164a919af98b168e0f2b49f5babf9fb789ce7b09537c1be442b588a
7
- data.tar.gz: e2b921596a0b1c95ad84e2a80d9f44cb214a4f8a2a2cfc5fa01629294ed36e8c14adf1f3f5c91728a39b78b87a526c261159828d2e80aeec17c447739066d3a5
6
+ metadata.gz: f159a1b328f8b3def5613359277911aa27183eeed5d27140a54ce4fbf7d0dc79e59ec0bee630ff71c9dc20939de21c3b843f7c5e375276907a9187d5f2820ada
7
+ data.tar.gz: 15a5ef2042d922da1421c2d367961aa4f0f8667b2ff3a2956def5ad95ad1e6ad3a63ba2190e075e00629e1ec33c24373222fea743a4414e1865177d738628119
@@ -80,21 +80,18 @@ 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][:capitalized_interests_start] +
84
- values[last_paid_line + 1][:capitalized_fees_start] +
85
- values[last_paid_line + 1][:period_calculated_interests] +
86
- values[last_paid_line + 1][:period_calculated_fees]
87
- )
88
- capital_paid_for_ratio = amount_paid.to_f - (
89
83
  values[last_paid_line + 1][:period_interests] +
90
- values[last_paid_line + 1][:period_fees]
84
+ values[last_paid_line + 1][:period_reimbursed_capitalized_interests] +
85
+ values[last_paid_line + 1][:period_fees] +
86
+ values[last_paid_line + 1][:period_reimbursed_capitalized_fees] +
87
+ values[last_paid_line + 1][:capitalized_fees_end]
91
88
  )
92
89
  remaining_capital_for_ratio = (
93
- values[last_paid_line + 1][:remaining_capital_end] +
90
+ values[last_paid_line + 1][:remaining_capital_start] +
94
91
  values[last_paid_line + 1][:capitalized_interests_end]
95
92
  )
96
93
 
97
- ratio = options.fetch(:ratio, capital_paid_for_ratio.to_f / remaining_capital_for_ratio).to_f
94
+ ratio = options.fetch(:ratio, capital_paid.to_f / remaining_capital_for_ratio).to_f
98
95
  guaranteed_interests_paid = ratio * total_guaranteed_interests
99
96
  guaranteed_fees_paid = ratio * total_guaranteed_fees
100
97
 
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.108'.freeze
4
+ VERSION = '0.1.112'.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.108
4
+ version: 0.1.112
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