<?xml version="1.0"?>
<!--
/**
 * Avalara_AvaTax
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @copyright  Copyright (c) 2016 Avalara, Inc.
 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="advanced" translate="label comment" showInDefault="0" showInWebsite="0" showInStore="0" sortOrder="80">
        <label>Advanced</label>
        <frontend_model>Avalara\AvaTax\Block\Adminhtml\System\Config\ExpandedFieldSet</frontend_model>
        
        <field id="avatax_table_exemptions" translate="label" type="textarea" sortOrder="1910" showInDefault="0">
            <config_path>tax/avatax_advanced/avatax_table_exemptions</config_path>
            <label>Tables Exemptions List (comma-separated list)</label>
            <comment><![CDATA[At each stage of ordering (adding to cart, choosing the payment address and delivery address, delivery method, etc.) the ClassyLama_Avatax extension monitors the correctness of the calculated taxes, updates their values through the Avalara service API and writes to certain tables in the database of the website.]]></comment>
        </field>
        <group id="advanced_allowed_attributes" translate="label comment" showInDefault="0" showInWebsite="0" showInStore="0" sortOrder="1911">
            <label>Allowed Attributes</label>
            <attribute type="expanded">0</attribute>
            <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
            <field id="paymentdetails" sortOrder="1912" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/paymentdetails</config_path>
                <label>Payment details attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="shippinginformation" sortOrder="1913" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/shippinginformation</config_path>
                <label>Shipping information attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="quotedetailsitem" sortOrder="1914" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/quotedetailsitem</config_path>
                <label>Quote details item attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="cart" sortOrder="1915" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/cart</config_path>
                <label>Cart attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="order" sortOrder="1916" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/order</config_path>
                <label>Order attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="invoice" sortOrder="1917" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/invoice</config_path>
                <label>Invoice attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="creditmemo" sortOrder="1918" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/creditmemo</config_path>
                <label>Credit memo attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="appliedtaxrate" sortOrder="1919" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/appliedtaxrate</config_path>
                <label>Applied tax rate attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="cartitem" sortOrder="1920" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/cartitem</config_path>
                <label>Cart item attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="orderitem" sortOrder="1921" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/orderitem</config_path>
                <label>Order item attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="invoiceitem" sortOrder="1922" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/invoiceitem</config_path>
                <label>Invoice item attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="creditmemoitem" sortOrder="1923" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/creditmemoitem</config_path>
                <label>Credit memo item attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
            <field id="totals" sortOrder="1924" type="text" showInDefault="0" showInWebsite="0" showInStore="0">
                <config_path>tax/avatax_advanced_attribute_codes/totals</config_path>
                <label>Totals attribute codes</label>
                <comment>Comma-separated list</comment>
            </field>
        </group>                
        <depends>
            <field id="tax/avatax_configuration/enabled">1</field>
        </depends>
    </group>
</include>