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

Back-office forms in quick_config mode ignore selected financial type and use hard-coded financial type from quick config price_field_value

    Details

      Description

      Use case that reveals bug: Create new contribution using offline contribution form, and select Member Dues or any financial type other than Donation. The resulting line_item will always have financial_type 1 (Donations), which is wrong. This occurs because the quick config contribution_amount price_field_value record has that financial_type. This means the financial_item also has the incorrect Income Account.

      For quick config backoffice transactions we need to regard price_field_value.financial_type_id as a default and use it only if no financial_type_id is passed in from the form. I think the places we need to check are the backoffice forms which allow the user to select a financial type for the payment:

      • Contribute/Form/Contribution.php
      • Member/Form/Membership.php and MembershipRenewal.php
      • Event/Form/Participant.php
        and Bulk Data Entry

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: