Code
glennnz - January 29, 2009 - 22:09
| Project: | UC Discounts |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
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
