MiniVend Akopia Services

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

Germans plse. read, was Re: Newbie: how to implement a german sales tax ?



******    message to minivend-users from Holm Tiffe <holm@freibergnet.de>     ******

Chris M&#252;ller wrote:

[..]
> > >
> > > ==> [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 0.00  price.
> >
> 
> [item-price] is returned as a string. You need to specify [item-price noformat=1] to get a number.

[item-price] with or without noformat=1 is returning always 0 at this time.
The access to the database seems to work but it seems that I can't get even
the [item-code] right here. No difference in 3.12beta.
Are the [item-*] things defined for use with CommonAdjust ?

> >
> > 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 reason seems that I've forgot to set single quotes around the square brackets.
With quotes it is returning ( what?! ) --> 0.

It seems that there is no way to get the prices properly calculated here.

CommonAdjust   '[data "products" code="00-001" name="price"]' displays properly
the $40 (sample) for all artikles, but

CommonAdjust   '[data base="products" code=[item-code] name="price"]'
gernerates those zeros again.

> 
> >
> > 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.

Grrrrr, chicken and egg or what: (snipped from catalog.cfg)

########### PriceField   
##
## Default: price        
#
# The field in the product database that will be accessed with the [item-price]
# element.  
#
# If set to a non-existent field enables the CommonAdjust scheme
# for all products.
#
PriceField   no_price
#-----------------------------------------------------------------

That says: when I wish to use the CommonAdjust I have to disable the PriceField,
and it looks that I CAN'T use the [item-price] tag in CommonAdjust to calculate
this damn price!

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

Again: I'am a german and in germany it is forbidden by lawers that I have
prices on my catalog without the german VAT. I MUST use those damn VAT
prices ! (we already got an "Abmahnung" by some guy for the VAT-less prices
on our old shop)

BTW: I have no clue yet, how I do the recalculation of the subtotal and
the several tax'es on the checkout page, this seems to be another problem.
Minivend's architecture look's not like the best for germany....

Are other Germans here ? How you have done this ?

Holm
-- 
FreibergNet Systemhaus GbR      Holm Tiffe  * Administration, Development
Systemhaus f&#252;r Daten- und Netzwerktechnik           phone +49 3731 781279
Unternehmensgruppe Liebscher & Partner                fax +49 3731 781377
D-09599 Freiberg * Am St. Niclas Schacht 13    http://www.freibergnet.de/

-
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: