Answers.Body: <p>We use Thank You Letters for our US year-end receipts
  Go to Find Contribution, set the date for last year, select the financial type(s), and Refresh Results. This gives you the list of contributions.
  Check &quot;All Records&quot;
  Then under actions select &quot;Thank You Letters-Print or Email.&quot;
  On the Thank You screen Group by &quot;Contact and Financial Type&quot;
  Separator set to &quot;Horizontal Cell&quot;</p>
  <p>You will have to create the receipt so it pulls in the information you need. Below is our code. We use line items so you will have to edit this code to your needs.</p>
  <pre><code>    &lt;table border=&quot;0&quot; style=&quot;width: 900px;&quot;&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td width=&quot;30%&quot;&gt;&lt;img height=&quot;auto&quot; src=&quot;https://secure.radiusinternational.org/sites/default/files/images/Receipt%20Logo%20wAddress.png&quot; width=&quot;275&quot; /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&quot;text-align:left; font-weight: bold; padding-top:60px;&quot; width=&quot;50%&quot;&gt;{contact.addressee}&lt;/td&gt;
              &lt;th style=&quot;padding-top:60px; text-align:center; color:#70551F;padding-left:100px; &quot;&gt;2021 Contribution Statement&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&quot;text-align:left; &quot; width=&quot;40%&quot;&gt;{contact.street_address}&lt;/td&gt;
              &lt;td style=&quot;text-align:center; font-style: italic; color:#281c1d;padding-left:100px;  &quot;&gt;January 1, 2021 - December 31, 2021&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td width=&quot;40%&quot;&gt;{contact.city}, {contact.state_province} {contact.postal_code}&lt;/td&gt;
              &lt;td style=&quot;text-align:center; font-style: italic; color:#281c1d; padding-left:100px; &quot;&gt;Federal Id # 27-4638772&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;p style=&quot;font-size:18px; font-weight: bold;font-style: italic; color:#70551F;&quot;&gt;Thank you for your support of XYZ Foundation in 2021&lt;/p&gt;
  
  &lt;p&gt;No goods or services were received for these Tax Deductible contributions&lt;/p&gt;
  
  &lt;table align=&quot;left&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; class=&quot;table&quot; style=&quot;width: 875px;border: 1px solid #fff;&quot;&gt;
      &lt;tbody&gt;
          &lt;tr style=&quot;padding: 8px; border: 1px solid #fff;color:white; background-color: #70551F;&quot;&gt;
              &lt;th style=&quot;padding: 8px;&quot;&gt;Date&lt;/th&gt;
              &lt;th style=&quot;padding: 8px;&quot;&gt;Cont ID&lt;/th&gt;
              &lt;th style=&quot;padding: 8px;&quot;&gt;Contribution Designation&lt;/th&gt;
              &lt;th style=&quot;padding: 8px;&quot;&gt;Amount&lt;/th&gt;
          &lt;/tr&gt;
          &lt;!--
  
      {foreach from=$contributions item=contribution} {assign
      var=&quot;date&quot; value=$contribution.receive_date|date_format:&quot;%B %d %Y&quot;}
  {crmAPI var='result' entity='LineItem' action='get' contribution_id=$contribution.id} 
    {foreach from=$result.values item=lineitem} 
      
    --&gt;
          &lt;tr style=&quot;padding: 4px; border: 1px solid #281c1d;&quot;&gt;
              &lt;td style=&quot;font-size:.8em; padding: 1px; border: 1px solid #fff;&quot;&gt;{$date}&lt;/td&gt;
              &lt;td style=&quot;font-size:.8em; padding: 1px; border: 1px solid #fff;&quot;&gt;{$contribution.id}&lt;/td&gt;
              &lt;td style=&quot;font-size:.8em; padding: 1px; border: 1px solid #fff;&quot;&gt;{$lineitem.label}&lt;/td&gt;
              &lt;td style=&quot;font-size:.8em; text-align:right;padding: 1px; border: 1px solid #fff;&quot;&gt;$ {$lineitem.line_total}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;!--
      {/foreach}{/foreach}
  
   --&gt;
          &lt;tr style=&quot;padding: 3px; border: 1px solid #281c1d;text-align:right;padding-top:10px;&quot;&gt;
              &lt;th colspan=&quot;3&quot; style=&quot;padding: 3px; border: 1px solid #fff;text-align:right;padding-top:10px;padding-right:20px;&quot;&gt;2021 Total Contributions&lt;/th&gt;
              &lt;td style=&quot;padding-right: 4px; border: 1px solid #fff;padding-top:10px;text-align:right;&quot;&gt;$ {$contribution_aggregate}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>FYI,</p>
  <ol>
  <li>We have some donors (foundations) that do not not need/want year-end receipts. We make them as do not SMS. Since we use Line Items, we pull a line item report check Is Not SMS and whatever other filters we need. We add those contacts to a group. Then in the Find Contribution step we filter by Group &quot;XYZ&quot;.</li>
  <li>We have over 700 receipts to create. Our server cannot process the thnak you letters. We have to ask our webhost to boost our processing timeout and memory so we can do this. They bump it up and back down once we finish.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-13T22:06:14.430Z
Answers.Text: I did have to set `define('CIVICRM_MAIL_SMARTY', 1);` in civicrm.settings.php to get it to work.
Answers.UserDisplayName: jsherk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-14T03:23:41.663Z
Answers.Text: I had some issues with getting the exact data I was looking for, and posted question (then answered it) here: https://civicrm.stackexchange.com/questions/41921/how-to-get-the-financial-type-name-label-in-smarty-template so this other question may be relevevant to others because this other question is based on Iowa Boy template from this question.
Answers.UserDisplayName: jsherk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-26T16:54:44.350Z
Answers.Text: Does this only work if you have `define('CIVICRM_MAIL_SMARTY', 1);` in civicrm.settings.php?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-26T19:04:35.150Z
Answers.Text: @Demerit I do not know the answer for sure. I would guess it depends if you are printing or emailing the receipts/thank-you letters. We print and mail our year-end receipts. But my civicrm.settings.php file does have that defined. But maybe that is for the online donation receipting which does email the receipt
Answers.UserDisplayName: Iowa Boy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-25T22:04:48.047Z
Answers.LastActivityDate: 2022-01-25T22:04:48.047Z
Answers.UserDisplayName: Iowa Boy
Answers.Body: <p>You may want to have a <a href="https://github.com/systopia/de.systopia.donrec" rel="nofollow noreferrer">the Donation receipts extension</a>. It was primarily build for German tax receipts but may be a good starting point for what you have in mind.</p>
  <p>Unfortunately documentation is a bit outdated and it has quite some features not described yet but you should get the hang of it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-25T07:24:11.533Z
Answers.LastActivityDate: 2022-01-25T07:24:11.533Z
Answers.UserDisplayName: Fabian
Answers.Body: <p>So I picked Iowa Boy's answer as correct because it helped me figure out the basics of what I wanted to do.</p>
  <p>However I modified it to better suit our needs. We did not need line items, but just the full amount of each contribution. I also wanted to be able to show either Tax Deductible contributions or Non tax deductible contributions or both.</p>
  <p>The template I have provided below has a couple variables you can set, depending on what you want for the output:</p>
  <p><code>show_which_contribs</code></p>
  <ul>
  <li><p>set this to 1 if you want to show both Tax-Deductible and Non-Tax Deductible contributions.</p>
  </li>
  <li><p>set this to 2 if you want to show only Tax-Deductible contributions.</p>
  </li>
  <li><p>set this to 3 if you want to show only Non-Tax Deductible contributions.</p>
  </li>
  </ul>
  <p><code>group_contribs_by</code></p>
  <ul>
  <li><p>set this to 1 if you want to list all individual contributions seperately.</p>
  </li>
  <li><p>set this to 2 if you want to show only a summary/total of Tax-Deductible and/or Non-Tax Deductible contributions.</p>
  </li>
  </ul>
  <p>So go ahead and use FIND CONTRIBUTIONS to narrow down your results to whatever you want (date range and/or specific contacts). Then from the results, select ALL RECORDS and then choose THANK YOU LETTER-PRINT OR EMAIL. For GROUP CONTRIBUTIONS BY choose CONTACT. Then for the template you can use the following:</p>
  <pre><code>&lt;!-- ** TEMPLATE TO CREATE A USA TAX RECEIPT by JEFF SHERK https://civicrm.stackexchange.com/questions/41120/how-to-print-usa-tax-receipt-to-individuals **
    ** CHOOSE SOME OPTIONS HERE:
  
    ** show_which_contribs :: 1=show both tax-deductible and non-tax-deductible contributions (default)  2=only show Tax-Deductible  3=only show Non-tax-deductible
    {assign var=&quot;show_which_contribs&quot; value=1}
  
    ** group_contribs_by :: 1=no grouping, just show all individual contributions (default)  2=show summary of total only of Tax-Deductible and Non-tax-deductible (no individual contributions shown)
    {assign var=&quot;group_contribs_by&quot; value=1}
  
  --&gt;
  
  &lt;p&gt;&lt;span style=&quot;font-size:150%;&quot;&gt;My Company Name&lt;/span&gt;&lt;br /&gt;
  123 Some Street, City, State 12345&lt;br /&gt;
  Phone: +1 555 555-5555&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Federal EIN: 12-3456789&lt;br /&gt;
  &lt;br /&gt;
  &lt;!--
    ** CHECK IF OUR OPTIONS ABOVE ARE VALID. DEFAULT THEM TO 1 IF THEY ARE NOT. **
    {if $show_which_contribs != 1 AND $show_which_contribs != 2 AND $show_which_contribs != 3}
      {assign var=&quot;show_which_contribs&quot; value=1}
    {/if}
    {if $group_contribs_by != 1 AND $group_contribs_by != 2}
      {assign var=&quot;group_contribs_by&quot; value=1}
    {/if}
    ** NEED TO LOOP THRU ALL CONTRIBUTIONS TO FIND THE FIRST/EARLIEST CONTRIBUTION DATE AND THE LAST/LASTEST CONTRIBUTION DATE **
    {assign var=&quot;date_from&quot; value=&quot;2099-12-31&quot;|date_format:&quot;%Y/%m/%d&quot;}
    {assign var=&quot;date_to&quot; value=&quot;1999-01-01&quot;|date_format:&quot;%Y/%m/%d&quot;}
    {foreach from=$contributions item=contribution}
      {assign var=&quot;contribution_date&quot; value=$contribution.receive_date|date_format:&quot;%Y/%m/%d&quot;}
      {if $contribution_date &lt; $date_from }
        {assign var=&quot;date_from&quot; value=$contribution.receive_date|date_format:&quot;%b %e, %Y&quot;}
      {/if}
      {if $contribution_date &gt; $date_to }
        {assign var=&quot;date_to&quot; value=$contribution.receive_date|date_format:&quot;%b %e, %Y&quot;}
      {/if}
    {/foreach}
    ** SHOW THE DATE RANGE ON THE RECEIPT. IF BOTH DATES ARE THE SAME, THEN ONLY SHOW ONE DATE **
  --&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;b&gt;Contributions Summary&lt;/b&gt; - &lt;!-- {if $date_to eq $date_from} --&gt; {$date_from}&lt;br /&gt;
  &lt;!-- {else} --&gt; {$date_from} to {$date_to}&lt;br /&gt;
  &lt;!-- {/if} --&gt;&lt;/p&gt;
  
  &lt;hr /&gt;
  &lt;p&gt;For:&lt;br /&gt;
  &lt;span style=&quot;font-size:110%;&quot;&gt;&lt;b&gt;{contact.addressee}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
  {contact.street_address}&amp;nbsp;&amp;nbsp;&amp;nbsp;{contact.city}&amp;nbsp;&amp;nbsp;&amp;nbsp;{contact.state_province}&amp;nbsp;&amp;nbsp;&amp;nbsp;{contact.country}&amp;nbsp;&amp;nbsp;&amp;nbsp;{contact.postal_code}&lt;/p&gt;
  
  &lt;table align=&quot;left&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width:100%; border: 2px solid black; font-size:90%;&quot;&gt;
      &lt;thead&gt;
          &lt;tr align=&quot;left&quot; style=&quot;font-size:80%;&quot;&gt;
              &lt;th style=&quot;border: 1px solid black;&quot;&gt;Date&lt;/th&gt;
              &lt;th style=&quot;border: 1px solid black;&quot;&gt;Type&lt;/th&gt;
              &lt;th style=&quot;border: 1px solid black;&quot;&gt;Source&lt;/th&gt;
              &lt;th style=&quot;border: 1px solid black;&quot;&gt;Tax Deductible&lt;/th&gt;
              &lt;th style=&quot;border: 1px solid black;&quot;&gt;Amount&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;&lt;!--
      {assign var='total_contrib_non_tax' value=0}
      {assign var='total_contrib_tax' value=0}
      {assign var='total_contribs' value=0}
      {foreach from=$contributions item=contribution}
        {assign var=&quot;date&quot; value=$contribution.receive_date|date_format:&quot;%b %e %Y&quot;}
        {assign var=&quot;financial_type_id&quot; value=$contribution.financial_type_id}
        {assign var=&quot;financial_type_name&quot; value=$contribution.financial_type}
        {assign var=&quot;contribution_source&quot; value=$contribution.contribution_source}
        {assign var=&quot;contribution_total_amount&quot; value=$contribution.total_amount}
        {$contribution_total_amount|string_format:&quot;%.2f&quot;}
        {crmAPI var='resultFinancialType' entity='FinancialType' action='get' id=$financial_type_id}
        {assign var=&quot;financial_type_is_deductible&quot; value=$resultFinancialType.values[0].is_deductible}
        {if $financial_type_is_deductible eq '1'}
           {assign var=&quot;financial_type_is_deductible&quot; value=&quot;Tax-Deductible&quot;}
           {if $show_which_contribs == 1 OR $show_which_contribs == 2}
              {assign var='total_contrib_tax' value=$total_contrib_tax+$contribution_total_amount}
              {assign var='total_contribs' value=$total_contribs+$contribution_total_amount}
           {/if}
        {else}
           {assign var=&quot;financial_type_is_deductible&quot; value=&quot;Non tax deductible&quot;}
           {if $show_which_contribs == 1 OR $show_which_contribs == 3}
              {assign var='total_contrib_non_tax' value=$total_contrib_non_tax+$contribution_total_amount}
              {assign var='total_contribs' value=$total_contribs+$contribution_total_amount}
           {/if}
        {/if}
        {$total_contrib_non_tax|string_format:&quot;%.2f&quot;}
        {$total_contrib_tax|string_format:&quot;%.2f&quot;}
        {$total_contribs|string_format:&quot;%.2f&quot;}
         {if $group_contribs_by == 1 AND ($show_which_contribs == 1 OR ($financial_type_is_deductible == &quot;Tax-Deductible&quot; AND $show_which_contribs == 2) OR ($financial_type_is_deductible == &quot;Non tax deductible&quot; AND $show_which_contribs == 3)) }
    --&gt;
          &lt;tr style=&quot;font-size:80%;&quot;&gt;
              &lt;td&gt;{$date}&lt;/td&gt;
              &lt;td&gt;{$financial_type_name}&lt;/td&gt;
              &lt;td&gt;{$contribution_source}&lt;/td&gt;
              &lt;td&gt;{$financial_type_is_deductible}&lt;/td&gt;
              &lt;td&gt;${$contribution_total_amount}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;!--
         {/if}
      {/foreach}
        {if $group_contribs_by == 2}
         {if $show_which_contribs == 1 OR $show_which_contribs == 2}
  --&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;Total Tax-Deductible&lt;/td&gt;
              &lt;td&gt;${$total_contrib_tax}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;!--
         {/if}
         {if $show_which_contribs == 1 OR $show_which_contribs == 3}
  --&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;Total Non tax deductible&lt;/td&gt;
              &lt;td&gt;${$total_contrib_non_tax}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;!--
         {/if}
        {/if}
   --&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;p&gt;&lt;span style=&quot;font-size:110%;&quot;&gt;Total Non-Tax Deductible: ${$total_contrib_non_tax}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Total Tax-Deductible: ${$total_contrib_tax}&lt;br /&gt;
  &lt;span style=&quot;font-size:120%;&quot;&gt;&lt;b&gt;Total: ${$total_contribs}&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;span style=&quot;font-size:75%;&quot;&gt;&lt;i&gt;No goods or services were provided in return for the Tax Deductible contributions listed.&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  <p>Hope this helps somebody!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-17T02:40:34.913Z
Answers.LastActivityDate: 2022-05-17T02:47:13.860Z
Answers.LastEditDate: 2022-05-17T02:47:13.860Z
Answers.UserDisplayName: jsherk
Answers.Body: <p>Can you update the <a href="https://docs.civicrm.org/user/en/latest/contributions/invoicing/" rel="nofollow noreferrer">invoicing message template</a> to print the tax receipt?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-25T04:38:52.217Z
Answers.Text: I will have to investigate and play around to see if it can do what we need. Thanks
Answers.UserDisplayName: jsherk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-25T00:13:13.357Z
Answers.LastActivityDate: 2022-01-25T00:13:13.357Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I see a seperate extension for Canadian Tax Receipts, but I need to print out tax receipts that are USA compliant for all individuals.</p>
  <p>How can I generate a tax receipt for the USA?</p>
  <p>UPDATE:</p>
  <p>More specifically, we need to generate a tax receipt for Contacts that have the annual total (not individual contributions) of each financial type that is tax deductible. So for example if we had three financial types of say Donations (tax deductible) and Building Fund (tax deductible) and Book Sales (not tax deductible) it would show the total for the entire year for their Donations and then the total for the entire year for their Building Fund contributions, but would not show the Book Sales.</p>
  
Tags: <civicontribute>
Title: How to print USA tax receipt to individuals?
ThreadText: # How to print USA tax receipt to individuals?
  
  (Asked by: username_0 on 2022-01-24)
  
  I see a seperate extension for Canadian Tax Receipts, but I need to print out tax receipts that are USA compliant for all individuals.
  
  How can I generate a tax receipt for the USA?
  
  UPDATE:
  
  More specifically, we need to generate a tax receipt for Contacts that have the annual total (not individual contributions) of each financial type that is tax deductible. So for example if we had three financial types of say Donations (tax deductible) and Building Fund (tax deductible) and Book Sales (not tax deductible) it would show the total for the entire year for their Donations and then the total for the entire year for their Building Fund contributions, but would not show the Book Sales.
  
  **Tags:** civicontribute
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2022-01-25. Score: 1 | Accepted answer
  
  We use Thank You Letters for our US year-end receipts
  Go to Find Contribution, set the date for last year, select the financial type(s), and Refresh Results. This gives you the list of contributions.
  Check "All Records"
  Then under actions select "Thank You Letters-Print or Email."
  On the Thank You screen Group by "Contact and Financial Type"
  Separator set to "Horizontal Cell"
  You will have to create the receipt so it pulls in the information you need. Below is our code. We use line items so you will have to edit this code to your needs.
      
      
          
              
          
          
              {contact.addressee}
              2021 Contribution Statement
          
          
              {contact.street_address}
              January 1, 2021 - December 31, 2021
          
          
              {contact.city}, {contact.state_province} {contact.postal_code}
              Federal Id # 27-4638772
          
      
  
  
  Thank you for your support of XYZ Foundation in 2021
  
  No goods or services were received for these Tax Deductible contributions
  
  
      
          
              Date
              Cont ID
              Contribution Designation
              Amount
          
          
          
              {$date}
              {$contribution.id}
              {$lineitem.label}
              $ {$lineitem.line_total}
          
          
          
              2021 Total Contributions
              $ {$contribution_aggregate}
          
      
  
  
  FYI,
  
  We have some donors (foundations) that do not not need/want year-end receipts. We make them as do not SMS. Since we use Line Items, we pull a line item report check Is Not SMS and whatever other filters we need. We add those contacts to a group. Then in the Find Contribution step we filter by Group "XYZ".
  We have over 700 receipts to create. Our server cannot process the thnak you letters. We have to ask our webhost to boost our processing timeout and memory so we can do this. They bump it up and back down once we finish.
  
  > **Comments:**
  > **username_2**: Does this only work if you have `define('CIVICRM_MAIL_SMARTY', 1);` in civicrm.settings.php?  
  > **username_1**: @username_2 I do not know the answer for sure. I would guess it depends if you are printing or emailing the receipts/thank-you letters. We print and mail our year-end receipts. But my civicrm.settings.php file does have that defined. But maybe that is for the online donation receipting which does email the receipt  
  > **username_0**: I did have to set `define('CIVICRM_MAIL_SMARTY', 1);` in civicrm.settings.php to get it to work.  
  > **username_0**: I had some issues with getting the exact data I was looking for, and posted question (then answered it) here: https://civicrm.stackexchange.com/questions/41921/how-to-get-the-financial-type-name-label-in-smarty-template so this other question may be relevevant to others because this other question is based on username_1 template from this question.  
  
  ---
  
  ### Answer by username_3 on 2022-01-25. Score: 1
  
  You may want to have a [the Donation receipts extension](https://github.com/systopia/de.systopia.donrec). It was primarily build for German tax receipts but may be a good starting point for what you have in mind.
  
  Unfortunately documentation is a bit outdated and it has quite some features not described yet but you should get the hang of it.
  
  
  ---
  
  ### Answer by username_0 on 2022-05-17. Score: 1
  
  So I picked username_1's answer as correct because it helped me figure out the basics of what I wanted to do.
  However I modified it to better suit our needs. We did not need line items, but just the full amount of each contribution. I also wanted to be able to show either Tax Deductible contributions or Non tax deductible contributions or both.
  The template I have provided below has a couple variables you can set, depending on what you want for the output:
  show_which_contribs
  
  set this to 1 if you want to show both Tax-Deductible and Non-Tax Deductible contributions.
  
  set this to 2 if you want to show only Tax-Deductible contributions.
  
  set this to 3 if you want to show only Non-Tax Deductible contributions.
  
  
  group_contribs_by
  
  set this to 1 if you want to list all individual contributions seperately.
  
  set this to 2 if you want to show only a summary/total of Tax-Deductible and/or Non-Tax Deductible contributions.
  
  
  So go ahead and use FIND CONTRIBUTIONS to narrow down your results to whatever you want (date range and/or specific contacts). Then from the results, select ALL RECORDS and then choose THANK YOU LETTER-PRINT OR EMAIL. For GROUP CONTRIBUTIONS BY choose CONTACT. Then for the template you can use the following:
  
  
  My Company Name
  123 Some Street, City, State 12345
  Phone: +1 555 555-5555    Federal EIN: 12-3456789
  
  
  
  Contributions Summary -  {$date_from}
   {$date_from} to {$date_to}
  
  
  
  For:
  {contact.addressee}
  {contact.street_address}   {contact.city}   {contact.state_province}   {contact.country}   {contact.postal_code}
  
  
      
          
              Date
              Type
              Source
              Tax Deductible
              Amount
          
      
      
          
              {$date}
              {$financial_type_name}
              {$contribution_source}
              {$financial_type_is_deductible}
              ${$contribution_total_amount}
          
          
          
               
               
               
              Total Tax-Deductible
              ${$total_contrib_tax}
          
          
          
               
               
               
              Total Non tax deductible
              ${$total_contrib_non_tax}
          
          
      
  
  
  Total Non-Tax Deductible: ${$total_contrib_non_tax}                  Total Tax-Deductible: ${$total_contrib_tax}
  Total: ${$total_contribs} 
  
  No goods or services were provided in return for the Tax Deductible contributions listed.
  
  Hope this helps somebody!
  
  
  ---
  
  ### Answer by username_4 on 2022-01-25. Score: 0
  
  Can you update the [invoicing message template](https://docs.civicrm.org/user/en/latest/contributions/invoicing/) to print the tax receipt?
  
  > **Comments:**
  > **username_0**: I will have to investigate and play around to see if it can do what we need. Thanks  
  
  ---
  
  