Active
Project:
Ubercart Discounts (Alternative)
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2010 at 23:52 UTC
Updated:
18 Mar 2013 at 22:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
ryangroe commentedGenerally stores charge tax on the full amount then apply a discount. I'm not sure if this is because stores want to get a little bit more money or if this is required by tax law. If you'd like to tax on the discounted amount you need to go into the Ubercart tax configuration and tell that module to tax the uc_discount line item. This is a bit counter-intuitive but this tells the tax module to include the -$10 in its totalling, so it taxes $90 and not $100.
Comment #2
cdeniro commentedI will check on the tax law but your recommendation changes it to work as I expect it to. Thanks for the quick reply and the great module!
Comment #3
adshill commentedHi there,
This doesn't actually solve the issue when having both taxed and tax free items in your cart. In effect what happens is the entire discount amount is taxed, however this gives an inaccurate tax amount if the discount is both on tax and tax free items.
Is there any way to deal with this? Its quite important to larger stores that feature tax and tax-free items!
Thanks,
Adam
Comment #4
adshill commentedIs it possible this module will be made compatible with the tax module and provide discounts on taxed, and non-taxable items in the same order? Possible bounty available depending on the work needed!
Thanks,
Adam
Comment #5
pixelsweatshop commentedStores do NOT generally apply the tax, then provide a discount. They apply the discount and tax the remainder. They do not make more money as the tax is remitted to the government. This module should apply the discount first, then tax the remainder.
Comment #6
megachrizI attempted to made a fix for this in a submodule. This module basically asks the uc_taxes module to recalculate the taxes after the discount is applied. It does so by asking the discount module for the discount for each product. This fix will not work for order based discounts. It may also not work correctly for time based discounts.
Features:
- Calculates taxes based on the discounted product price.
- Adds a price alterer which should be set as the last one in the list.
/admin/store/settings/price-handlers
- Works with product based discounts only (not with order based discounts).
- Integrates with Ubercart VAT module (actually, it undoes some actions of that module).
Important note: Be sure to test this module throughly, before you use it on a production website. Using this module may lead to inaccurate tax amounts when you use other modules that influence taxes (with the exception of uc_vat).
Comment #7
christelle41 commentedI tried your module but as I have drupal 7, it doesn't seem to work...
Comment #8
christelle41 commentedIn fact, il works !
Comment #9
bruiseviolet commentedI'm having the same problem. It's applying the tax on the FREE items. You don't collect sales tax on FREE items, because there is no money transaction/"sale"- it's FREE.
p.s. Just downloaded the 'fix' up above- hoping it works, as we do product discounts =)
Comment #10
bartezz commented@nicoz #5: rather bold statement! If you get your passport out and travel a bit you'll notice that in a lot, if not most, countries shops show prices including VAT and don't add this at checkout. That means discounts are calculated on VAT inclusive prices in these countries. If the discounts would have a price_handler folks would be able to set the order and apply discounts either before or after VAT is applied.
Also see: http://drupal.org/node/476348
Comment #11
leevh commentedThe fix module posted seems to be working well for me, Hopefully this functionality can be fixed in the module itself... seems pretty necessary. Thanks MegaChriz!
Comment #12
hockey2112 commentedCould the submodule be modified to work for order based discounts?
Comment #13
matthijs_hofstede commentedI have been testing and applying patches quite a lot the last couple off weeks. A lot off cases are solved but there is just one scenario that has not been fixed for the discount module (alt). Hoping someone can fix this, i'm using coupons in the meantime.
When a discount is applied the VAT percentage is calculated on the discount, the module doesn't have the possibility to calculate vat on every discount that has been applied.
For info how this should work see: http://drupal.org/node/476348#comment-5538090
Comment #14
hockey2112 commentedThe fix in #6 does not work at all for me, with any combinations of discount settings.
Comment #15
hockey2112 commented