Charges on Repayment schedule are doubled after applying full repayment

Description

Currently, if charges are paid and you apply full repayment, then charges amounts are doubled on Repayment Schedule page.

Repro:
1. Find any disbursed account which doesn't have any payments made.
2. Apply misc fee and misc penalty.
3. Apply payment to repay misc fee and penalty.
4. Apply full repayment.
6. Go to Repayment schedule.

Expected result:
Misc fee and penalty have the same amounts as before full repayment.

Actual result:
Misc fee and penalty have doubled amounts and after adjusting full repayment, charges have also negative amounts. See attached screenshot.

Environment

None

Activity

Show:
Kamil Kalfas
July 5, 2012, 11:19 AM

Fixed in commit: 134355740e2a206818083540d102c58450c71f1b
Build number: head-i-release-commit-41

Łukasz Babski
July 5, 2012, 12:05 PM

Bug has been fixed properly.
Build Date: Thu Jul 05 04:03:28 PDT 2012
Build Number: hudson-head-i-release-archive-34

Assignee

Kamil Kalfas

Reporter

Lukasz Chudy

Labels

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Affects versions

Priority

Major
Configure