Answers.Body: <p>I finally found my own answer. This is a known bug for text fields in price sets:</p>
  
  <p><a href="https://issues.civicrm.org/jira/browse/CRM-14823" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-14823</a></p>
  
  <p>Workaround as per the above link: </p>
  
  <p><a href="https://github.com/fuzionnz/civicrm-core/commit/3174c2e183bc8cfab9082353966a994a9a364bbb" rel="nofollow noreferrer">https://github.com/fuzionnz/civicrm-core/commit/3174c2e183bc8cfab9082353966a994a9a364bbb</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-15T04:22:26.210Z
Answers.LastActivityDate: 2016-12-15T04:22:26.210Z
Answers.UserDisplayName: jboeke
Body: <p>I have an extension in progress at <a href="https://github.com/jboeke/com.avietech.multitax" rel="nofollow noreferrer">https://github.com/jboeke/com.avietech.multitax</a></p>
  
  <p>What I'm hoping to do is combine multiple tax rates into one. The extension properly rejiggers the tax values and actual amount as expected but NOT the visible price or description of the tax (i.e. - price-field-amount) to the right of the quantity input.</p>
  
  <p><a href="https://i.sstatic.net/jpNPO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jpNPO.png" alt="enter image description here"></a></p>
  
  <p>As you can see, my tax rate of 6.25% has been applied as expected and the Total Fee(s) reflects (20 * 1.0625). So why do I still see "$ 20 (includes Tax of $ 0)" when the expected value is "$ 21.25 (includes Tax of $ 1.25)"?</p>
  
  <p><strong>function multitax_civicrm_buildAmount</strong> sets, what I believe, are the relevant values:</p>
  
  <p><code>
  $option['tax_rate'] = $totaltaxrate / 100;
  $option['tax_amount'] = $option['amount'] * $option['tax_rate'];
  </code></p>
  
  <p>Are there other values I need to set to change the description to accurately reflect the adjusted taxes?</p>
  
Tags: <civicontribute><extension><financial-accounts>
Title: Tax Label not updating in Price Set using _buildAmount Hook
ThreadText: # Tax Label not updating in Price Set using _buildAmount Hook
  
  (Asked by: username_0 on 2016-12-13)
  
  I have an extension in progress at <https://github.com/username_0/com.avietech.multitax>
  
  What I'm hoping to do is combine multiple tax rates into one. The extension properly rejiggers the tax values and actual amount as expected but NOT the visible price or description of the tax (i.e. - price-field-amount) to the right of the quantity input.
  
  [![enter image description here](https://i.sstatic.net/jpNPO.png)](https://i.sstatic.net/jpNPO.png)
  
  As you can see, my tax rate of 6.25% has been applied as expected and the Total Fee(s) reflects (20 \* 1.0625). So why do I still see "$ 20 (includes Tax of $ 0)" when the expected value is "$ 21.25 (includes Tax of $ 1.25)"?
  
  **function multitax\_civicrm\_buildAmount** sets, what I believe, are the relevant values:
  
  `$option['tax_rate'] = $totaltaxrate / 100;
  $option['tax_amount'] = $option['amount'] * $option['tax_rate'];`
  
  Are there other values I need to set to change the description to accurately reflect the adjusted taxes?
  
  **Tags:** civicontribute, extension, financial-accounts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-12-15. Score: 0 | Accepted answer
  
  I finally found my own answer. This is a known bug for text fields in price sets:
  
  <https://issues.civicrm.org/jira/browse/CRM-14823>
  
  Workaround as per the above link:
  
  <https://github.com/fuzionnz/civicrm-core/commit/3174c2e183bc8cfab9082353966a994a9a364bbb>
  
  
  ---
  
  