blend_spreadsheet_loan_generator 0.1.105 → 0.1.106

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: 72957cc9d2f27e41c08296925655eb7a260e7fdaef6c0930dcc308f9a7c8ab25
4
- data.tar.gz: ff081b04d72056d4de09f73e026069c4eae6151f1a684fab698aa796065ae635
3
+ metadata.gz: 3decf3ef46d2a7636475a1364d97c98089a323fafaa671f2aaf0741b665887a5
4
+ data.tar.gz: 612c00e81f10f7da63d2c780596b5b1a3a9c5f110a8fd3e7633574fe5d779c23
5
5
  SHA512:
6
- metadata.gz: 22fd450d7087a51b999348bb324a9d38726ea33425ba85e77c77026a871e7ff4ff0fb2e2ff685aa7110d3920efaeccabce75382e15f4f3ee8dc2558e27dbd04c
7
- data.tar.gz: 12e57b1f793e676501f7d1c127052eaf0d1f313b9a10a90238c1aa6164fb0ab2bd6082a79cde7b3c1dc78522d9044b02e1b6ee978b839f3d222a38dda537c0de
6
+ metadata.gz: a249a15ffc47d20f3aea1ff65b9fe7708de9e439c214e9855b3092cfd866c6e3bf0080a14ba40fd0379b74d5e29289f138f5526e8a8184030c115d631b32b5e7
7
+ data.tar.gz: 9a2dfca3ff564d50acbda00a914019dfe9d68bc63379aa00684ceabcf24d4f83df04c03770abc4a3bc8c579f6c531c74832a43d95f994982314515a9d6ac5f08
@@ -80,19 +80,15 @@ 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]
83
+ values[last_paid_line + 1][:capitalized_interests_end] +
84
+ values[last_paid_line + 1][:capitalized_fees_end]
87
85
  )
88
86
  capital_paid_for_ratio = amount_paid.to_f - (
89
- values[last_paid_line + 1][:capitalized_fees_start] +
90
- values[last_paid_line + 1][:period_calculated_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_start] +
94
- values[last_paid_line + 1][:capitalized_interests_start] +
95
- values[last_paid_line + 1][:period_calculated_interests]
90
+ values[last_paid_line + 1][:remaining_capital_end] +
91
+ values[last_paid_line + 1][:capitalized_interests_end]
96
92
  )
97
93
 
98
94
  ratio = options.fetch(:ratio, capital_paid_for_ratio.to_f / remaining_capital_for_ratio).to_f
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.105'.freeze
4
+ VERSION = '0.1.106'.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.105
4
+ version: 0.1.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman