Version 6.x.x Source

Table Name: tabProduction Order

Fields

Sr Fieldname Type Label Options
1 item Section Break
icon-gift
2 naming_series Select Series
PRO-
3 status Select Status
Draft
Submitted
Stopped
In Process
Completed
Cancelled
4 production_item Link Item To Manufacture Item
5 bom_no Link BOM No BOM
6 use_multi_level_bom Check Use Multi-Level BOM

Plan material for sub-assemblies

7 column_break1 Column Break
8 qty Float Qty To Manufacture
9 material_transferred_for_manufacturing Float Material Transferred for Manufacturing
10 produced_qty Float Manufactured Qty
11 warehouses Section Break Warehouses
icon-building
12 wip_warehouse Link Work-in-Progress Warehouse Warehouse
13 column_break_12 Column Break
14 fg_warehouse Link Target Warehouse Warehouse
15 time Section Break Time
icon-time
16 expected_delivery_date Date Expected Delivery Date
17 planned_start_date Datetime Planned Start Date
18 planned_end_date Datetime Planned End Date
19 column_break_13 Column Break
20 actual_start_date Datetime Actual Start Date
21 actual_end_date Datetime Actual End Date
22 operations_section Section Break Operations
icon-wrench
23 operations Table Operations Production Order Operation
24 section_break_22 Section Break Operation Cost
25 planned_operating_cost Currency Planned Operating Cost
Company:company:default_currency
26 actual_operating_cost Currency Actual Operating Cost
Company:company:default_currency
27 additional_operating_cost Currency Additional Operating Cost
Company:company:default_currency
28 column_break_24 Column Break
29 total_operating_cost Currency Total Operating Cost
Company:company:default_currency
30 more_info Section Break More Information
icon-file-text
31 description Small Text Item Description
32 stock_uom Link Stock UOM UOM
33 column_break2 Column Break
34 project_name Link Project Name Project
35 sales_order Link Sales Order

Manufacture against Sales Order

Sales Order
36 company Link Company Company
37 amended_from Link Amended From Production Order

Controller

erpnext.manufacturing.doctype.production_order.production_order

Class ItemHasVariantError

Inherits from frappe.exceptions.ValidationError


Class OperationTooLongError

Inherits from frappe.exceptions.ValidationError


Class OverProductionError

Inherits from frappe.exceptions.ValidationError


Class ProductionNotApplicableError

Inherits from frappe.exceptions.ValidationError


Class ProductionOrder

Inherits from frappe.model.document.Document

calculate_operating_cost (self)

No docs


calculate_time (self)

No docs


check_operation_fits_in_working_hours (self, d)

Raises expection if operation is longer than working hours in the given workstation.


delete_time_logs (self)

No docs


get_holidays (self, workstation)

No docs


make_time_logs (self)

Capacity Planning. Plan time logs based on earliest availablity of workstation after Planned Start Date. Time logs will be created and remain in Draft mode and must be submitted before manufacturing entry can be made.


on_cancel (self)

No docs


on_submit (self)

No docs


set_actual_dates (self)

No docs


set_operation_start_end_time (self, i, d)

Set start and end time for given operation. If first operation, set start as planned_start_date, else add time diff to end time of earlier operation.


set_production_order_operations (self)

Fetch operations from BOM and set in 'Production Order'


stop_unstop (self, status)

Called from client side on Stop/Unstop event


update_operation_status (self)

No docs


update_planned_qty (self)

No docs


update_production_order_qty (self)

Update Manufactured Qty and Material Transferred for Qty in Production Order based on Stock Entry


update_status (self, status=None)

No docs


validate (self)

No docs


validate_cancel (self)

No docs


validate_delivery_date (self)

No docs


validate_operation_time (self)

No docs


validate_production_item (self)

No docs


validate_production_order_against_so (self)

No docs


validate_qty (self)

No docs


validate_sales_order (self)

No docs


validate_warehouse (self)

No docs



Class StockOverProductionError

Inherits from frappe.exceptions.ValidationError


Public API
/api/method/erpnext.manufacturing.doctype.production_order.production_order.get_default_warehouse

erpnext.manufacturing.doctype.production_order.production_order.get_default_warehouse ()

No docs


Public API
/api/method/erpnext.manufacturing.doctype.production_order.production_order.get_events

erpnext.manufacturing.doctype.production_order.production_order.get_events (start, end, filters=None)

Returns events for Gantt / Calendar view rendering.

Parameters:


Public API
/api/method/erpnext.manufacturing.doctype.production_order.production_order.get_item_details

erpnext.manufacturing.doctype.production_order.production_order.get_item_details (item)

No docs


Public API
/api/method/erpnext.manufacturing.doctype.production_order.production_order.make_stock_entry

erpnext.manufacturing.doctype.production_order.production_order.make_stock_entry (production_order_id, purpose, qty=None)

No docs


Public API
/api/method/erpnext.manufacturing.doctype.production_order.production_order.make_time_log

erpnext.manufacturing.doctype.production_order.production_order.make_time_log (name, operation, from_time=None, to_time=None, qty=None, project=None, workstation=None, operation_id=None)

No docs


Linked In: