Issue #24846:correctly calculate percentpaid
Merge pull request #1991 from garyhgohoos/24846

Issue #24846:correctly calculate percentpaid