brotherton-erpnext/erpnext/docs/current/models/stock/serial_no.html

1110 lines
25 KiB
HTML
Raw Normal View History

2015-12-03 12:58:19 +00:00
<!-- title: Serial No -->
<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/stock/doctype/serial_no"
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>tabSerial No</code></p>
Distinct unit of an Item
<h3>Fields</h3>
2015-12-10 11:47:41 +00:00
<table class="table table-bordered">
2015-12-03 12:58:19 +00:00
<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 class="info">
<td>1</td>
<td ><code>details</code></td>
<td >
Section Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>2</td>
<td ><code>column_break0</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>3</td>
<td class="danger" title="Mandatory"><code>serial_no</code></td>
<td >
Data</td>
<td >
Serial No
</td>
<td></td>
</tr>
<tr >
<td>4</td>
<td class="danger" title="Mandatory"><code>item_code</code></td>
<td >
Link</td>
<td >
Item Code
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/stock/item">Item</a>
</td>
</tr>
<tr >
<td>5</td>
<td ><code>warehouse</code></td>
<td >
Link</td>
<td >
Warehouse
<p class="text-muted small">
Warehouse can only be changed via Stock Entry / Delivery Note / Purchase Receipt</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/stock/warehouse">Warehouse</a>
</td>
</tr>
<tr >
<td>6</td>
<td ><code>column_break1</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>7</td>
<td ><code>item_name</code></td>
<td >
Data</td>
<td >
Item Name
</td>
<td></td>
</tr>
<tr >
<td>8</td>
<td ><code>description</code></td>
<td >
Text</td>
<td >
Description
</td>
<td></td>
</tr>
<tr >
<td>9</td>
<td ><code>item_group</code></td>
<td >
Link</td>
<td >
Item Group
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/setup/item_group">Item Group</a>
</td>
</tr>
<tr >
<td>10</td>
<td ><code>brand</code></td>
<td >
Link</td>
<td >
Brand
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/setup/brand">Brand</a>
</td>
</tr>
<tr class="info">
<td>11</td>
<td ><code>purchase_details</code></td>
<td >
Section Break</td>
<td >
Purchase / Manufacture Details
</td>
<td></td>
</tr>
<tr >
<td>12</td>
<td ><code>column_break2</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>13</td>
<td ><code>purchase_document_type</code></td>
<td >
Link</td>
<td >
Creation Document Type
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/core/doctype">DocType</a>
</td>
</tr>
<tr >
<td>14</td>
<td ><code>purchase_document_no</code></td>
<td >
Dynamic Link</td>
<td >
Creation Document No
</td>
<td>
<pre>purchase_document_type</pre>
</td>
</tr>
<tr >
<td>15</td>
<td ><code>purchase_date</code></td>
<td >
Date</td>
<td >
Creation Date
</td>
<td></td>
</tr>
<tr >
<td>16</td>
<td ><code>purchase_time</code></td>
<td >
Time</td>
<td >
Creation Time
</td>
<td></td>
</tr>
<tr >
<td>17</td>
<td ><code>purchase_rate</code></td>
<td >
Currency</td>
<td >
Incoming Rate
</td>
<td>
<pre>Company:company:default_currency</pre>
</td>
</tr>
<tr >
<td>18</td>
<td ><code>column_break3</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>19</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>20</td>
<td ><code>supplier_name</code></td>
<td >
Data</td>
<td >
Supplier Name
</td>
<td></td>
</tr>
<tr class="info">
<td>21</td>
<td ><code>delivery_details</code></td>
<td >
Section Break</td>
<td >
Delivery Details
</td>
<td></td>
</tr>
<tr >
<td>22</td>
<td ><code>delivery_document_type</code></td>
<td >
Link</td>
2015-12-03 12:58:19 +00:00
<td >
Delivery Document Type
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/core/doctype">DocType</a>
2015-12-03 12:58:19 +00:00
</td>
</tr>
<tr >
<td>23</td>
<td ><code>delivery_document_no</code></td>
<td >
Dynamic Link</td>
2015-12-03 12:58:19 +00:00
<td >
Delivery Document No
</td>
<td>
<pre>delivery_document_type</pre>
</td>
2015-12-03 12:58:19 +00:00
</tr>
<tr >
<td>24</td>
<td ><code>delivery_date</code></td>
<td >
Date</td>
<td >
Delivery Date
</td>
<td></td>
</tr>
<tr >
<td>25</td>
<td ><code>delivery_time</code></td>
<td >
Time</td>
<td >
Delivery Time
</td>
<td></td>
</tr>
<tr >
<td>26</td>
<td ><code>is_cancelled</code></td>
<td >
Select</td>
<td class="text-muted" title="Hidden">
Is Cancelled
</td>
<td>
<pre>
Yes
No</pre>
</td>
</tr>
<tr >
<td>27</td>
<td ><code>column_break5</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>28</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>29</td>
<td ><code>customer_name</code></td>
<td >
Data</td>
<td >
Customer Name
</td>
<td></td>
</tr>
<tr class="info">
<td>30</td>
<td ><code>warranty_amc_details</code></td>
<td >
Section Break</td>
<td >
Warranty / AMC Details
</td>
<td></td>
</tr>
<tr >
<td>31</td>
<td ><code>column_break6</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>32</td>
<td ><code>maintenance_status</code></td>
<td >
Select</td>
<td >
Maintenance Status
</td>
<td>
<pre>
Under Warranty
Out of Warranty
Under AMC
Out of AMC</pre>
</td>
</tr>
<tr >
<td>33</td>
<td ><code>warranty_period</code></td>
<td >
Int</td>
<td >
Warranty Period (Days)
</td>
<td></td>
</tr>
<tr >
<td>34</td>
<td ><code>column_break7</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>35</td>
<td ><code>warranty_expiry_date</code></td>
<td >
Date</td>
<td >
Warranty Expiry Date
</td>
<td></td>
</tr>
<tr >
<td>36</td>
<td ><code>amc_expiry_date</code></td>
<td >
Date</td>
<td >
AMC Expiry Date
</td>
<td></td>
</tr>
<tr class="info">
<td>37</td>
<td ><code>more_info</code></td>
<td >
Section Break</td>
<td >
More Information
</td>
<td></td>
</tr>
<tr >
<td>38</td>
<td ><code>serial_no_details</code></td>
<td >
Text Editor</td>
<td >
Serial No Details
</td>
<td></td>
</tr>
<tr >
<td>39</td>
<td class="danger" title="Mandatory"><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.stock.doctype.serial_no.serial_no</h4>
<h3 style="font-weight: normal;">Class <b>SerialNo</b></h3>
<p style="padding-left: 30px;"><i>Inherits from erpnext.controllers.stock_controller.StockController</i></h4>
<div class="docs-attr-desc"><p></p>
</div>
<div style="padding-left: 30px;">
<p class="docs-attr-name">
<a name="__init__" href="#__init__" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>__init__</b>
<i class="text-muted">(self, arg1, arg2=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="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, old, new, merge=False)</i>
</p>
<div class="docs-attr-desc"><p>rename serial_no text fields</p>
</div>
<br>
<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, old, new, merge=False)</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="get_last_sle" href="#get_last_sle" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_last_sle</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="get_stock_ledger_entries" href="#get_stock_ledger_entries" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_stock_ledger_entries</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="on_stock_ledger_entry" href="#on_stock_ledger_entry" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>on_stock_ledger_entry</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="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><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="set_maintenance_status" href="#set_maintenance_status" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>set_maintenance_status</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="set_purchase_details" href="#set_purchase_details" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>set_purchase_details</b>
<i class="text-muted">(self, purchase_sle)</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="set_sales_details" href="#set_sales_details" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>set_sales_details</b>
<i class="text-muted">(self, delivery_sle)</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_item" href="#validate_item" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_item</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p>Validate whether serial no is required for this item</p>
</div>
<br>
<p class="docs-attr-name">
<a name="validate_warehouse" href="#validate_warehouse" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_warehouse</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>
<h3 style="font-weight: normal;">Class <b>SerialNoCannotCannotChangeError</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>SerialNoCannotCreateDirectError</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>SerialNoDuplicateError</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>SerialNoItemError</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>SerialNoNotExistsError</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>SerialNoNotRequiredError</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>SerialNoQtyError</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>SerialNoRequiredError</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>SerialNoWarehouseError</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>
<p class="docs-attr-name">
<a name="erpnext.stock.doctype.serial_no.serial_no.allow_serial_nos_with_different_item" href="#erpnext.stock.doctype.serial_no.serial_no.allow_serial_nos_with_different_item" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>allow_serial_nos_with_different_item</b>
<i class="text-muted">(sle_serial_no, sle)</i>
</p>
<div class="docs-attr-desc"><p>Allows same serial nos for raw materials and finished goods
in Manufacture / Repack type Stock Entry</p>
</div>
<br>
<p class="docs-attr-name">
<a name="erpnext.stock.doctype.serial_no.serial_no.get_item_details" href="#erpnext.stock.doctype.serial_no.serial_no.get_item_details" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>get_item_details</b>
<i class="text-muted">(item_code)</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.stock.doctype.serial_no.serial_no.get_serial_nos" href="#erpnext.stock.doctype.serial_no.serial_no.get_serial_nos" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>get_serial_nos</b>
<i class="text-muted">(serial_no)</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.stock.doctype.serial_no.serial_no.make_serial_no" href="#erpnext.stock.doctype.serial_no.serial_no.make_serial_no" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>make_serial_no</b>
<i class="text-muted">(serial_no, sle)</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.stock.doctype.serial_no.serial_no.process_serial_no" href="#erpnext.stock.doctype.serial_no.serial_no.process_serial_no" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>process_serial_no</b>
<i class="text-muted">(sle)</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.stock.doctype.serial_no.serial_no.update_serial_nos" href="#erpnext.stock.doctype.serial_no.serial_no.update_serial_nos" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>update_serial_nos</b>
<i class="text-muted">(sle, item_det)</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.stock.doctype.serial_no.serial_no.update_serial_nos_after_submit" href="#erpnext.stock.doctype.serial_no.serial_no.update_serial_nos_after_submit" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>update_serial_nos_after_submit</b>
<i class="text-muted">(controller, parentfield)</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.stock.doctype.serial_no.serial_no.validate_serial_no" href="#erpnext.stock.doctype.serial_no.serial_no.validate_serial_no" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.doctype.serial_no.serial_no.<b>validate_serial_no</b>
<i class="text-muted">(sle, item_det)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<h4>Linked In:</h4>
<ul>
<li>
<a href="https://frappe.github.io/erpnext/current/models/buying/quality_inspection">Quality Inspection</a>
</li>
<li>
<a href="https://frappe.github.io/erpnext/current/models/support/warranty_claim">Warranty Claim</a>
</li>
</ul>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->