MV_COUNTRY_TAX_VAR —
Interchange 5.9.0:
Source: lib/Vend/Interpolate.pm
Line 5529 (context shows lines 5519-5533 in tax_vat():5526)
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}