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:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Interpolate.pm
Line 5516 (context shows lines 5506-5520 in tax_vat():5513)


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!