You redefine
def get_percent(self, taxclass='Default', *args, **kwargs):
if getattr(taxclass, 'title', None) != 'ReducedVAT':
return Decimal(config_value('TAX','PERCENT'))
else:
return Decimal(config_value('TAX','REDUCEDVAT'))
and "by_price" similarly.
Much better is to create a new modified tax processor with some name
and not to change Satchmo.
Of course create a new livesettings value REDUCEDVAT.
If your country has normal tax for shipping, you need not modify
method for shipping tax.
What is meant by "some types of products" *in Satchmo*? Nothing
builtin, nothing unambiguous, so there is nothing to be surprised. You
can unregister ProductOptions and create and register custom admin
class MyProductOptions(ProductOptions) where you implement what you
prefer.
-- Hynek
On 13 lis, 18:27, "Tobias G. Pfeiffer" <[email protected]> wrote:
> Hi,
>
> I've played a bit with Satchmo and I've tried to correctly configure
> taxes according to the German tax legislation, that is
>
> - in general, products are taxed with 19%,
> - books and some other product classes are taxed with 7%.
>
> So far, I'm using the 'percent' tax rule. While I'm able to create
> (multiple) "Tax Classes", each consisting of title and description,
> there is only *one* tax rate that I can configure globally at /settings.
>
> Now I was wondering,
> 1. how to set a certain tax class as the default for some types of
> products, and
> 2. how to define a "tax rate" per "tax class", i.e. say that all
> products with tax class "VAT" should be taxed with 19%, all products
> with tax class "reduced VAT" with 7%. I'd be thankful for any advice on
> how to proceed here.
>
> Thanks for your help,
> Tobias
>
> signature.asc
> < 1KZobrazitStáhnout
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.