brotherton-erpnext/erpnext/docs/current/models/accounts/tax_rule.html
2015-12-10 17:58:12 +05:30

608 lines
13 KiB
HTML

<!-- title: Tax Rule -->
<div class="dev-header">
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
Version 6.x.x</a>
<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>
</div>
<p><b>Table Name:</b> <code>tabTax Rule</code></p>
<h3>Fields</h3>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 5%">Sr</th>
<th style="width: 25%">Fieldname</th>
<th style="width: 20%">Type</th>
<th style="width: 25%">Label</th>
<th style="width: 25%">Options</th>
</tr>
</thead>
<tbody>
<tr >
<td>1</td>
<td ><code>tax_type</code></td>
<td >
Select</td>
<td >
Tax Type
</td>
<td>
<pre>Sales
Purchase</pre>
</td>
</tr>
<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>
<a href="https://frappe.github.io/erpnext/current/models/accounts/sales_taxes_and_charges_template">Sales Taxes and Charges Template</a>
</td>
</tr>
<tr >
<td>5</td>
<td ><code>purchase_tax_template</code></td>
<td >
Link</td>
<td >
Purchase Tax Template
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/accounts/purchase_taxes_and_charges_template">Purchase Taxes and Charges Template</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/selling/customer">Customer</a>
</td>
</tr>
<tr >
<td>8</td>
<td ><code>supplier</code></td>
<td >
Link</td>
<td >
Supplier
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/buying/supplier">Supplier</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/geo/country">Country</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/setup/customer_group">Customer Group</a>
</td>
</tr>
<tr >
<td>14</td>
<td ><code>supplier_type</code></td>
<td >
Link</td>
<td >
Supplier Type
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/setup/supplier_type">Supplier Type</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/geo/country">Country</a>
</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>
<a href="https://frappe.github.io/erpnext/current/models/setup/company">Company</a>
</td>
</tr>
</tbody>
</table>
<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>
<div style="padding-left: 30px;">
</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>
<div style="padding-left: 30px;">
</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>
<div style="padding-left: 30px;">
</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>
</div>
<div style="padding-left: 30px;">
<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>
</div>
<br>
<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>
</div>
<br>
<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>
</div>
<br>
<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>
</div>
<br>
<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>
<br>
</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>
</div>
<br>
<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>
</div>
<br>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->