brotherton-erpnext/erpnext/docs/current/api/setup/erpnext.setup.utils.html

100 lines
2.7 KiB
HTML
Raw Normal View History

2015-12-03 12:58:19 +00:00
<!-- title: erpnext.setup.utils --><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/blob/develop/erpnext/setup/utils.py"
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
</div>
<p class="docs-attr-name">
<a name="erpnext.setup.utils.before_tests" href="#erpnext.setup.utils.before_tests" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.setup.utils.<b>before_tests</b>
<i class="text-muted">()</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.setup.utils.get_ancestors_of" href="#erpnext.setup.utils.get_ancestors_of" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.setup.utils.<b>get_ancestors_of</b>
<i class="text-muted">(doctype, name)</i>
</p>
<div class="docs-attr-desc"><p>Get ancestor elements of a DocType with a tree structure</p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.setup.utils.get_company_currency" href="#erpnext.setup.utils.get_company_currency" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.setup.utils.<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>
</div>
<br>
<p><span class="label label-info">Public API</span>
<br><code>/api/method/erpnext.setup.utils.get_exchange_rate</code>
</p>
<p class="docs-attr-name">
<a name="erpnext.setup.utils.get_exchange_rate" href="#erpnext.setup.utils.get_exchange_rate" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.setup.utils.<b>get_exchange_rate</b>
<i class="text-muted">(from_currency, to_currency)</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.setup.utils.get_root_of" href="#erpnext.setup.utils.get_root_of" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.setup.utils.<b>get_root_of</b>
<i class="text-muted">(doctype)</i>
</p>
<div class="docs-attr-desc"><p>Get root element of a DocType with a tree structure</p>
</div>
<br>
<!-- autodoc -->