Skip to content

Commit 6941abe

Browse files
committed
Mortgage Assistant: Handle daily payments
That case was left out of the payments-per-year calculation.
1 parent 889a4dd commit 6941abe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gnucash/gnome/assistant-loan.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,9 @@ periods_per_year( LoanAssistantData *ldd)
24112411
case PERIOD_YEAR:
24122412
ppy += 1.0 / multiplier;
24132413
break;
2414+
case PERIOD_DAY:
2415+
ppy = 365 / multiplier;
2416+
break;
24142417
case PERIOD_WEEK:
24152418
ppy += 52.0 / multiplier;
24162419
break;

0 commit comments

Comments
 (0)