Active
Project:
UC Discounts
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2009 at 22:09 UTC
Updated:
29 Jan 2009 at 22:09 UTC
Hi
I've been trying to get discounts and taxes working together and can't, and I've run out of time, so I'm trying to implement a clunky work-around which has also run into a challenge.
I really only need to show the tax charged on my invoice, so I have a custom invoice which calculates the tax component. This works fine, until a discount is applied. Then on my invoice, the product price is not discounted. I need to change my calculation there to include the discount. Any idea how to do this?
So my line of code needs to be something like:
<?php echo uc_currency_format($product->price * $product->qty * [DISCOUNT MULTIPLIER] / 1.1); ?>
Dividing by 1.1 removes the GST amount.
Where do I get the DISCOUNT MULTIPLIER from???
Clunky I know, but I've run out of time...
Thanks for any help
Glenn