MV_COUNTRY_TAX_FIELD — name of column containing country-wide tax information
Column name in the MV_COUNTRY_TABLE database that will be looked up
to retrieve country-wide tax information.
Interchange 5.9.0:
Source: lib/Vend/Interpolate.pm
Line 5537 (context shows lines 5527-5541 in tax_vat():5526)
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}
|| $::Variable->{MV_COUNTRY_TABLE}
|| 'country';
my $c_taxfield = $opt->{country_tax_field}
|| $::Variable->{MV_COUNTRY_TAX_FIELD}
|| 'tax';
#::logDebug("ctable=$ctable c_taxfield=$c_taxfield country=$country");
$type ||= tag_data($ctable, $c_taxfield, $country)
or return 0;