Answers.Body: <p>As of last week you can now create Additional Line Items with webform civicrm module (which is a Drupal/CiviCRM integration module). Coleman and I are thankful to Wilderness Committee (Canada) for sponsoring this new feature!</p>
  
  <ol>
  <li><p>if you'd like to try this out before a next dev-release - you can download the latest webform_civicrm code from: <a href="https://github.com/colemanw/webform_civicrm.git" rel="nofollow noreferrer">https://github.com/colemanw/webform_civicrm.git</a></p></li>
  <li><p>with the latest code in your Webform -> navigate to your CiviCRM tab -> Contribution tab and you'll see the new Configuration option 'Additional Line Items' at the bottom of that tab. In this example we'll use two and we'll let the user select their own financial type (of course you can configure that to any static financial type as well and/or hide these fields from the form the usual webform civicrm way)</p></li>
  </ol>
  
  <p><a href="https://i.sstatic.net/aJjSu.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aJjSu.png" alt="enter image description here"></a></p>
  
  <ol start="3">
  <li>Configure the new fields -> We need to charge Sales Tax on the Calendar - while ensuring the Donation is of type Donation so that it becomes eligible for a Charitable Tax Receipt. We have also configured the form such that the user can add a Membership (and be charged the proper amount for it).</li>
  </ol>
  
  <p><a href="https://i.sstatic.net/1UzMo.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1UzMo.png" alt="enter image description here"></a></p>
  
  <ol start="4">
  <li><p>View/fill out the webform:
  <a href="https://i.sstatic.net/mfxsO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mfxsO.png" alt="enter image description here"></a></p></li>
  <li><p>Next Page:</p></li>
  </ol>
  
  <p><a href="https://i.sstatic.net/a0uFy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/a0uFy.png" alt="enter image description here"></a></p>
  
  <ol start="6">
  <li>Contribution created in CiviCRM!</li>
  </ol>
  
  <p><a href="https://i.sstatic.net/pZaSD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pZaSD.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T11:43:53.477Z
Answers.Text: This sounds great.  Perhaps you should make it clear that this only works with Drupal though.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T15:03:38.687Z
Answers.Text: Yes - Webform CiviCRM is a Drupal module.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-21T18:10:02.647Z
Answers.Text: This is not the same as Line Items as currently used in CiviCRM Price Sets?
Answers.UserDisplayName: Iowa Boy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-21T22:03:43.427Z
Answers.Text: These are more flexible in that you can create them on tbe webform as needed;
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-22T04:16:13.437Z
Answers.Text: Actually we’re calling them Line Items because they are stored in the civicrm_line_item table
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-12T03:19:53.733Z
Answers.Text: I deleted my comments about the tables not getting properly filled. I have setup our donation page using the new line item capabilities and my reports are all still working--using Extended Reports.  Thanks so much for this!
Answers.UserDisplayName: Iowa Boy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-12T15:54:32.757Z
Answers.Text: Thank you for looping back - glad to hear you got line items working
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-26T03:45:31.973Z
Answers.Text: I think there might be a minor issue that if you edit the options in the line item component and then re-edit it does not show the settings that you have saved but instead shows you all of them as selected which is confusing
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-02T00:02:47.003Z
Answers.Text: Is there a way to populate the line item with a value stored in a custom field that is unique to member? I have a custom field civicrm_2_contact_1_cg11_custom_32 that holds past due amount that I'd like to add to the total check out. Maybe this is a new question?
Answers.UserDisplayName: Keith Webb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-02T02:17:30.077Z
Answers.Text: Yes ask a new question! And I’ll give you some examples for that.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-05T19:46:49.423Z
Answers.Text: Should this work in D7/Backdrop as well? I am seeing a form with line items lumping it all together in the CiviCRM backend even though the webform shows the separate line items.
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-06T23:57:07.153Z
Answers.Text: Sorry - I’m afraid I don’t know about Backdrop.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-25T12:55:09.657Z
Answers.Text: It seems as though resulting contributions aren't fully compatible with civi core, webform_civicrm uses the default quick config price set for line items, and when there are multiple line items things can go wrong. I've posted more details [here](https://civicrm.stackexchange.com/questions/45602/trouble-with-editing-contributions-with-multiple-line-items), @KarinG-SemperIT I'd love your input!
Answers.UserDisplayName: Aiden
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-25T23:47:27.333Z
Answers.Text: Hi Aiden! We’re just using the API to create line items - and quick config is ok but you’re saying CiviCRM can only handle one quick config line item but not two? Write it up in an issue on drupal.org with a scenario that we can reproduce and Jitendra and I can look into it.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-28T09:12:09.213Z
Answers.Text: Thanks @KarinG-SemperIT, I have done so [here](https://www.drupal.org/project/webform_civicrm/issues/3390363)
Answers.UserDisplayName: Aiden
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-01T19:25:05.630Z
Answers.LastActivityDate: 2018-09-07T15:09:40.007Z
Answers.LastEditDate: 2018-09-07T15:09:40.007Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>How can we sell a Membership and a Calendar (that we should charge Sales tax on) and let the user make a Donation all on the same Webform Civicrm page - in a way that only the Donation amount is eligible to receive a charitable tax receipt?</p>
  
Tags: <civicontribute><webform-civicrm>
Title: Can Webform CIviCRM module do Line Items (PS yes it can!)
ThreadText: # Can Webform CIviCRM module do Line Items (PS yes it can!)
  
  (Asked by: username_0 on 2018-09-01)
  
  How can we sell a Membership and a Calendar (that we should charge Sales tax on) and let the user make a Donation all on the same Webform Civicrm page - in a way that only the Donation amount is eligible to receive a charitable tax receipt?
  
  **Tags:** civicontribute, webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-09-01. Score: 5 | Accepted answer
  
  As of last week you can now create Additional Line Items with webform civicrm module (which is a Drupal/CiviCRM integration module). Coleman and I are thankful to Wilderness Committee (Canada) for sponsoring this new feature!
  
  1. if you'd like to try this out before a next dev-release - you can download the latest webform\_civicrm code from: <https://github.com/colemanw/webform_civicrm.git>
  2. with the latest code in your Webform -> navigate to your CiviCRM tab -> Contribution tab and you'll see the new Configuration option 'Additional Line Items' at the bottom of that tab. In this example we'll use two and we'll let the user select their own financial type (of course you can configure that to any static financial type as well and/or hide these fields from the form the usual webform civicrm way)
  
  [![enter image description here](https://i.sstatic.net/aJjSu.png)](https://i.sstatic.net/aJjSu.png)
  
  3. Configure the new fields -> We need to charge Sales Tax on the Calendar - while ensuring the Donation is of type Donation so that it becomes eligible for a Charitable Tax Receipt. We have also configured the form such that the user can add a Membership (and be charged the proper amount for it).
  
  [![enter image description here](https://i.sstatic.net/1UzMo.png)](https://i.sstatic.net/1UzMo.png)
  
  4. View/fill out the webform:
     [![enter image description here](https://i.sstatic.net/mfxsO.png)](https://i.sstatic.net/mfxsO.png)
  5. Next Page:
  
  [![enter image description here](https://i.sstatic.net/a0uFy.png)](https://i.sstatic.net/a0uFy.png)
  
  6. Contribution created in CiviCRM!
  
  [![enter image description here](https://i.sstatic.net/pZaSD.png)](https://i.sstatic.net/pZaSD.png)
  
  > **Comments:**
  > **username_1**: This sounds great.  Perhaps you should make it clear that this only works with Drupal though.  
  > **username_0**: Yes - Webform CiviCRM is a Drupal module.  
  > **username_2**: This is not the same as Line Items as currently used in CiviCRM Price Sets?  
  > **username_0**: These are more flexible in that you can create them on tbe webform as needed;  
  > **username_0**: Actually we’re calling them Line Items because they are stored in the civicrm_line_item table  
  > **username_2**: I deleted my comments about the tables not getting properly filled. I have setup our donation page using the new line item capabilities and my reports are all still working--using Extended Reports.  Thanks so much for this!  
  > **username_0**: Thank you for looping back - glad to hear you got line items working  
  > **username_3**: I think there might be a minor issue that if you edit the options in the line item component and then re-edit it does not show the settings that you have saved but instead shows you all of them as selected which is confusing  
  > **username_4**: Is there a way to populate the line item with a value stored in a custom field that is unique to member? I have a custom field civicrm_2_contact_1_cg11_custom_32 that holds past due amount that I'd like to add to the total check out. Maybe this is a new question?  
  > **username_0**: Yes ask a new question! And I’ll give you some examples for that.  
  > **username_5**: Should this work in D7/Backdrop as well? I am seeing a form with line items lumping it all together in the CiviCRM backend even though the webform shows the separate line items.  
  > **username_0**: Sorry - I’m afraid I don’t know about Backdrop.  
  > **username_6**: It seems as though resulting contributions aren't fully compatible with civi core, webform_civicrm uses the default quick config price set for line items, and when there are multiple line items things can go wrong. I've posted more details [here](https://civicrm.stackexchange.com/questions/45602/trouble-with-editing-contributions-with-multiple-line-items), @KarinG-SemperIT I'd love your input!  
  > **username_0**: Hi username_6! We’re just using the API to create line items - and quick config is ok but you’re saying CiviCRM can only handle one quick config line item but not two? Write it up in an issue on drupal.org with a scenario that we can reproduce and Jitendra and I can look into it.  
  > **username_6**: Thanks @KarinG-SemperIT, I have done so [here](https://www.drupal.org/project/webform_civicrm/issues/3390363)  
  
  ---
  
  