Name

MV_COUNTRY_TAX_FIELD — name of column containing country-wide tax information

SYNOPSIS

{ column... }

DESCRIPTION

Column name in the MV_COUNTRY_TABLE database that will be looked up to retrieve country-wide tax information.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Put the following in catalog.cfg:

Variable MV_COUNTRY_FIELD  tax

NOTES

AVAILABILITY

MV_COUNTRY_TAX_FIELD is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

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;

AUTHORS

Interchange Development Group

SEE ALSO

MV_TAX_TYPE_FIELD(7ic), MV_TAX_CATEGORY_FIELD(7ic), MV_STATE_TAX_FIELD(7ic)

DocBook! Interchange!