[ic] Working with VAT inclusive prices
Steve
interchange at bojanglesdesign.co.uk
Tue Mar 22 11:39:30 EST 2005
Thanks Jamie, that looks like a great backup if I can't get the new
'TaxInclusive' working properly. I'll post out what I find in the next day
or two.
Steve
on 22/3/05 4:11 pm, Jamie Neil wrote:
> Steve wrote:
>> If so, could Jamie expand on how his system works with the CommonAdjust
>> tags? I haven't used CommonAdjust before, but thought it was for quantity
>> pricing?
>
> catalog.cfg
> -----------
> ...
> include etc/subtax.tag
> ...
> CommonAdjust <<EOF
> :price:,
> ;$,
> [subtax]
> EOF
> ...
>
> etc/subtax.tag
> --------------
> UserTag subtax Routine <<EOR
> sub {
> my $price = $s;
> $price = $price/1.175;
> return $price-$s;
> }
> EOR
>
>
> If I was to do this now (having more IC experience), I would probably:
>
> 1) Use the "& CODE" rule form rather than a usertag.
>
> 2) Make the tax deduction according to the value of the tax_category &
> nontaxable fields.
>
> However despite being ugly it does work.
More information about the interchange-users
mailing list