Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11813

Pledge payment is incorrect after deletion of completed payment

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.0
    • Component/s: CiviPledge
    • Labels:
      None

      Description

      I have reproduced this issue in the public sandbox at: http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=111

      Please note that the pending payment due March 1 has an amount due of 180.00. This is the incorrect amount, amount due should be 250. If you sum up all the pending amount due, it does not match the open balance on the pledge.

      What I did to reproduce this:

      • Created a pledge of 2400. with 10 monthly installments
      • Recorded a payment for the first installment with actual paid amount of 300.00
      • Recorded a payment for the second installment with actual paid amount of 250.00
      • Recorded a payment for the third installment with an actual paid amount of 170.00
      • Delete the contribution of 250. At this point, the second installment now has the wrong amount due ( It shows 180 due. It should show 250 due.) If I add up the "amount due" for all pending pledges the sum no longer matches the pledge open balance.

        Attachments

        1. CRM-11813.patch
          0.5 kB
          Web Access
        2. StandaloneAddDeleteTest.php
          8 kB
          Web Access

          Issue Links

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                sgladstone Sarah Gladstone
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: