brotherton-erpnext/erpnext/docs/current/models/setup/company.md

33 KiB

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

Legal Entity / Subsidiary with a separate Chart of Accounts belonging to the Organization.

Fields

    <tr class="info">
        <td>1</td>
        <td ><code>details</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>2</td>
        <td class="danger" title="Mandatory"><code>company_name</code></td>
        <td >
            Data</td>
        <td >
            Company
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>3</td>
        <td class="danger" title="Mandatory"><code>abbr</code></td>
        <td >
            Data</td>
        <td >
            Abbr
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>4</td>
        <td ><code>change_abbr</code></td>
        <td >
            Button</td>
        <td >
            Change Abbreviation
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>5</td>
        <td ><code>cb0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>6</td>
        <td ><code>domain</code></td>
        <td >
            Select</td>
        <td >
            Domain
            
        </td>
        <td>
            <pre>Distribution

Manufacturing Retail Services

    <tr class="info">
        <td>7</td>
        <td ><code>charts_section</code></td>
        <td >
            Section Break</td>
        <td >
            Default Values
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>8</td>
        <td ><code>default_letter_head</code></td>
        <td >
            Link</td>
        <td >
            Default Letter Head
            
        </td>
        <td>

Letter Head

        </td>
    </tr>
    
    <tr >
        <td>9</td>
        <td ><code>default_holiday_list</code></td>
        <td >
            Link</td>
        <td >
            Default Holiday List
            
        </td>
        <td>

Holiday List

        </td>
    </tr>
    
    <tr >
        <td>10</td>
        <td class="danger" title="Mandatory"><code>country</code></td>
        <td >
            Link</td>
        <td >
            Country
            
        </td>
        <td>

Country

        </td>
    </tr>
    
    <tr >
        <td>11</td>
        <td ><code>column_break_10</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>12</td>
        <td class="danger" title="Mandatory"><code>default_currency</code></td>
        <td >
            Link</td>
        <td >
            Default Currency
            
        </td>
        <td>

Currency

        </td>
    </tr>
    
    <tr >
        <td>13</td>
        <td ><code>chart_of_accounts</code></td>
        <td >
            Select</td>
        <td >
            Chart of Accounts
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>14</td>
        <td ><code>default_terms</code></td>
        <td >
            Link</td>
        <td >
            Default Terms
            
        </td>
        <td>

Terms and Conditions

        </td>
    </tr>
    
    <tr class="info">
        <td>15</td>
        <td ><code>default_settings</code></td>
        <td >
            Section Break</td>
        <td >
            Accounts Settings
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>16</td>
        <td ><code>default_bank_account</code></td>
        <td >
            Link</td>
        <td >
            Default Bank Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>17</td>
        <td ><code>default_cash_account</code></td>
        <td >
            Link</td>
        <td >
            Default Cash Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>18</td>
        <td ><code>default_receivable_account</code></td>
        <td >
            Link</td>
        <td >
            Default Receivable Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>19</td>
        <td ><code>round_off_account</code></td>
        <td >
            Link</td>
        <td >
            Round Off Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>20</td>
        <td ><code>column_break0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>21</td>
        <td ><code>default_payable_account</code></td>
        <td >
            Link</td>
        <td >
            Default Payable Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>22</td>
        <td ><code>default_expense_account</code></td>
        <td >
            Link</td>
        <td >
            Default Cost of Goods Sold Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>23</td>
        <td ><code>default_income_account</code></td>
        <td >
            Link</td>
        <td >
            Default Income Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>24</td>
        <td ><code>round_off_cost_center</code></td>
        <td >
            Link</td>
        <td >
            Round Off Cost Center
            
        </td>
        <td>

Cost Center

        </td>
    </tr>
    
    <tr class="info">
        <td>25</td>
        <td ><code>section_break_22</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>26</td>
        <td ><code>cost_center</code></td>
        <td >
            Link</td>
        <td >
            Cost Center
            
        </td>
        <td>

Cost Center

        </td>
    </tr>
    
    <tr >
        <td>27</td>
        <td ><code>credit_days_based_on</code></td>
        <td >
            Select</td>
        <td >
            Credit Days Based On
            
        </td>
        <td>
            <pre>

Fixed Days Last Day of the Next Month

    <tr >
        <td>28</td>
        <td ><code>credit_days</code></td>
        <td >
            Int</td>
        <td >
            Credit Days
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>29</td>
        <td ><code>credit_limit</code></td>
        <td >
            Currency</td>
        <td >
            Credit Limit
            
        </td>
        <td>
            <pre>default_currency</pre>
        </td>
    </tr>
    
    <tr >
        <td>30</td>
        <td ><code>column_break_26</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>31</td>
        <td ><code>yearly_bgt_flag</code></td>
        <td >
            Select</td>
        <td >
            If Yearly Budget Exceeded (for expense account)
            
        </td>
        <td>
            <pre>

Warn Ignore Stop

    <tr >
        <td>32</td>
        <td ><code>monthly_bgt_flag</code></td>
        <td >
            Select</td>
        <td >
            If Monthly Budget Exceeded (for expense account)
            
        </td>
        <td>
            <pre>

Warn Ignore Stop

    <tr class="info">
        <td>33</td>
        <td ><code>auto_accounting_for_stock_settings</code></td>
        <td >
            Section Break</td>
        <td >
            Stock Settings
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>34</td>
        <td ><code>stock_received_but_not_billed</code></td>
        <td >
            Link</td>
        <td >
            Stock Received But Not Billed
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>35</td>
        <td ><code>stock_adjustment_account</code></td>
        <td >
            Link</td>
        <td >
            Stock Adjustment Account
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr >
        <td>36</td>
        <td ><code>column_break_32</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>37</td>
        <td ><code>expenses_included_in_valuation</code></td>
        <td >
            Link</td>
        <td >
            Expenses Included In Valuation
            
        </td>
        <td>

Account

        </td>
    </tr>
    
    <tr class="info">
        <td>38</td>
        <td ><code>company_info</code></td>
        <td >
            Section Break</td>
        <td >
            Company Info
            <p class="text-muted small">
                For reference only.</p>
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>39</td>
        <td ><code>address</code></td>
        <td >
            Small Text</td>
        <td >
            Address
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>40</td>
        <td ><code>column_break1</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>41</td>
        <td ><code>phone_no</code></td>
        <td >
            Data</td>
        <td >
            Phone No
            
        </td>
        <td>
            <pre>Phone</pre>
        </td>
    </tr>
    
    <tr >
        <td>42</td>
        <td ><code>fax</code></td>
        <td >
            Data</td>
        <td >
            Fax
            
        </td>
        <td>
            <pre>Phone</pre>
        </td>
    </tr>
    
    <tr >
        <td>43</td>
        <td ><code>email</code></td>
        <td >
            Data</td>
        <td >
            Email
            
        </td>
        <td>
            <pre>Email</pre>
        </td>
    </tr>
    
    <tr >
        <td>44</td>
        <td ><code>website</code></td>
        <td >
            Data</td>
        <td >
            Website
            
        </td>
        <td></td>
    </tr>
    
    <tr class="info">
        <td>45</td>
        <td ><code>registration_info</code></td>
        <td >
            Section Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>46</td>
        <td ><code>registration_details</code></td>
        <td >
            Code</td>
        <td >
            Registration Details
            <p class="text-muted small">
                Company registration numbers for your reference. Tax numbers etc.</p>
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>47</td>
        <td ><code>delete_company_transactions</code></td>
        <td >
            Button</td>
        <td >
            Delete Company Transactions
            
        </td>
        <td></td>
    </tr>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.setup.doctype.company.company</h4>






    
<h3 style="font-weight: normal;">Class <b>Company</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="_set_default_account" href="#_set_default_account" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>_set_default_account</b>
    <i class="text-muted">(self, fieldname, account_type)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

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

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

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

<p class="docs-attr-name">
    <a name="check_if_transactions_exist" href="#check_if_transactions_exist" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>check_if_transactions_exist</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="create_default_accounts" href="#create_default_accounts" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>create_default_accounts</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="create_default_cost_center" href="#create_default_cost_center" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>create_default_cost_center</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="create_default_warehouses" href="#create_default_warehouses" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>create_default_warehouses</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="install_country_fixtures" href="#install_country_fixtures" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>install_country_fixtures</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="on_trash" href="#on_trash" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_trash</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p>Trash accounts and cost centers for this company if no gl entry exists</p>

<p class="docs-attr-name">
    <a name="on_update" href="#on_update" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_update</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="onload" href="#onload" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>onload</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="set_default_accounts" href="#set_default_accounts" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>set_default_accounts</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_currency" href="#validate_currency" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_currency</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_default_accounts" href="#validate_default_accounts" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_default_accounts</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 class="docs-attr-name">
    <a name="erpnext.setup.doctype.company.company.get_company_currency" href="#erpnext.setup.doctype.company.company.get_company_currency" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.setup.doctype.company.company.<b>get_company_currency</b>
    <i class="text-muted">(company)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="erpnext.setup.doctype.company.company.get_name_with_abbr" href="#erpnext.setup.doctype.company.company.get_name_with_abbr" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.setup.doctype.company.company.<b>get_name_with_abbr</b>
    <i class="text-muted">(name, company)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p><span class="label label-info">Public API</span>
    <br><code>/api/method/erpnext.setup.doctype.company.company.replace_abbr</code>
</p>
<p class="docs-attr-name">
    <a name="erpnext.setup.doctype.company.company.replace_abbr" href="#erpnext.setup.doctype.company.company.replace_abbr" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	erpnext.setup.doctype.company.company.<b>replace_abbr</b>
    <i class="text-muted">(company, old, new)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

    <h4>Linked In:</h4>
    <ul>
    
		
        <li>

Account

        <li>

Appraisal

        <li>

Attendance

        <li>

Authorization Rule

        <li>

BOM

        <li>

C-Form

        <li>

Cost Center

        <li>

Delivery Note

        <li>

Email Digest

        <li>

Employee

        <li>

Expense Claim

        <li>

Fiscal Year Company

        <li>

GL Entry

        <li>

Global Defaults

        <li>

Installation Note

        <li>

Issue

        <li>

Journal Entry

        <li>

Landed Cost Voucher

        <li>

Lead

        <li>

Leave Application

        <li>

Leave Block List

        <li>

Maintenance Schedule

        <li>

Maintenance Visit

        <li>

Material Request

        <li>

Mode of Payment Account

        <li>

Offer Letter

        <li>

Opportunity

        <li>

Party Account

        <li>

Payment Reconciliation

        <li>

Payment Tool

        <li>

Period Closing Voucher

        <li>

POS Profile

        <li>

Pricing Rule

        <li>

Process Payroll

        <li>

Production Order

        <li>

Production Planning Tool

        <li>

Project

        <li>

Purchase Invoice

        <li>

Purchase Order

        <li>

Purchase Receipt

        <li>

Purchase Taxes and Charges Template

        <li>

Quotation

        <li>

Salary Slip

        <li>

Salary Structure

        <li>

Sales Invoice

        <li>

Sales Order

        <li>

Sales Taxes and Charges Template

        <li>

Serial No

        <li>

Shipping Rule

        <li>

Shopping Cart Settings

        <li>

Stock Entry

        <li>

Stock Ledger Entry

        <li>

Stock Reconciliation

        <li>

Supplier Quotation

        <li>

Task

        <li>

Tax Rule

        <li>

Warehouse

        <li>

Warranty Claim

    </ul>