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

Changing a contribution status from "completed" to "Cancelled" or "Refunded" breaks Pledge payments

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.9, 4.3.0
    • Fix Version/s: 4.4.0
    • Component/s: CiviContribute, CiviPledge
    • Labels:
      None

      Description

      I am able to reproduce this in the public sandbox for testing 4.3.

      Steps to reproduce it:
      1) Create a new pledge for 1200. to be paid in 12 installments ( I chose monthly as the frequency, but any frequency can be used)

      2) Make the first pledge payment and choose the actual amount paid to be 300, (When adjusting the amount, stick with the default option of adjusting the remaining schedule.)

      At this point everything is fine

      3) Click on the "Edit" link for that 300 pledge payment , then click on the "Edit" button

      4) In this screen, change the contribution status to cancelled or refunded then click "Save"

      At this point the rest pledge installments are a mess. There are no longer enough "pending" or "overdue" pledge payments to be able to record the rest of the payments to pay off the pledge.

        Attachments

        1. AddCancelPaymentTest.php
          7 kB
          Web Access
        2. CRM-12271.patch
          5 kB
          Web Access
        3. paymentsAfterCancellation.png
          33 kB
          Web Access
        4. paymentsBeforeCancellation.png
          36 kB
          Web Access
        5. PledgePaymentsAfterCancellation.PNG
          112 kB
          David Greenberg
        6. PledgePaymentsBeforeCancellation.PNG
          115 kB
          David Greenberg

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: