Name

MV_COUNTRY_TAX_VAR —

SYNOPSIS

DESCRIPTION

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

MV_COUNTRY_TAX_VAR is available in Interchange versions:

5.6.0, 5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Interpolate.pm (rev. 2.309 from Mon Nov 17 00:01:20 2008)
Line 5443 (context shows lines 5433-5447 in tax_vat():5440)


sub percent_rate {
my $rate = shift;
$rate =~ s/\s*%\s*$// and $rate /= 100;
return $rate;
}

sub tax_vat {
my($type, $opt) = @_;
#::logDebug("entering VAT, opts=" . uneval($opt));
my $cfield = $::Variable->{MV_COUNTRY_TAX_VAR} || 'country';
my $country = $opt->{country} || $::Values->{$cfield};

return 0 if ! $country;
my $ctable   = $opt->{country_table}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!