tax-exempt customer?

6 views
Skip to first unread message

davis

unread,
Dec 21, 2009, 2:49:31 PM12/21/09
to Satchmo users
I need to be able to make a customer (dealer or institution) tax-
exempt, so I was thinking of either adding the auth.user to an
auth.group or adding a ContactRole that could be checked for and then
setting up a listener. But what signal would I listen for?

davis

unread,
Dec 23, 2009, 11:57:03 AM12/23/09
to Satchmo users
Anybody know offhand what signal to listen for to change the tax
amount during checkout?

Just thought I'd ask before reading through the code.

Bruce Kroeze

unread,
Dec 23, 2009, 12:10:44 PM12/23/09
to satchm...@googlegroups.com
On Wed, Dec 23, 2009 at 8:57 AM, davis <dv...@yahoo.com> wrote:
Anybody know offhand what signal to listen for to change the tax
amount during checkout?

Just thought I'd ask before reading through the code.

I think the easiest solution for you would be to write a variant of one of the existing tax modules, then add it to the livesetting TAX.MODULE.choices.  In its get_rate function, you could check whether the customer is tax-exempt, and if so, return Decimal('0.00')

That way you'd always be certain that they aren't getting taxed, and you could skip tracking down all signals and such.

--
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

davis

unread,
Dec 23, 2009, 4:04:47 PM12/23/09
to Satchmo users
Thanks, Bruce. I made a custom tax module -- the area module with a
small tax-exempt test -- and it seems to work well.

> Bruce Kroezehttp://www.ecomsmith.com

Reply all
Reply to author
Forward
0 new messages