
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] How to calculate multiple Tax of any items?
Mike Heins wrote:
...
> > How can I calculate the salestax, if I've
> >
> > 1) products.txt with sku, title, description, price, tax, etc.
> > 2) the price is gross and not net
> > 3) some items has 16% tax and some has 7%
> > 4) if the field "tax" is empty, 16% will be used as default for tax
> > calculation
> > 5) shipping cost is taxable too
> >
> > ?
> > What i want is
> >
> > sku title price
> > 1 beer 10,00 EUR (with 16% tax = 1,60 EUR)
> > 2 water 10,00 EUR (with 7% tax = 0,70 EUR)
> > subtotal = 20,00 EUR
> > shipping = 5,00 EUR (with 16% tax = 0,80 EUR)
> > total = 25,00 EUR
> > total incl. salestax = 3,10 EUR
> >
> > Any ideas?
> > Any helps, suggestions and tips are very welcome!
> >
>
> Search the mail archive for "tax_category" and my name. I posted
> something which is perfect for this.
Thank you! But it solves not all. I'm writing a new UserTag to calculate
any kind of tax or vat for each items and shipping and I use a flag in
my usertag for both kind of price (gross or net). I need some more tip.
How can I set the salestax and shipping in my usertag like [assign
shipping=123 salestax=456] ? Is this
tag_assign(shipping=$mynewshipping, salestax=$mynewtax-or-vat);
the right code?
I use some Variables in my catalog.cfg to set
- the price mode (gross or net)
- the name of the taxfield
- the shippingprice mode (gross or net)
- the default taxrate for a fallback
and use my own usertag with success. But it is not ready, because it is
correct for only one products file. How can I use the Variable
ProductFiles? Can I use
for(@{$Vend::Cfg->{ProductFiles}}) { ...}
in my UserTag?
Thank you!
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[Hans-Joachim.leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users