MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Newbie: how to implement a german sales tax ?



******    message to minivend-users from Chris =?iso-8859-1?Q?M=FCller?= <cmueller@polinet.ch>     ******

Holm Tiffe wrote:

> ******    message to minivend-users from Holm Tiffe <holm@freibergnet.de>     ******
>
> Markus M&#252;ller wrote:
>
> > ******    message to minivend-users from "=?iso-8859-1?Q?Markus_M=FCller?=" <mueller@ass-software.de>     ******
> >
> >
> > > price: = products:price + products:price * products:vat /100
> > >
> >
> >
> > ==> [currency][calc][item-price] + ([item-price]*[item-field vat] /
> > 100)[/calc][/currency]
> >
>
> Yea this is the theory, but this doesn't work here,
> (I have 3.11 on FreeBSD 4.0-current).
> I've played with souch things a litte, [item-price] is always evaluated to 0 !
> Even a [currency][item-price][/currency]  and a [item-price] alone
> generates a DM 0.00  price.
>

[item-price] is returned as a string. You need to specify [item-price noformat=1] to get a number.

>

>
> If I reference [item-field vat] minivend simply hangs forever.
> The deamon takes all of the CPU time. I have to kill the cgi and the minivend
> daemon.

There may be various reasons, why this does not work.

>
> The products database is the plain products.asc containing only 6 artikles.
> If I set CommonAdjust to products:vat I get the vat as price, products:price
> sets it to the price, ok, but I have had no luck with those minivend tags.

"price" is the default field for the [item-price]. If you want to change it, use PriceField in catalog.cfg.

If you use the "noformat=1" your problem should be solved and you dont need to mess with CommonAdjust to calculate
your VAT.


>
> BTW: how recognizes Minivend where to get the item-price when CommonAdjust
> is'nt set to products:price ? Is the price field in the products database
> the  default or what ?
>
> Please help,
>
> Holm

Chris


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: