Answers.Body: <p>This is a bug. I'm unsure if price set config for events was previously tested. I've created an issue in JIRA for this <a href="https://issues.civicrm.org/jira/browse/CRM-20676" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-20676</a> and we'll work on fixing pro bono (though contributions to help fund fix would be very welcome!).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-02T17:01:24.453Z
Answers.LastActivityDate: 2017-06-02T17:01:24.453Z
Answers.UserDisplayName: Joe Murray
Body: <p>I replicated this issue in the demo wordpress account. If one creates a paid event with a financial type that includes taxes, enters a price (without using price sets) and books a person, then opening the contribution and clicking the 'save' button behaves correctly. </p>
  
  <p>The problem appears when the event price is a price set. Each time one opens the corresponding contribution and clicks 'save', a new accounting line is created with negative the amount of taxes.  </p>
  
  <p>Example after opening and saving several times:<br>
  (the total amount should be 400 SEK, but now it say 14 SEK)</p>
  
  <p><a href="https://i.sstatic.net/boeJO.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/boeJO.jpg" alt="enter image description here"></a></p>
  
  <p>This happens when the price set is used with an event, but also (at times) when directly creating a contribution with the same price set as above, but without registering to an event.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-02T16:24:57.410Z
Comments.Text: My issue seems to be the one in https://issues.civicrm.org/jira/browse/CRM-19966 that is marked as Fixed. I will need to look deeper.
Comments.UserDisplayName: Christophe
Tags: <civievent><contributions><price-sets><taxes>
Title: Saving a contribution adds a line with negative the tax amount, when using an event price set
ThreadText: # Saving a contribution adds a line with negative the tax amount, when using an event price set
  
  (Asked by: username_0 on 2017-06-02)
  
  I replicated this issue in the demo wordpress account. If one creates a paid event with a financial type that includes taxes, enters a price (without using price sets) and books a person, then opening the contribution and clicking the 'save' button behaves correctly.
  
  The problem appears when the event price is a price set. Each time one opens the corresponding contribution and clicks 'save', a new accounting line is created with negative the amount of taxes.
  
  Example after opening and saving several times:  
  (the total amount should be 400 SEK, but now it say 14 SEK)
  
  [![enter image description here](https://i.sstatic.net/boeJO.jpg)](https://i.sstatic.net/boeJO.jpg)
  
  This happens when the price set is used with an event, but also (at times) when directly creating a contribution with the same price set as above, but without registering to an event.
  
  **Tags:** civievent, contributions, price-sets, taxes
  
  > **Comments:**
  > **username_0**: My issue seems to be the one in https://issues.civicrm.org/jira/browse/CRM-19966 that is marked as Fixed. I will need to look deeper.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-06-02. Score: 2 | Accepted answer
  
  This is a bug. I'm unsure if price set config for events was previously tested. I've created an issue in JIRA for this <https://issues.civicrm.org/jira/browse/CRM-20676> and we'll work on fixing pro bono (though contributions to help fund fix would be very welcome!).
  
  
  ---
  
  