SimpleJapanTax

The SimpleJapanTax component, which appears in the Tax stage of an order processing pipeline, computes a tax rate for the Japanese tax model. It can be used for any country that uses a similar model. The component handles fractions of currency units only at the item level; order-level calculations (order._tax_total and order._tax_included) are rounded to the nearest whole unit.

Note

The SimpleJapanTax component is a simple tool for you to use to calculate tax rates. Microsoft strongly recommends that you have an independent tax professional verify all applicable tax rates and data generated by this component before you use such information for personal or business purposes.

Remarks

The combination of the Key, Apply when, and Country fields determine whether tax should be applied, but only if tax is not already included in the item’s price.

The SimpleJapanTax component first checks the Apply when value. If it is set to Always, the tax is always applied to the order. If Apply when is set to Has any value, the tax is applied to the order whenever the order form contains any value for ship_to_country. If Apply when is set to Equal to Country, the component does a comparison between the value of ship_to_country on the order form and the text string in the Country field on this property page. If there is a match, the component applies the tax whose value is stored in the field specified in Rate Item Key.

Example

To specify that a 9.54% tax rate is included within an item’s price and is not included in another item’s price for items in Japan, do the following:

  1. Add a column for the included tax rate to your product table. The tax rate should be specified as a smallint number:
    jpn_prod_tax_included   smallint  NOT NULL,
    
  2. Add a column for the tax rate to your product table. The tax rate should be specified as a real number:
    jpn_prod_tax_rate       real     NOT NULL,
    
  3. Assign tax rates and tax included values to each product in your product table using an SQL script. This example uses two products, Product Included and Product Excluded. Assign Product Included the 9.54% tax rate with the tax included in the product price. Type 9.54 into the jpn_prod_tax_rate column and 1 (True), in the jpn_prod_tax_included column in the Product Included row. Assign Product Excluded the 9.54% tax rate with the tax not included in the product price. Type 9.54 into the jpn_prod_tax_rate column and 0 (False), in the jpn_prod_tax_included column in the Product Excluded row.
  4. Double-click the SimpleJapanTax icon in the Win32®-based Pipeline Editor, or click the Edit link for the component in the ASP-based Pipeline Editor and enter the following in the resulting property page.
Field Value
Apply when Has any value
Country JPN
Include Item Key _product_jpn_prod_tax_included
Rate Item Key _product_jpn_prod_tax_rate

Note

If the customer types a country in the OrderForm that is not specified in the SimpleJapanTax component configuration, the values of the _tax_total and _tax_included name/value pairs on the order and on the items will not be set.

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.