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

inherited membership through priceset creates multiple line items

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.4
    • Fix Version/s: 4.6.6
    • Component/s: CiviMember
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      to recreate:

      • create a membership type that has employer of inheritance enabled
      • create a membership priceset and use select/radio/checkbox field with this membership type
      • create an org and indiv record and connect with the employer relationship
      • create a new membership for the org. use the priceset option and select the priceset you just created. choose the membership option.

      because you're using a priceset, it will create the contribution record as well. if you view that contribution record, note that although the fee amount total is correct, there will be two line items created – one for the org and one for the related indiv. if you had multiple indivs related to the org, it would have created a line item for each of them.

      I've confirmed in the DB that it does in fact creates the multiple line items, where there should be only one. this impacts the invoice that is generated and taxes that are applied, as all of the line items are listed and are used to generate the subtotal.

      this was reproducible on the demo site:
      http://d46.demo.civicrm.org/civicrm/contact/view?reset=1&cid=204 (view the contribution)

        Attachments

          Activity

            People

            • Assignee:
              Sudha Sudha Bisht
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: