Develop > Persistence layer > Data assets > Create tax assets


Create tax fulfillment assets

In order for the tax assets to work correctly in your store, associate the tax jurisdiction groups in the store to the fulfillment center used by the store, and then associate a calculation rule to both.

You must create the fulfillment assets before you can associate the tax assets to a fulfillment center. For more information about creating fulfillment assets, see Create fulfillment assets.

After you have created the fulfillment assets, associate the tax assets to them, by adding information to the TAXJCRULE table.


Procedure

  1. Create an XML file that follows the wcs.dtd.

  2. Use the following example as the guide, in the XML file add information for the TAXJCRULE table:

    <taxjcrule 
    taxjcrule_id="@taxjcrule_id_1"
    calrule_id="@calrule_id_10"
    ffmcenter_id="@ffmcenter_id_1"
    jurstgroup_id="@jurstgroup_id_2"
    precedence="0"/>
    

  3. Repeat step 2 for each jurisdiction group, fulfillment center and rule association in the store.

  4. To enable taxes for a system with multiple fulfillment centers specify the default fulfillment center:

    1. For Non-ATP Inventory set STORE.FFMCENTER_ID=your-desired-default-fulfillment-center:

      db2 update store set ffmcenter_id=<your-desired-default-fulfillment-center> where store_id=<your-store>          
      

    2. For ATP-Inventory set SHPARRANGE.PRECEDENCE=1 where SHPARRANGE.FFMCENTER_ID=your-desired-default-fulfillment-center:

      db2 update shparrange set precedence=1 where ffcenter_id=<your-desired-default-fulfillment-center>
      


Related concepts

Tax assets


Related tasks

Load a store

Load database asset groups

Related reference

Calculation rule - tax data model

Database asset groups dependencies


+

Search Tips   |   Advanced Search