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

Cancelling a pending contribution will set accounting transactions incorrectly

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.7, 4.6.8
    • Fix Version/s: 4.6.9
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Steps to replicate:

      • Create a new contribution, set status to pending
      • Cancel contribution
      • Create a batch and add both transactions to batch

      Note: Correct entries appear to be created for completed contributions that are cancelled.

      Incorrect output:

      Batch will incorrectly have no debit and a negative credit to the account receivable (thereby increasing the account receivable).

      See attachment - inv_108 was a pending contribution that was cancelled, inv_107 was a completed contribution that was cancelled.

      To fix:

      Option 1: Match to treatment of completed --> cancelled

      Have a "negative" debit of the asset (receivable) and a "negative" credit of the income account.

      Option 2: Have a debit of the income account and a credit of the asset (i.e. flip the two from debit to credit.)

      Option 1 seems simpler and is in use for complete --> cancelled but perhaps not 100% correct.

        Attachments

          Activity

            People

            • Assignee:
              guanhuan Guanhuan Chen
              Reporter:
              jamienovickcompucorp_uk Jamie Novick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m