For more information... RTFM!
NAVIGATION
RECENTLY VIEWED
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0
Powered by Interchange version 5.7.0

SalesTaxFunction

Define a Perl subroutine that will return a hash reference with sales tax settings.

Synopsis

SalesTaxFunction  Perl code

Scope

This directive is only available for use in the local (catalog.cfg) configuration file.  It will not affect any other website in any way.  This directive will not work in the global (interchange.cfg) configuration file. 

Description

This directives is used to define a Perl subroutine that will return a hash reference with the sales tax settings.

Warning

Warning

The returned hash reference must contain a "DEFAULT" key.  All other values are optional.

See the Interchange sales tax calculations page for more information on how Interchange uses the provided values to calculate sales tax.

Examples

Query a table, or a text file in this case, tax rates used by a particular vendor

SalesTaxFunction  <<EOS
    my $vendor_code = $Session->{source};

    my $tax = $TextSearch->hash({
        fi => 'salestax.asc',
        sf => 'vendor_code',
        se => $vendor_code,
        ml => 1000,
    });
    $tax ||= {};
    $tax->{DEFAULT} = 0.00;

    return $tax;
EOS

Simply define and return a Perl hash reference

SalesTaxFunction  <<EOS
return {
    DEFAULT => 0.000,
    IL      => 0.075,
    OH      => 0.065,
};
EOS

See Also

Category:  Local config directives
Last modified by: Kevin Walsh
Modification date: Sunday 2 July 2006 at 9:12 AM (EDT)

MiniVend Documentation

Date Size Filename Notes
15 April 2000 391,156 mvdocs-4.04.tar.gz
27 March 2000 392,287 mvdocs-4.03.tar.gz
01 March 2000 389,979 mvdocs-4.01.tar.gz
26 February 2000 632,848 mvdocs-4.0.tar.gz
06 June 1999 612,163 mvdocs-3.14.tar.gz

MiniMate (MiniVend Administration)

Date Size Filename Notes
08 March 2000 82,169 MiniMate-4.0.0.1m.tar.gz
27 February 2000 74,975 MiniMate-4.0.0.1.tar.gz
23 February 2000 74,994 MiniMate-4.0beta2.0.1.tar.gz
Beta test
15 December 1999 131,850 MiniMate-4.0alpha8.0.1m_b2.tar.gz
Alpha test
15 December 1999 108,287 MiniMate-4.0alpha8.0.1.tar.gz
Alpha test
11 December 1999 117,133 MiniMate-4.0alpha6.0.3.tar.gz
Alpha test
11 December 1999 106,182 MiniMate-4.0alpha6.0.2.tar.gz
Alpha test
09 December 1999 106,037 MiniMate-4.0alpha6.0.1.tar.gz
Alpha test
07 December 1999 102,457 MiniMate-4.0alpha5.0.1.tar.gz
Alpha test
05 December 1999 94,834 MiniMate-4.0alpha4.0.1.tar.gz
Alpha test
03 November 1999 93,653 MiniMate-3.14.0.3.1999110417.tar.gz
04 August 1999 86,027 MiniMate-3.14.0.3.1999080521.tar.gz
11 July 1999 76,855 MiniMate-3.14.0.3.tar.gz
28 June 1999 74,418 MiniMate-3.14.0.2.tar.gz
28 June 1999 74,125 MiniMate-3.14.0.1.tar.gz

Vend (MiniVend's Predecessor)

Date Size Filename Notes
13 March 1996 79,973 vend-0.3.8.tar.gz
11 March 1996 79,942 vend-0.3.7.tar.gz
25 February 1996 73,217 vend-0.3.6.tar.gz
31 January 1996 68,518 vend-0.3.5.tar.gz
31 January 1996 68,370 vend-0.3.4.tar.gz
14 December 1995 66,773 vend-0.3.3.tar.gz
04 December 1995 57,561 vend-0.3.2.tar.gz
03 December 1995 57,221 vend-0.3.1.tar.gz
27 November 1995 56,979 vend-0.3.0.tar.gz
22 February 1995 30,261 vend-0.2.1.tar.gz
21 February 1995 31,014 vend-0.2.tar.gz
01 February 1995 30,807 vend-0.1.tar.gz

Akopia Tallyman

Date Size Filename Notes
13 June 2000 1,311,818 tallyman-2.0.7.tar.gz
21 February 2000 1,499,470 tallyman-2.0.6.tar.gz
01 February 2000 1,498,039 tallyman-2.0b5.tar.gz
Beta test
Home  |  Legal nonsense  |  Privacy policy  |  Contact us