Answers.Body: <p>This issue is reported at <a href="https://lab.civicrm.org/dev/core/-/issues/1603" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/1603</a> and there was a <a href="https://github.com/civicrm/civicrm-core/pull/17610" rel="nofollow noreferrer">fix</a> merged into 5.27 which is scheduled to be out today, unfortunately the <a href="https://github.com/civicrm/civicrm-core/pull/17610" rel="nofollow noreferrer">fix</a> was <a href="https://github.com/civicrm/civicrm-core/pull/17680" rel="nofollow noreferrer">reverted</a> since it created regression bug.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-01T17:32:32.733Z
Answers.LastActivityDate: 2020-07-01T17:32:32.733Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>We have a site with tax and invoicing enabled on contribution settings.
  Drupal 7 civi 5.24.6</p>
  <p>Where there is just one item to purchase on a page. The totals and subtotals appear as expected...</p>
  <p><em>Payment amounts from Contribution confirmation page</em>
  <a href="https://i.sstatic.net/ceoGw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ceoGw.png" alt="contribution page- payments amounts 1 item" /></a></p>
  <p><em>Payment amounts from confirmation email</em>
  <a href="https://i.sstatic.net/yNCmD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yNCmD.png" alt="confoirmation email- payment info 1 item" /></a></p>
  <p>But when multiple taxable items are available on a contribution page the taxable subtotals show incorrectly...</p>
  <p><em>Payment amounts from Contribution confirmation page</em>
  <a href="https://i.sstatic.net/Ugi2r.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ugi2r.png" alt="contribution page- payments amount 2 items" /></a>
  Here the total VAT (tax) amount shows as £260, when it should be £520- but both line items show correctly and the Payment Total is the correct overall total</p>
  <p><em>Payment amounts from confirmation email</em>
  <a href="https://i.sstatic.net/7WKIa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7WKIa.png" alt="email confoirmation- 2 line items" /></a>
  The email acknowledgement for these items is even more broken
  The amount before tax shows £2860 instead of £2600, basically a tax amount has been added here.
  total VAT line is fine at £520, but the Total Tax line is only showing £260</p>
  <p>Again the overall total is correct.</p>
  <p>Anyone any idea where these different amounts are being drawn from? How to correct this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-01T16:52:40.257Z
Comments.Text: There's been recent work on this area.  I live in a country where most NGOs don't collect tax, but a) try upgrading a test site to CiviCRM 5.27 when it comes out later today and see if it helps; b) ask in the ~financial channel https://chat.civicrm.org; c) tax calculation code is changing in Civi 5.28, you may want to test the release candidate as well.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <contributions><receipts><taxes>
Title: Multiple item tax sub-totals are shown incorrectly on confirmation pages and emails
ThreadText: # Multiple item tax sub-totals are shown incorrectly on confirmation pages and emails
  
  (Asked by: username_0 on 2020-07-01)
  
  We have a site with tax and invoicing enabled on contribution settings.
  Drupal 7 civi 5.24.6
  
  Where there is just one item to purchase on a page. The totals and subtotals appear as expected...
  
  *Payment amounts from Contribution confirmation page*
  [![contribution page- payments amounts 1 item](https://i.sstatic.net/ceoGw.png)](https://i.sstatic.net/ceoGw.png)
  
  *Payment amounts from confirmation email*
  [![confoirmation email- payment info 1 item](https://i.sstatic.net/yNCmD.png)](https://i.sstatic.net/yNCmD.png)
  
  But when multiple taxable items are available on a contribution page the taxable subtotals show incorrectly...
  
  *Payment amounts from Contribution confirmation page*
  [![contribution page- payments amount 2 items](https://i.sstatic.net/Ugi2r.png)](https://i.sstatic.net/Ugi2r.png)
  Here the total VAT (tax) amount shows as £260, when it should be £520- but both line items show correctly and the Payment Total is the correct overall total
  
  *Payment amounts from confirmation email*
  [![email confoirmation- 2 line items](https://i.sstatic.net/7WKIa.png)](https://i.sstatic.net/7WKIa.png)
  The email acknowledgement for these items is even more broken
  The amount before tax shows £2860 instead of £2600, basically a tax amount has been added here.
  total VAT line is fine at £520, but the Total Tax line is only showing £260
  
  Again the overall total is correct.
  
  Anyone any idea where these different amounts are being drawn from? How to correct this?
  
  **Tags:** contributions, receipts, taxes
  
  > **Comments:**
  > **username_1**: There's been recent work on this area.  I live in a country where most NGOs don't collect tax, but a) try upgrading a test site to CiviCRM 5.27 when it comes out later today and see if it helps; b) ask in the ~financial channel https://chat.civicrm.org; c) tax calculation code is changing in Civi 5.28, you may want to test the release candidate as well.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-07-01. Score: 2 | Accepted answer
  
  This issue is reported at <https://lab.civicrm.org/dev/core/-/issues/1603> and there was a [fix](https://github.com/civicrm/civicrm-core/pull/17610) merged into 5.27 which is scheduled to be out today, unfortunately the [fix](https://github.com/civicrm/civicrm-core/pull/17610) was [reverted](https://github.com/civicrm/civicrm-core/pull/17680) since it created regression bug.
  
  
  ---
  
  