16
Avalara Tax Configuration Guide document.docx Version Code: V 1.0 Lightwell Avalara Tax Configuration guide

User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

Avalara Tax Configuration Guide

document.docx

Version Code: V 1.0

Lightwell

Avalara Tax Configuration guide

Page 2: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

Document Distribution and Change Notification

This document is available from the author. When reissued with changes, the document owner will notify all users, either by personal note, or general notice on the appropriate forum.

Summary of Changes

Changes resulting in document revisions will be summarized in this table in chronological sequence. Revision bars (|) will highlight the text changed in new document versions.

Version Date Author(s) Change Description1.0 12/04/2014 Lightwell Initial Draft2.0 16/07/2014 Lightwell Avalara user guide

Avalara Tax Configuration

Page 3: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

Contents1. User Exit Management Configuration...........................................................................................................................4

1.1 Sales Order............................................................................................................................................................4

1.2 Return Order.........................................................................................................................................................5

2. Customer Overrides settings.........................................................................................................................................7

3. Testing Avalara connection...........................................................................................................................................8

4. Setting up Tax codes for Items......................................................................................................................................8

5. Common code setup for Shipping Tax.........................................................................................................................10

6. Common code setup for taxable discounts.................................................................................................................11

Avalara Tax Configuration

Page 4: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

1. User Exit Management Configuration

1.1 Sales OrderIn order to configure IBM Sterling to calculate tax for sales orders, it needs to be implemented under the correct user exit.

This integration will make use of the following Sterling User Exit to make calls to Avalara to make the tax calculations and update the tax for the order:

YFSRecalculateLineTaxUE: used to recalculate the tax for the order at the line level. This user exit is called at the Change Price order modification, when the shipping address changes, at invoicing, and at the calculation of release costs. It is also invoked when the SettledQuantity of an order line changes in order to compute the SettledAmount; these taxes are not stored separately and are only rolled up into the SettledAmount.

This user Exit will be implemented by custom made java code to calculate the tax using the Avalara API.

These are the steps to enable tax calculation on orders, to disable it please remove this UE configuration:

a) Log on to IBM Application Console with your username and password.b) Click on Configuration, and then Launch Applications Manager.c) Select Application platform > System Administration > User Exit Management >

com.yantra.yfs.japi.ue.YFSRecalculateLineTaxUE > Click the green plus next to User Exit Implementation List:

d) Select sales order as Document Type, and enter - com.oxford.oms.ue.CalculateTax under Implement as Java class.

Lightwell Confidential Page 4 9/11/2023

Page 5: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

1.2 Return OrderIn order to configure IBM Sterling to calculate tax for return orders, it needs to be implemented under the correct user exit.

This integration will make use of the following Sterling User Exit to make calls to Avalara to make the tax calculations and update the tax for the return order:

YFSRecalculateLineTaxUE: used to recalculate the tax for the return order at the line level. This user exit is called at the Change Price order modification, when the shipping address changes, at invoicing, and at the calculation of release costs. It is also invoked when the SettledQuantity of an order line changes in order to compute the SettledAmount; these taxes are not stored separately and are only rolled up into the SettledAmount.

OMPGetReturnOrderPriceUE: The OMPGetReturnOrderPriceUE user exit is called to compute the refund amount on return orders.

This user Exit will be implemented by custom made java code to calculate the tax using the Avalara API.

These are the steps to enable tax calculation on return orders, to disable it please remove this UE configuration:

a) Log on to IBM Application Console with your username and password.b) Click on Configuration, and then Launch Applications Manager.c) Select Application platform > System Administration > User Exit Management >

com.yantra.yfs.japi.ue.YFSRecalculateLineTaxUE > Click the green plus next to User Exit Implementation List:

d) Select Return order as Document Type, and enter - com.oxford.oms.ue.CalculateTax under Implement as Java class.

Lightwell Confidential Page 5 9/11/2023

Page 6: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

e) Close, and find com.yantra.yfs.japi.ue.OMPGetReturnOrderPriceUE, double click and put Return Order as Document Type, and enter com.oxford.oms.ue.CalculateReturnTax under Implement as Java… and save.

Lightwell Confidential Page 6 9/11/2023

Page 7: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

2. Customer Overrides settingsPredefined integration services in Sterling use property file entries as placeholders for actual names. These include values for things like queue names, provider URLs, QCF lookups, and more. The following property file entries must be updated with the values appropriate to the implementation. Note the values for the Account/CustomerCode/CompanyCode are specific to the customer, and the URL is either the development URL or the production URL, in this example we have the development URL.

customer_overrides.propertiesProperty Name Value Descriptionyfs.avatax4j.url https://development.avalara.net Development:

https://development.avalara.net/

Production: https://avatax.avalara.net/yfs.avatax4j.account 1100139003 The unique account number provided by

Avalara for verification against the service.

yfs.avatax4j.license 4962709BCBB8D2F3 The unique alpha-numeric key provided by Avalara for verification against the service.

yfs.avatax4j.CustomerCode anonymous The client application customer reference code. This is required since it is the key to the Exemption Certificate Management Service in the Admin Console. It is mapped to CustomerRewardsNo in Sterling, and if this field is blank, then it uses the value here ‘anonymous’ because a value needs to be sent for CustomerCode.

yfs.avatax4j.CompanyCode Oxford The code that identifies the company in the AvaTax account in which the document should be posted. This code is declared during the company setup in the AvaTax Admin Console. If no value is passed, the document will be assigned to the default company.

yfs.taxEngine com.oxford.oms.api.AvalaraTax Dynamic class name for calculating Sales tax.

yfs.returnTaxEngine com.oxford.oms.api.AvalaraTaxReturn Dynamic class name for calculating Return tax.

yfs.returnTaxMethod calculateReturnTax Dynamic method name for calculating Return tax.

yfs.taxMethod calculateTax Dynamic method name for calculating Sales tax.

Lightwell Confidential Page 7 9/11/2023

Page 8: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

3. Testing Avalara connectionIn order to test the connection to Avalara is working, we have created a command that uses the ping operation to test the tax service connection:

1) In command prompt navigate to <SterlingHome>/Foundation/bin2) Run testAvalaraConnection.cmd3) If the Ping result is Success then your connection is working, otherwise check that the URL, account, and licence

numbers here are correct for the development/production environment you are trying to connect to.

4. Setting up Tax codes for ItemsProduct taxability code of the item. Can be an AvaTax system tax code, or a custom-defined tax code. They need to be setup for each Item or AvaTax will work out the tax using the default tax code P0000000 and that item will calculate as taxable. To set this up for an Item:

1) Log into IBM Sterling Business Center

Lightwell Confidential Page 8 9/11/2023

Page 9: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

2) Click on Products, then Find Item:

3) Search for the item that you wish to add tax code

4) Under Specifications on the left panel, choose Manage Classification Values then enter the tax code in the Tax Product Code box and save.

Lightwell Confidential Page 9 9/11/2023

Page 10: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

5. Common code setup for Shipping Tax

1. Create a new custom common code type in application manager by selecting Application Platform > Presentation > Custom Common Code Types and click on the green cross to add another Custom Common code type.

2. Enter the following:Code Type: TAX_PROD_CODEShort Description: Tax Product CodeLong Description: Tax Product Code

3. For the new code type, create a new common code value as follows:

Tax Product Code: DEFAULT_SHIPPINGShort Description: field contains the value of the tax produce code (EX : FR)Long Description: Any description for the code valueThis will assign FR as the tax code for charge name Shipping.

Lightwell Confidential Page 10 9/11/2023

Page 11: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

6. Common code setup for taxable discounts4. Create a new custom common code type in application manager by selecting Application Platform >

Presentation > Custom Common Code Types and click on the green cross to add another Custom Common code type.

5. Enter the following:Code Type: DISCOUNT_CHARGE_CODEShort Description: Discount Charge CodeLong Description: Discount Charge Code

6. Create a new custom common codes in application manager by selecting Application Platform > Presentation > Custom Common Code Types and click on the green cross to add another Custom Common codes.

7. Enter the following:Code Value: ManufacturerDescription: YThis means that any charge codes that are named Manufacturer under discount charge name will be taxed.

Lightwell Confidential Page 11 9/11/2023

Page 12: User Exit Management Configuration - Lightwell · Web viewAvalara Tax Configuration.docx Version Code: V 1.0 Lightwell Document Distribution and Change Notification This document

Lightwell Confidential Page 12 9/11/2023