## How taxes sync Invoices go to NetSuite with the tax ChargeOver worked out, whether that's ChargeOver's built-in tax rates or AvaTax. NetSuite doesn't work out its own tax, so the invoice total in NetSuite always matches ChargeOver. How the tax goes on the invoice depends on how your NetSuite account does tax. ChargeOver checks this for you, and shows it under **Taxes** on the **Configuration** tab of the NetSuite page. | NetSuite tax setup | How ChargeOver sends tax | | -------------------------- | ----------------------------------------------------------------------------------------------------------------- | | SuiteTax | Each line's tax goes in the invoice's **Tax Details**, with **Tax Details Override** checked so NetSuite keeps it. | | Legacy tax (US sales tax) | Taxed lines are marked taxable, with one tax code and a rate that comes out to ChargeOver's tax. | | Legacy tax (VAT/GST) | Each line gets a tax code and ChargeOver's tax amount. | | Tax is turned off | Invoices without tax sync like normal. Invoices with tax don't sync, and say why. | Customers that are tax exempt in ChargeOver don't get any tax in NetSuite either. If your account uses SuiteTax, the role ChargeOver logs in with needs the **Tax Details Tab** permission at **Edit** (on the **Lists** subtab of the role), or invoices with tax won't sync. See [Step 2](./connecting.mdx#step-2-create-a-role-for-chargeover). :::note If your NetSuite account uses legacy US sales tax, NetSuite only allows one tax rate on an invoice. If no rate comes out to exactly ChargeOver's tax (rare, but possible with several different taxes on one invoice), the invoice won't sync, so NetSuite never gets a different total. ::: ### Tax codes Each tax on an invoice goes on the NetSuite tax code (`Setup > Accounting > Tax Codes`) with the same name as the tax's **Accounting Tax Code** in ChargeOver, or the same name as the tax itself. For example, a ChargeOver tax named `CA State Tax` goes on the NetSuite tax code named `CA State Tax`. If the names don't match, pick a **Default tax code** under **Taxes** on the **Configuration** tab of the NetSuite page. If you use AvaTax, you'll want a default, since AvaTax names its taxes itself (like `CA STATE TAX`). To send different taxes to different tax codes, add **Tax code rules**. The first line is the field to look at, then one `value=NetSuite tax code` per line. Anything that doesn't match uses the default. For example: ``` $line.tax_name CA STATE TAX=CA State Tax TX STATE TAX=TX Sales Tax ``` ![](./taxes-settings.png) ## Related - [Invoices](./invoices.mdx) - [NetSuite overview](./netsuite.mdx)