<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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"><img
src="cid:part1.02020006.03070905@gmail.com" alt="Dayton
Perkins"
longdesc="http://goodnewsdesign.com/images/signature.gif"
width="208" height="60"></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"> <img
src="cid:part2.00000509.04020206@gmail.com"
alt="dayton@goodnewsdesign.com" border="0"> </a> </td>
<td> <a href="mailto:dayton@goodnewsdesign.com"
title="send mail to dayton@goodnewsdesign.com">
dayton@goodnewsdesign.com</a> </td>
</tr>
<tr>
<td> <img src="cid:part5.03040200.09070808@gmail.com"
alt="Phone Me"> </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>
<img moz-do-not-send="false" style="border: 0pt none;"
src="cid:part6.09040809.02080304@gmail.com" alt="GND Logo"></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>
</body>
</html>