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.7.0:
Source: lib/Vend/Interpolate.pm (rev. 2.308 from Mon Sep 22 00:01:19 2008)
Line 5453 (context shows lines 5443-5457 in tax_vat():5442)
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;