brotherton-erpnext/erpnext/docs/current/models/manufacturing/bom_replace_tool.html
2015-12-03 18:28:19 +05:30

187 lines
4.2 KiB
HTML

<!-- title: BOM Replace Tool -->
<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/manufacturing/doctype/bom_replace_tool"
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
</div>
<span class="label label-info">Single</span>
Replace a particular BOM in all other BOMs where it is used. It will replace the old BOM link, update cost and regenerate "BOM Explosion Item" table as per new BOM
<h3>Fields</h3>
<table class="table table-bordered" style="table-layout: fixed;">
<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 class="danger" title="Mandatory"><code>current_bom</code></td>
<td >
Link</td>
<td >
Current BOM
<p class="text-muted small">
The BOM which will be replaced</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/manufacturing/bom">BOM</a>
</td>
</tr>
<tr >
<td>2</td>
<td class="danger" title="Mandatory"><code>new_bom</code></td>
<td >
Link</td>
<td >
New BOM
<p class="text-muted small">
The new BOM after replacement</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/manufacturing/bom">BOM</a>
</td>
</tr>
<tr >
<td>3</td>
<td ><code>replace</code></td>
<td >
Button</td>
<td >
Replace
</td>
<td>
<pre>replace_bom</pre>
</td>
</tr>
</tbody>
</table>
<hr>
<h3>Controller</h3>
<h4>erpnext.manufacturing.doctype.bom_replace_tool.bom_replace_tool</h4>
<h3 style="font-weight: normal;">Class <b>BOMReplaceTool</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="get_parent_boms" href="#get_parent_boms" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_parent_boms</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="replace_bom" href="#replace_bom" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>replace_bom</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="update_new_bom" href="#update_new_bom" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>update_new_bom</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_bom" href="#validate_bom" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_bom</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>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->