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

set deductible amount at the price field option level

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.11
    • Fix Version/s: 4.7.13
    • Component/s: CiviContribute
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Paid Issue Queue
    • Payment Status:
      Paid

      Description

      when creating a new contribution, we have the ability to set the non-deductible amount (and thus by difference, the deductible amount). however, often times orgs need the ability to set those amount via price sets at the option level – and have that calculate out to the contribution record.

      it appears this functionality was envisioned when the price set schema was developed. currently the civicrm_price_field_value table includes a field for storing the deductible_amount, though that is no where exposed to the interface.

      1. decide if we retain the structure as-is or bring the contribution record and price_field_value record into alignment (the contribution stores the non-deductible amount; the price field option stores the deductible amount)
      2. expose the deductible_amount field to the price set option form
      3. when line_items are selected, transfer the calculated configured deductible amount to the line_item record
      4. when the line items are summed to determine the contribution's total_amount, also determine the total deductible amount and store in the contrib record
      5. include that field in appropriate reports and make sure it is available for exporting

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 5 hours, 20 minutes
                5h 20m