Name

MV_TAX_CATEGORY_FIELD — name of column containing enumerated tax types, based on product category

SYNOPSIS

{ column... }

DESCRIPTION

Name of the column whose value will be retrieved in search of tax type applied to the specific product group.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Put the following in catalog.cfg:

Variable MV_TAX_CATEGORY_FIELD tax_category

NOTES

AVAILABILITY

MV_TAX_CATEGORY_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 5619 (context shows lines 5609-5623 in tax_vat():5522)

  $rate /= 100 if $2;
        $rate = $rate / (1 + $rate) if $Vend::Cfg->{TaxInclusive};
  my $amount = Vend::Interpolate::taxable_amount();
  $total += ($rate * $amount);
}
else {
  $tax = Vend::Util::get_option_hash($t);
}
#::logDebug("tax hash=" . uneval($tax));
my $pfield   = $opt->{tax_category_field}
      || $::Variable->{MV_TAX_CATEGORY_FIELD}
      || 'tax_category';
my @pfield = split /:+/, $pfield;

for my $item (@$Vend::Items) {

AUTHORS

Interchange Development Group

SEE ALSO

MV_COUNTRY_TAX_FIELD(7ic), MV_TAX_TYPE_FIELD(7ic), MV_STATE_TABLE(7ic), MV_COUNTRY_TABLE(7ic), MV_STATE_TAX_FIELD(7ic)

DocBook! Interchange!