Bug 424511 - Loan will not calculate and does
Summary: Loan will not calculate and does
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
: 431159 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-07-21 17:24 UTC by Marty Sarosi
Modified: 2023-01-17 16:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marty Sarosi 2020-07-21 17:24:30 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create a Loan
2. Populate details
3. Click Calculate

OBSERVED RESULT

Impossible to proceed error message saying make one of the fields blank

EXPECTED RESULT

Loan is calculated
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Tumbleweed
(available in About System)
KDE Plasma Version: 5.19
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jack 2020-07-21 21:23:26 UTC
First, I suspect your "Observed result" is not the exact error message you probably received.  I probably was "You have entered mis-matching information. Please modify your figures or leave one value empty to let KMyMoney calculate it for you" and that message says clearly what you need to do.

The reason is that when a loan is calculated, there are a set of formulas by which the loan amount, interest rate, regular payment amount, and possible balloon payment are related.  If you leave one of those amounts blank, KMyMoney will evaluate those formulas to calculate the final value.  If you fill in all the values, they must be correctly related according to those calculations.  If they are not, you get that error.

Please let us know is this explains it or if I missed something.
Comment 2 Marty Sarosi 2020-07-22 11:16:25 UTC
I think the issue is if you put any details in either value where the numbers are you are unable to nullify them and you cannot proceed
Comment 3 Thomas Baumgart 2020-07-25 11:21:25 UTC
Git commit 19e9ac500810c9026c83a532a7e6e990fd39ea63 by Thomas Baumgart.
Committed on 25/07/2020 at 11:21.
Pushed by tbaumgart into branch '5.1'.

Allow to calculate one parameter of a loan

When leaving an amount edit field in the new loan account wizard it will
automatically be filled with 0. This will prevent the loan calculator to
identify the field that should be calculated.

Enable the option to allow an empty field prevents the automatic fill
with the value 0 on focusOut event.
FIXED-IN: 5.1.1

M  +5    -0    kmymoney/wizards/newaccountwizard/kloandetailspage.cpp

https://invent.kde.org/office/kmymoney/commit/19e9ac500810c9026c83a532a7e6e990fd39ea63
Comment 4 Thomas Baumgart 2020-07-25 11:22:25 UTC
Git commit fe8f1108b022f097c0bc7c0da430dfe0208d2283 by Thomas Baumgart.
Committed on 25/07/2020 at 11:22.
Pushed by tbaumgart into branch 'master'.

Allow to calculate one parameter of a loan

When leaving an amount edit field in the new loan account wizard it will
automatically be filled with 0. This will prevent the loan calculator to
identify the field that should be calculated.

Enable the option to allow an empty field prevents the automatic fill
with the value 0 on focusOut event.

(cherry picked from commit 19e9ac500810c9026c83a532a7e6e990fd39ea63)

M  +5    -0    kmymoney/wizards/newaccountwizard/kloandetailspage.cpp

https://invent.kde.org/office/kmymoney/commit/fe8f1108b022f097c0bc7c0da430dfe0208d2283
Comment 5 Thomas Baumgart 2021-01-05 12:07:41 UTC
*** Bug 431159 has been marked as a duplicate of this bug. ***
Comment 6 Andriy Gapon 2023-01-16 11:19:48 UTC
Bug 459881 seems to be related.
Thomas, could you please take a look at it if / when you have time?
Thank you.
Comment 7 Jack 2023-01-17 15:34:29 UTC
What should the subject of this bug actually be?  The current one doesn't really make sense.  (It's worth fixing to assist future searching.)
Comment 8 Andriy Gapon 2023-01-17 16:21:22 UTC
(In reply to Jack from comment #7)
> What should the subject of this bug actually be?  The current one doesn't
> really make sense.  (It's worth fixing to assist future searching.)

Perhaps, [some] fields cannot be left empty [for auto-calculation] in the loan wizard ?