<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On your tax settings page, under "Taxed line items", check the box "Coupon/Discount" <div><br></div><div>You want to apply tax to the coupon.<br><div><br><div><div>On Nov 27, 2012, at 12:52 AM, Dayton Perkins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <meta http-equiv="CONTENT-TYPE" content="text/html;
      charset=ISO-8859-1"><p style="margin-bottom: 0.2in">I have a few line item scripts that
      all happen on the checkout page. The one that is giving trouble is
      a
      coupon line item.</p>
    <ul>
      <li><p style="margin-bottom: 0in">The line item is being saved to
          the database, as it should be with hook-order. </p>
      </li>
      <li><p style="margin-bottom: 0in">All line items display, as they
          should on the confirm page, and charge properly, but the tax
          is incorrect. </p>
      </li>
      <li><p style="margin-bottom: 0in">In
          admin/store/settings/taxes/1/edit I have a tax set up with a
          couple of rules. </p>
        <ul>
          <li><p style="margin-bottom: 0in">These should have no bearing:
              one being the state for the tax and another being a user
              role (wholesalers are not taxed) . </p>
          </li>
          <li><p>Tax is applied to the Coupon line item on this
              configuration page, as well as to the products. These are
              the only applications of the tax.<br>
            </p>
          </li>
        </ul>
      </li>
    </ul><p>Whether I store a negative value or positive, it doesn't
      affect the tax that is calculated. It is always calculated on the
      subtotal, which is the total of the products.  This includes
      visiting the confirmation page and going "back".<br>
      Tax should be
      calculated on the subtotal minus the coupon amount.<br>
      My only clue
      is that Ubercart Taxes might expect line items before the checkout
      page??? (All my line items are written on submit of the checkout
      page, before the confirm page.<br>
      Should I write my line items on the
      checkout page with AJAX? That  doesn't even make sense in the
      light of how hook_order is written.<br>
      <br>
      Sure appreciate any help if there
      is anyone who has a clue. This is a production site and I wouldn't
      blame my client for getting antsy.</p><p style="margin-bottom: 0.2in"><br>
      <br>
    </p>
    <title></title>
    <meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
    <style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <br>
      <br>
      <table border="0" cellpadding="5">
        <tbody>
          <tr>
            <td scope="col"><em>Kindest regards,</em></td>
            <th scope="col"><em><strong>Dayton Perkins</strong></em></th>
            <th scope="col"><span><Mail Attachment.gif></span></th>
          </tr>
        </tbody>
      </table>
      <div style="font-family: "Comic Sans MS"; text-align:
        center; display: block; margin-bottom: 20px;"><p style="color: rgb(0, 153, 0); font-size: 1em; font-weight:
          bold; text-align: center;"> Good News Design </p><p style="color: rgb(0, 0, 153); font-weight: bold;">
          Intelligent Web Programming for Business<br>
          Dayton Perkins: Recent American Expat in Hong Kong<br>
        </p>
        <table style="margin: auto;" border="0" cellpadding="5">
          <tbody>
            <tr>
              <td> <a href="mailto:dayton@goodnewsdesign.com" title="send mail to dayton@goodnewsdesign.com"> <span><Mail Attachment.jpeg></span> </a> </td>
              <td> <a href="mailto:dayton@goodnewsdesign.com" title="send mail to dayton@goodnewsdesign.com">
                  dayton@goodnewsdesign.com</a> </td>
            </tr>
            <tr>
              <td> <span><Mail Attachment.jpeg></span> </td>
              <td> U.S Phone (rings me in HK) 616-795-9039 </td>
            </tr>
          </tbody>
        </table><p style="font-size: 0.85em; text-align: center;"> <a href="http://goodnewsdesign.com/" style="text-decoration:
            none;" onmouseover="this.style.color='#006600'" onmouseout="this.style.color='#CCCCCC'" title="Visit">
            http://goodnewsdesign.com<br>
            <span><Mail Attachment.gif></span></a><a href="http://goodnewsdesign.com/" style="text-decoration:
            none;" onmouseover="this.style.color='#006600'" onmouseout="this.style.color='#CCCCCC'" title="Visit"> </a>
        </p>
      </div>
      <br>
      <br>
    </div>
  </div>
</blockquote></div><br></div></div></body></html>