13 KiB

Version 6.x.x
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/accounts/doctype/tax_rule"
	target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
<p><b>Table Name:</b> <code>tabTax Rule</code></p>

Fields

    <tr >
        <td>1</td>
        <td ><code>tax_type</code></td>
        <td >
            Select</td>
        <td >
            Tax Type
            
        </td>
        <td>
            <pre>Sales

Purchase

    <tr >
        <td>2</td>
        <td ><code>use_for_shopping_cart</code></td>
        <td >
            Check</td>
        <td >
            Use for Shopping Cart
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>3</td>
        <td ><code>column_break_1</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>4</td>
        <td ><code>sales_tax_template</code></td>
        <td >
            Link</td>
        <td >
            Sales Tax Template
            
        </td>
        <td>

Sales Taxes and Charges Template

        </td>
    </tr>
    
    <tr >
        <td>5</td>
        <td ><code>purchase_tax_template</code></td>
        <td >
            Link</td>
        <td >
            Purchase Tax Template
            
        </td>
        <td>

Purchase Taxes and Charges Template

        </td>
    </tr>
    
    <tr class="info">
        <td>6</td>
        <td ><code>filters</code></td>
        <td >
            Section Break</td>
        <td >
            Filters
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>7</td>
        <td ><code>customer</code></td>
        <td >
            Link</td>
        <td >
            Customer
            
        </td>
        <td>

Customer

        </td>
    </tr>
    
    <tr >
        <td>8</td>
        <td ><code>supplier</code></td>
        <td >
            Link</td>
        <td >
            Supplier
            
        </td>
        <td>

Supplier

        </td>
    </tr>
    
    <tr >
        <td>9</td>
        <td ><code>billing_city</code></td>
        <td >
            Data</td>
        <td >
            Billing City
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>10</td>
        <td ><code>billing_state</code></td>
        <td >
            Data</td>
        <td >
            Billing State
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>11</td>
        <td ><code>billing_country</code></td>
        <td >
            Link</td>
        <td >
            Billing Country
            
        </td>
        <td>

Country

        </td>
    </tr>
    
    <tr >
        <td>12</td>
        <td ><code>column_break_2</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>13</td>
        <td ><code>customer_group</code></td>
        <td >
            Link</td>
        <td >
            Customer Group
            
        </td>
        <td>

Customer Group

        </td>
    </tr>
    
    <tr >
        <td>14</td>
        <td ><code>supplier_type</code></td>
        <td >
            Link</td>
        <td >
            Supplier Type
            
        </td>
        <td>

Supplier Type

        </td>
    </tr>
    
    <tr >
        <td>15</td>
        <td ><code>shipping_city</code></td>
        <td >
            Data</td>
        <td >
            Shipping City
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>16</td>
        <td ><code>shipping_state</code></td>
        <td >
            Data</td>
        <td >
            Shipping State
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>17</td>
        <td ><code>shipping_country</code></td>
        <td >
            Link</td>
        <td >
            Shipping Country
            
        </td>
        <td>

Country

        </td>
    </tr>
    
    <tr class="info">
        <td>18</td>
        <td ><code>section_break_4</code></td>
        <td >
            Section Break</td>
        <td >
            Validity
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>19</td>
        <td ><code>from_date</code></td>
        <td >
            Date</td>
        <td >
            From Date
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>20</td>
        <td ><code>column_break_7</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>21</td>
        <td ><code>to_date</code></td>
        <td >
            Date</td>
        <td >
            To Date
            
        </td>
        <td></td>
    </tr>
    
    <tr class="info">
        <td>22</td>
        <td ><code>section_break_6</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>23</td>
        <td ><code>priority</code></td>
        <td >
            Int</td>
        <td >
            Priority
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>24</td>
        <td ><code>column_break_20</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>25</td>
        <td ><code>company</code></td>
        <td >
            Link</td>
        <td >
            Company
            
        </td>
        <td>

Company

        </td>
    </tr>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.accounts.doctype.tax_rule.tax_rule</h4>






    
<h3 style="font-weight: normal;">Class <b>ConflictingTaxRule</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.exceptions.ValidationError</i></h4>

<div class="docs-attr-desc"><p></p>
</div>
<hr>




    
<h3 style="font-weight: normal;">Class <b>IncorrectCustomerGroup</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.exceptions.ValidationError</i></h4>

<div class="docs-attr-desc"><p></p>
</div>
<hr>




    
<h3 style="font-weight: normal;">Class <b>IncorrectSupplierType</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.exceptions.ValidationError</i></h4>

<div class="docs-attr-desc"><p></p>
</div>
<hr>




    
<h3 style="font-weight: normal;">Class <b>TaxRule</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>

<div class="docs-attr-desc"><p></p>
<p class="docs-attr-name">
    <a name="__setup__" href="#__setup__" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>__setup__</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate" href="#validate" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_date" href="#validate_date" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_date</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_filters" href="#validate_filters" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_filters</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_tax_template" href="#validate_tax_template" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_tax_template</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

</div>
<hr>




    

<p><span class="label label-info">Public API</span>
    <br><code>/api/method/erpnext.accounts.doctype.tax_rule.tax_rule.get_party_details</code>
</p>
<p class="docs-attr-name">
    <a name="erpnext.accounts.doctype.tax_rule.tax_rule.get_party_details" href="#erpnext.accounts.doctype.tax_rule.tax_rule.get_party_details" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.accounts.doctype.tax_rule.tax_rule.<b>get_party_details</b>
    <i class="text-muted">(party, party_type, args=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="erpnext.accounts.doctype.tax_rule.tax_rule.get_tax_template" href="#erpnext.accounts.doctype.tax_rule.tax_rule.get_tax_template" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.accounts.doctype.tax_rule.tax_rule.<b>get_tax_template</b>
    <i class="text-muted">(posting_date, args)</i>
</p>
<div class="docs-attr-desc"><p>Get matching tax rule</p>