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

5.1 KiB

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

Single

Fields

    <tr >
        <td>1</td>
        <td ><code>default_company</code></td>
        <td >
            Link</td>
        <td >
            Default Company
            
        </td>
        <td>

Company

        </td>
    </tr>
    
    <tr >
        <td>2</td>
        <td class="danger" title="Mandatory"><code>current_fiscal_year</code></td>
        <td >
            Link</td>
        <td >
            Current Fiscal Year
            
        </td>
        <td>

Fiscal Year

        </td>
    </tr>
    
    <tr >
        <td>3</td>
        <td ><code>country</code></td>
        <td >
            Link</td>
        <td >
            Country
            
        </td>
        <td>

Country

        </td>
    </tr>
    
    <tr >
        <td>4</td>
        <td ><code>column_break_8</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>5</td>
        <td class="danger" title="Mandatory"><code>default_currency</code></td>
        <td >
            Link</td>
        <td >
            Default Currency
            
        </td>
        <td>

Currency

        </td>
    </tr>
    
    <tr >
        <td>6</td>
        <td ><code>hide_currency_symbol</code></td>
        <td >
            Select</td>
        <td >
            Hide Currency Symbol
            <p class="text-muted small">
                Do not show any symbol like $ etc next to currencies.</p>
        </td>
        <td>
            <pre>

No Yes

    <tr >
        <td>7</td>
        <td ><code>disable_rounded_total</code></td>
        <td >
            Check</td>
        <td >
            Disable Rounded Total
            <p class="text-muted small">
                If disable, 'Rounded Total' field will not be visible in any transaction</p>
        </td>
        <td></td>
    </tr>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.setup.doctype.global_defaults.global_defaults</h4>






    
<h3 style="font-weight: normal;">Class <b>GlobalDefaults</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="get_defaults" href="#get_defaults" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>get_defaults</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_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>update defaults</p>

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

</div>
<hr>