Version 6.7.7 Source

Table Name: `tabStock Entry`

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `items_section` | Section Break |  |
2 | `title` | Data | Title |
3 | `naming_series` | Select | Series |
    STE-
4 | `purpose` | Select | Purpose |
    Material Issue
    Material Receipt
    Material Transfer
    Material Transfer for Manufacture
    Manufacture
    Repack
    Subcontract
5 | `production_order` | Link | Production Order | Production Order
6 | `purchase_order` | Link | Purchase Order | Purchase Order
7 | `delivery_note_no` | Link | Delivery Note No | Delivery Note
8 | `sales_invoice_no` | Link | Sales Invoice No | Sales Invoice
9 | `purchase_receipt_no` | Link | Purchase Receipt No | Purchase Receipt
10 | `from_bom` | Check | From BOM |
11 | `col2` | Column Break |  |
12 | `posting_date` | Date | Posting Date |
13 | `posting_time` | Time | Posting Time |
14 | `sb1` | Section Break |  |
15 | `bom_no` | Link | BOM No | BOM
16 | `fg_completed_qty` | Float | For Quantity As per Stock UOM |
17 | `cb1` | Column Break |  |
18 | `use_multi_level_bom` | Check | Use Multi-Level BOM Including items for sub assemblies |
19 | `get_items` | Button | Get Items |
20 | `section_break_12` | Section Break |  |
21 | `from_warehouse` | Link | Default Source Warehouse | Warehouse
22 | `cb0` | Column Break |  |
23 | `to_warehouse` | Link | Default Target Warehouse | Warehouse
24 | `sb0` | Section Break |  |
    Simple
25 | `items` | Table | Items | Stock Entry Detail
26 | `get_stock_and_rate` | Button | Update Rate and Availability |
    get_stock_and_rate
27 | `section_break_19` | Section Break |  |
28 | `total_incoming_value` | Currency | Total Incoming Value |
    Company:company:default_currency
29 | `column_break_22` | Column Break |  |
30 | `total_outgoing_value` | Currency | Total Outgoing Value |
    Company:company:default_currency
31 | `value_difference` | Currency | Total Value Difference (Out - In) |
    Company:company:default_currency
32 | `difference_account` | Link | Difference Account | Account
33 | `additional_costs_section` | Section Break | Additional Costs |
34 | `additional_costs` | Table | Additional Costs | Landed Cost Taxes and Charges
35 | `total_additional_costs` | Currency | Total Additional Costs |
    Company:company:default_currency
36 | `contact_section` | Section Break | Customer or Supplier Details |
37 | `supplier` | Link | Supplier | Supplier
38 | `supplier_name` | Data | Supplier Name |
39 | `supplier_address` | Small Text | Supplier Address |
40 | `column_break_39` | Column Break |  |
41 | `customer` | Link | Customer | Customer
42 | `customer_name` | Data | Customer Name |
43 | `customer_address` | Small Text | Customer Address |
44 | `printing_settings` | Section Break | Printing Settings |
45 | `select_print_heading` | Link | Print Heading | Print Heading
46 | `letter_head` | Link | Letter Head | Letter Head
47 | `more_info` | Section Break | More Information |
48 | `project_name` | Link | Project Name | Project
49 | `remarks` | Text | Remarks |
50 | `col5` | Column Break |  |
51 | `total_amount` | Currency | Total Amount |
    Company:company:default_currency
52 | `company` | Link | Company | Company
53 | `fiscal_year` | Link | Fiscal Year | Fiscal Year
54 | `amended_from` | Link | Amended From | Stock Entry
55 | `credit_note` | Link | Credit Note | Journal Entry

### Controller

#### erpnext.stock.doctype.stock_entry.stock_entry

### Class DuplicateEntryForProductionOrderError

Inherits from frappe.exceptions.ValidationError

### Class IncorrectValuationRateError

Inherits from frappe.exceptions.ValidationError

### Class OperationsNotCompleteError

Inherits from frappe.exceptions.ValidationError

### Class StockEntry

Inherits from erpnext.controllers.stock_controller.StockController

add_to_stock_entry_detail (self, item_dict, bom_no=None)

No docs

calculate_rate_and_amount (self, force=False)

No docs

check_duplicate_entry_for_production_order (self)

No docs

check_if_operations_completed (self)

Check if Time Logs are completed against before manufacturing to capture operating costs.

distribute_additional_costs (self)

No docs

get_bom_raw_materials (self, qty)

No docs

get_feed (self)

No docs

get_gl_entries (self, warehouse_account)

No docs

get_issued_qty (self)

No docs

get_item_details (self, args=None, for_update=False)

No docs

get_items (self)

No docs

get_pending_raw_materials (self)

issue (item quantity) that is pending to issue or desire to transfer, whichever is less

get_stock_and_rate (self)

No docs

get_transfered_raw_materials (self)

No docs

get_uom_details (self, args)

Returns dict `{"conversion_factor": [value], "transfer_qty": qty * [value]}`

Parameters:

- `args` - dict with `item_code`, `uom` and `qty`

get_warehouse_details (self, args)

No docs

load_items_from_bom (self)

No docs

on_cancel (self)

No docs

on_submit (self)

No docs

onload (self)

No docs

set_actual_qty (self)

No docs

set_basic_rate (self, force=False)

get stock and incoming rate on posting date

set_basic_rate_for_finished_goods (self, raw_material_cost)

No docs

set_total_amount (self)

No docs

set_total_incoming_outgoing_value (self)

No docs

set_transfer_qty (self)

No docs

update_production_order (self)

No docs

update_stock_ledger (self)

No docs

update_valuation_rate (self)

No docs

validate (self)

No docs

validate_batch (self)

No docs

validate_bom (self)

No docs

validate_finished_goods (self)

validation: finished good quantity should be same as manufacturing quantity

validate_item (self)

No docs

validate_production_order (self)

No docs

validate_purchase_order (self)

Throw exception if more raw material is transferred against Purchase Order than in the raw materials supplied table

validate_purpose (self)

No docs

validate_warehouse (self)

perform various (sometimes conditional) validations on warehouse

validate_with_material_request (self)

No docs

erpnext.stock.doctype.stock_entry.stock_entry.get_additional_costs (production_order=None, bom_no=None, fg_qty=None)

No docs

erpnext.stock.doctype.stock_entry.stock_entry.get_operating_cost_per_unit (production_order=None, bom_no=None)

No docs

Public API
`/api/method/erpnext.stock.doctype.stock_entry.stock_entry.get_production_order_details`

erpnext.stock.doctype.stock_entry.stock_entry.get_production_order_details (production_order)

No docs

#### Linked In:

- Journal Entry
- Stock Entry