Introducing a new way to review your PRs.

Read the announcement

frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)

View on GitHub

20 documents · Updated Nov 23, 2026

docs / production-planning-and-execution

Production planning and execution

Production planning and execution turns product demand into a controlled manufacturing run. A bill of materials (BOM) defines what the product needs and what it should cost. A Production Plan arranges demand, supply, and timing. Work Orders and Job Cards then guide material movement, shop-floor work, and the receipt of manufactured goods.

This page is a child of Manufacturing and subcontracting. For supplier-run manufacturing, see Subcontracting operations. For stock locations and warehouse movement, see Inventory and warehouse.

Production lifecycle

Demand and material planning

Material planning starts with demand from Sales Orders, Material Requests, or direct plan rows. The planner uses the selected BOMs to expand finished goods into material and sub-assembly needs. Stock, open supply, warehouse scope, lead time, safety stock, and process loss then determine what new supply is needed.

The plan keeps demand and supply linked. It records planned, requested, ordered, produced, and pending quantities so repeated planning actions do not create duplicate supply. Reserved output from a demand's own Work Orders is counted once, so output already held for that demand does not become new planned demand. The plan also respects the user's access to the plan's company and warehouses.

Production plan

A Production Plan is the control point between source demand and manufacturing work. It can collect eligible Sales Order lines or Manufacture-type Material Requests, including packed items with active BOMs. It can also accept items entered directly.

The planner sets the BOM, quantity, warehouse, and dates for each row. The plan checks that each BOM produces its planned item. For Sales Order demand, it limits total planning to the unplanned order quantity plus the configured overproduction allowance. Closed orders and closed order lines do not enter a new plan.

The plan can combine demand lines that use the same BOM. It keeps the source references behind the combined row so later Work Orders and produced quantities still update the correct demand. A change to draft plan items clears a saved schedule because the old dates no longer describe the plan.

The plan can create several forms of supply:

  • Raw materials become purchase requests or internal-transfer requests.
  • In-house sub-assemblies become Work Orders.
  • Subcontracted sub-assemblies become supplier purchase orders.
  • Requested sub-assemblies remain supply requests instead of being expanded into their raw materials.
  • Planned in-house or subcontracted sub-assemblies are treated as supply commitments, so their own rows are not also requested as raw materials.

The following diagram shows how demand becomes supply and manufacturing work.

flowchart LR
    D[Sales Order or Material Request] --> P[Production Plan]
    P --> B[BOM structure and material need]
    B --> M[Purchase or internal-transfer request]
    B --> S[Sub-assembly demand]
    P --> W[Finished-good Work Order]
    S --> SW[In-house sub-assembly Work Order]
    S --> PO[Subcontract purchase order]
    W --> R[Produced quantity and process loss]
    R --> P

The plan may reserve raw materials and in-house sub-assemblies before work starts. When a Work Order takes over the demand, the reservation follows that Work Order. The handoff also covers stock sent to a supplier for a subcontracted operation. A cancelled supplier transfer restores the unused reservation.

References: erpnext/…/production_plan.py• L143-188 erpnext/…/production_plan.py• L284-424 erpnext/…/production_plan.py• L454-486 erpnext/…/planning_queries.py• L168-243 erpnext/…/sales_order_planning.py• L21-180 erpnext/…/sales_order_planning.py• L197-301 erpnext/…/sub_assembly_queries.py• L22-145 erpnext/…/material_request.py• L48-167 erpnext/…/material_request.py• L171-364 erpnext/…/reservation.py• L150-246 erpnext/…/reservation.py• L490-581 erpnext/…/test_production_plan.py• L900-1147

Material supply

Material supply converts the exploded BOM view into purchase, subcontracting, or internal-transfer demand. The planner compares the need with stock and existing requests before creating new requests. It keeps a sub-assembly that has its own planned supply separate from the raw materials that belong to that supply decision.

The calculation stays in the plan row's quantity basis until it determines the shortage. It then converts the shortage to the request unit. Whole-number units round up. Draft Material Requests count toward the existing supply, which prevents repeated actions from requesting the same quantity twice.

A group warehouse can define the stock search scope. It cannot receive stock. The final request therefore needs a concrete warehouse that belongs to the plan's company. Each raw material can keep its own default source warehouse when the plan creates transfer or purchase demand. A transfer does not ask a warehouse to send material to itself, and stock in the selected receiving warehouse remains part of the available supply.

References: erpnext/…/material_request.py• L48-167 erpnext/…/material_request.py• L171-324 erpnext/…/material_request.py• L327-430 erpnext/…/bom_explosion.py• L17-47 erpnext/…/bom_explosion.py• L153-299 erpnext/…/sub_assembly_queries.py• L22-145 erpnext/…/planning_queries.py• L44-146 erpnext/…/test_production_plan.py• L948-1147

Production scheduling

Production scheduling assigns planned work to dates and available capacity. The schedule uses operation time, workstation hours, holidays, workstation capacity, and the planned route. Parallel operations can share a sequence when capacity allows. Batch-based operations receive time for each batch, and the operation span covers the earliest and latest batch card.

The plan shows a schedule preview before it applies dates. If plan items change, the saved schedule is removed. Once downstream orders exist, the schedule must not silently change under those orders.

References: erpnext/…/production_plan.py• L173-188 erpnext/…/production_plan.py• L730-737 erpnext/…/operations.py• L118-223 erpnext/…/operations.py• L225-251 erpnext/…/test_production_plan.py• L181-189 erpnext/…/test_work_order.py• L981-1030

Stock reservation

Stock reservation holds material for a plan or Work Order without consuming it. A plan can reserve required raw materials and sub-assemblies. The reservation then follows the Work Order as material moves to work in progress, as manufacture consumes it, or as material moves to a supplier for a subcontracted step.

The reservation tracks both transferred and consumed quantities. A cancelled transfer can reduce the transferred quantity and restore the unused reservation. Serial and batch reservations use only the matching identities. A Work Order does not reserve a component that has already been consumed beyond its required quantity. Stock sent to a subcontractor reduces the Work Order's held quantity until a cancellation or a new transfer changes the recorded balance.

References: erpnext/…/production_plan.py• L229-231 erpnext/…/production_plan.py• L454-486 erpnext/…/reservation.py• L150-246 erpnext/…/reservation.py• L103-214 erpnext/…/reservation.py• L227-357 erpnext/…/reservation.py• L468-581 erpnext/…/test_work_order.py• L1566-1640

Product definition and costing

BOM structure

A BOM is the production definition for one manufactured item. It states the output quantity and the components required for that output. A component may point to another BOM to form a multi-level assembly. A phantom BOM is a structure-only level that expands into its lower-level materials instead of becoming a separate stock item.

The BOM supports direct quantities and percentage-based formulation. Percentage formulation derives component quantities from the output quantity and unit conversion. One Balance Item may receive the remaining percentage. The formulation must total 100% and cannot be used with tracked semi-finished goods.

The BOM can also define operations, process loss, alternative components, secondary outputs, default warehouses, and the material-consumption basis. With semi-finished tracking, each operation identifies its intermediate or final output. The route must produce the BOM item as its final output. An operation can split a batch into new batch-managed output when the item is configured for that flow.

The system keeps a product tree for review and an exploded material view for planning and costing. Repeated exploded material lines are combined with a weighted rate. Validation rejects circular child links, invalid operation outputs, duplicate secondary rows, and incomplete percentage formulations.

References: erpnext/…/bom.py• L298-479 erpnext/…/bom.py• L791-865 erpnext/…/bom.py• L1177-1253 erpnext/…/exploded_items.py• L18-138 erpnext/…/test_bom.py• L1-120 erpnext/…/test_bom.py• L586-660

Design-driven BOM creation

BOM Creator turns a product design into one or more manufacturing BOMs. It can read STEP or CSV design files, keep the part tree, map parts to Items, and assign materials and operations before BOM creation.

The design record separates the source design from the manufacturing definition. It supports suggested or manual Item mapping, comparison with the previous revision, and creation of missing Items. A submitted design creates BOMs as a controlled action. A new revision supersedes the earlier design rather than changing its history.

References: erpnext/…/bom_creator.js• L4-18 erpnext/…/bom_creator.js• L92-121 erpnext/…/bom_creator.js• L124-256 erpnext/…/bom_creator.py• L87-141 erpnext/…/bom_creator.py• L187-243

BOM costing

BOM costing gives the planner an expected cost for the defined output. Material cost uses a selected rate basis such as valuation rate, last purchase rate, or a valid buying price. A child BOM can supply the expected unit cost of a sub-assembly. Repeated use of the same exploded item keeps a weighted rate so the flat material view still matches the nested BOM cost.

Operation cost uses operation time and the hourly rate of the Workstation or Workstation Type. A batch-sized operation can express cost per batch, while fixed time remains a cost for the BOM quantity. Secondary outputs carry their own value or receive an allocated share of the remaining material cost. The total combines material and operation cost and subtracts secondary-output value.

When a child BOM's total or base-currency total changes, its parent BOM costing is refreshed. The cost belongs to the BOM quantity and can roll up through parent BOMs. It is a planning value. The final stock value comes from the material and operation transactions recorded during manufacture.

References: erpnext/…/bom.py• L1294-1370 erpnext/…/costing.py• L30-64 erpnext/…/costing.py• L77-170 erpnext/…/costing.py• L172-269 erpnext/…/costing.py• L271-388 erpnext/…/test_bom.py• L120-220 erpnext/…/test_bom.py• L238-315

Production execution

Work order

A Work Order releases a quantity of one production item against a BOM. It connects the run to its source demand or Production Plan and names the source, work-in-progress, finished-goods, and scrap warehouses.

The Work Order copies the BOM's required materials and operations into an execution snapshot. This snapshot sets the quantities, route, operation time, planned cost, process loss, and produced quantity for the run. From it, the system can create material requests, Pick Lists, Job Cards, material transfers, consumption entries, and manufacture entries.

Submitting a Work Order checks the plan quantity, prepares serial or batch tracking when configured, updates reservations, and creates Job Cards. A batch-managed finished good can be split into output batches when the item setup allows automatic batch creation.

Work Order status reflects both production progress and material activity. A submitted order is in process when material has moved through a Work Order, Pick List, or Material Request route, or when a skip-transfer order has consumed material. The Work Order and its Production Plan enforce quantity limits so partial orders, process loss, and replacement production do not consume the same demand twice.

An unstarted Job Card for a later operation can be prepared and saved before an earlier operation produces input. Starting the work, recording progress, and submitting the card still follow the operation sequence.

References: erpnext/…/work_order.py• L327-365 erpnext/…/work_order.py• L682-722 erpnext/…/work_order.py• L788-910 erpnext/…/status.py• L110-228 erpnext/…/status.py• L230-318 erpnext/…/operations.py• L253-391 erpnext/…/mapper.py• L256-295 erpnext/…/mapper.py• L638-682 erpnext/…/work_order_quantities.py• L13-235 erpnext/…/test_work_order.py• L63-112 erpnext/…/test_job_card.py• L3124-3205

Operations

An Operation is a named manufacturing step. It describes the work and can provide a default workstation, standard time, batch size, sub-operations, and quality rules. A BOM Operation places that step in a product route.

The Work Order copies the route into its own operation rows. It can include operations from lower-level assemblies. The released route assigns sequence, time, workstation, warehouse, process loss, and quality data to the run. Equal sequence values can run in parallel when capacity allows. Batch-based operations scale time and cost to their batches.

With semi-finished tracking, an operation can have its own input, work-in-progress, and output item. The output of one operation becomes the input for the next. The final operation sends the finished item to the finished-goods warehouse. A later operation cannot report more work than the prior operation has completed or manufactured.

Workstations provide the time, capacity, and cost context. Submitted Job Cards replace planned operation cost with actual time cost. The Work Order's actual dates and lead time then describe the full route, including the latest parallel operation.

References: erpnext/…/operations.py• L69-116 erpnext/…/operations.py• L118-223 erpnext/…/operations.py• L253-391 erpnext/…/operations.py• L415-489 erpnext/…/job_card.py• L1803-2039 erpnext/…/test_work_order.py• L671-740 erpnext/…/test_work_order.py• L981-1030

Job cards

A Job Card is the operator-facing record for one Work Order operation. It records the work target, employees, time, completed quantity, pending quantity, process loss, material coverage, quality decision, and remarks.

The Work Order creates Job Cards from its operation rows. Batch size can split one operation across several cards. Each card then owns its share of the operation's material need when material transfer is assigned to Job Cards. If the card quantity changes, transferred rows remain protected while untransferred rows that are no longer needed can be removed. Changing the share before transfer rebuilds that material need on the server.

The operator follows a visible sequence:

  1. Move the required material when the transfer mode requires it.
  2. Start, pause, or resume the job timer.
  3. Record completed, pending, and process-loss quantities for the work cycle.
  4. Submit the Job Card after time, material, quantity, and quality rules pass.

If source stock is short, the Job Card can request the missing material or continue to a transfer form. A configured backflush route can consume material from work in progress instead of using a separate transfer. Submitted cards roll actual time, quantity, dates, status, and operation cost back to the Work Order.

References: erpnext/…/job_card.py• L180-369 erpnext/…/job_card.py• L1006-1078 erpnext/…/job_card.py• L1138-1263 erpnext/…/job_card.py• L1265-1429 erpnext/…/job_card.py• L1803-2039 erpnext/…/job_card.js• L278-436 erpnext/…/job_card.js• L444-625 erpnext/…/test_job_card.py• L545-765 erpnext/…/test_job_card.py• L770-870

Operation completion

An operation is complete when completed quantity plus process loss covers its released quantity. Pending quantity stays separate when work will continue in another cycle or Job Card.

Each completion cycle must balance its work quantity across completed, pending, and process-loss quantities. Required time logs and quality inspections must pass when the manufacturing settings and operation require them. The route also checks input from earlier operations, so downstream work cannot create more output than the upstream route has made. When an earlier operation has already booked loss, the downstream operation cannot use that lost quantity as input.

References: erpnext/…/job_card.py• L1048-1213 erpnext/…/job_card.py• L1248-1429 erpnext/…/job_card.py• L1818-2039 erpnext/…/test_job_card.py• L669-719 erpnext/…/test_job_card.py• L1477-1529

Material movement and completion

Material transfers

Material transfers move required components from a source warehouse to work in progress or to an operation's work-in-progress location. The Stock Entry links to the Work Order and, when the transfer mode is Job Card, to the Job Card. The transfer makes material available for the run without recording a finished good.

Transfer mode is part of the manufacturing contract. A run may transfer material against the Work Order or against each Job Card. It may also skip a separate transfer and consume from work in progress according to the configured material basis.

The system measures coverage per component. The quantity fully transferred is limited by the component with the smallest coverage. Returns reduce coverage. Reservations move with the same material handoff and track transfer and consumption against the required item. Pick Lists and Material Requests count as open supply until the stock reaches the Work Order.

Work Order requests and Pick Lists consider material already requested, picked, or transferred. This limits new supply to the uncovered need. When the overall transfer quantity is complete but individual component rows still need material, the Work Order can open a transfer for those remaining rows without asking for another production quantity. The interface also allows the configured transfer allowance for extra material.

References: erpnext/…/mapper.py• L256-346 erpnext/…/mapper.py• L376-389 erpnext/…/required_items.py• L189-371 erpnext/…/required_items.py• L373-461 erpnext/…/reservation.py• L103-214 erpnext/…/status.py• L110-211 erpnext/…/work_order.js• L932-1017 erpnext/…/work_order.js• L1215-1236 erpnext/…/work_order.js• L1381-1456 erpnext/…/job_card.js• L278-436 erpnext/…/test_job_card.py• L567-765 erpnext/…/test_work_order.py• L1119-1234

Material consumption

Material consumption records the component quantities used by manufacture. The route may consume from material transferred to the Work Order, consume directly from the BOM, or backflush from work in progress.

Consumption reduces component stock and updates the Work Order's required-item view. Consumption proposals measure what each component still covers and stop at the quantity still left to produce. They include material consumption entries and process loss, so a later entry does not consume more than the remaining manufacturing result. Alternative components, secondary outputs, and process loss stay linked to the same manufacturing result. The selected BOM and manufacturing settings decide the consumption basis.

References: erpnext/…/bom.py• L143-145 erpnext/…/mapper.py• L298-373 erpnext/…/required_items.py• L462-539 erpnext/…/work_order.js• L1019-1095 erpnext/…/test_work_order.py• L1119-1234

Manufactured goods

A Manufacture Stock Entry records the stock result of a Work Order or Job Card. It consumes the required components, records process loss and secondary outputs, and places the manufactured quantity in the target warehouse.

Operation costs are added to the output using the operation's planned or actual time. Where the Workstation has operating components, the cost is split across those components. A Job Card output carries the cost of its own operation and its own non-stock materials rather than charging unrelated operations.

For a normal route, required operations must be complete before the finished good can post. For a semi-finished route, an earlier operation posts an intermediate item that the next operation uses. Serial and batch identifiers prepared for the Work Order travel with the output.

References: erpnext/…/mapper.py• L256-295 erpnext/…/mapper.py• L376-389 erpnext/…/operations_cost.py• L16-80 erpnext/…/operations_cost.py• L83-243 erpnext/…/job_card.js• L628-641 erpnext/…/work_order.js• L1052-1095 erpnext/…/test_work_order.py• L617-740 erpnext/…/test_job_card.py• L1527-1651

Finished-good completion

The Work Order is complete when produced quantity plus process loss reaches the ordered quantity. In a normal route, Manufacture Stock Entries provide the produced quantity. In a semi-finished route, Job Cards and intermediate outputs provide operation progress.

Production Plan limits are checked against the quantity that remains after planned process loss. Output above a planned loss can offset excess loss in another Work Order for the same plan row, while a closed Work Order contributes only what it made. This keeps replacement production within the demand limit without ordering the same loss twice.

Each submitted stock transaction updates the Work Order, its operations, linked Job Cards, and the Production Plan. The plan rolls up output from its linked Work Orders. It becomes complete when each plan row meets its required quantity and its in-house Work Orders are complete.

Completion makes finished stock available in the target warehouse and reports the result against the original demand. A submitted Work Order cannot be cancelled while submitted stock entries exist. The dependent stock transactions must be reversed first.

References: erpnext/…/status.py• L230-318 erpnext/…/status.py• L370-430 erpnext/…/work_order_quantities.py• L13-235 erpnext/…/work_order.py• L1001-1017 erpnext/…/production_plan.py• L330-352 erpnext/…/production_plan.py• L567-631 erpnext/…/test_work_order.py• L1342-1412 erpnext/…/test_production_plan.py• L748-817

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to BOM components, operations, process loss, semi-finished outputs, batch split, or transfer mode must stay aligned across BOM explosion, Work Order snapshots, Job Card material rows, costing, and Manufacture Stock Entry mapping.
  • Changes to BOM quantity, percentage formulation, unit conversion, child-BOM links, or repeated exploded lines must stay aligned across costing, flat material views, plan quantities, material requests, and required-item quantities.
  • Changes to Production Plan source queries or combined rows must preserve Sales Order and Material Request references, Product Bundle links, reserved Work Order output, pending quantity, user permissions, and the BOM requirement.
  • Changes to planned sub-assembly types must preserve the distinction between in-house, subcontracted, requested, phantom, and Do Not Explode lines. Do not request a planned sub-assembly and its components twice.
  • Changes to plan material supply must preserve draft-request accounting, unit conversion, whole-number rounding, source warehouses, concrete receiving warehouses, same-warehouse transfer avoidance, and company access.
  • Changes to process-loss planning must be checked against Work Order quantities, replacement production, closed Work Orders, Job Card completion cycles, downstream inputs, and plan progress.
  • Changes to reservations must be checked across plan handoff, Work Order transfer, supplier transfer, consumption, returns, cancellation, and serial or batch matching.
  • Changes to Job Card quantity, timer, transfer, quality, or output actions must preserve Work Order operation roll-up and the balance of completed, pending, and loss quantities. A quantity change must not discard material that has already moved.
  • Changes to operation sequence, workstation capacity, batch size, or parallel scheduling must preserve Job Card splitting, schedule dates, upstream quantity limits, actual cost roll-up, and the Work Order's latest end date.
  • Changes to Work Order status, consumption proposals, or manufactured output must preserve Stock Entry gates, finished-good tracking, Production Plan progress, demand limits, and cancellation rules.
  • Changes to Work Order request or transfer actions must preserve the distinction between requested, picked, transferred, consumed, and produced quantities.

Important failure modes

TriggerConsequenceGuard
A BOM links back to itself or a child BOM does not produce its row itemThe product structure cannot be exploded or used for productionBOM and production-plan validation reject recursion and mismatched output.
Percentage quantities do not total 100%, or a unit conversion is missingThe formulation does not define a complete material needBOM validation requires a complete percentage and usable conversion.
Semi-finished tracking has no operation output or no final BOM-item outputIntermediate or finished stock cannot follow the routeBOM validation requires operation outputs and a final output.
A batch split operation lacks a positive weight or batch-enabled output itemThe operation cannot create valid output batchesBOM validation requires batch tracking and automatic batch creation for the output.
A group warehouse is used as a request target, or a warehouse is outside the company scopeThe request has no valid stock location or crosses an access boundaryGroup warehouses only scope stock. Requests require a concrete company warehouse and access.
A plan row is already covered by stock, a draft request, or an earlier planRepeated actions can create duplicate supplyPlanning subtracts existing coverage before it creates requests.
A planned sub-assembly is also exploded as raw materialThe same demand receives both a sub-assembly supply and its component supplyPlan explosion separates requested, planned, phantom, and Do Not Explode rows.
A plan exceeds the unplanned Sales Order quantity and allowanceDemand is planned more than onceSubmission checks the Sales Order balance, reserved output, and overproduction allowance.
A Work Order request is made after requested, picked, and transferred quantities cover the needSupply can exceed the remaining component demandRequest and Pick List quantities use the uncovered required quantity.
A Work Order's material transfer is partial across componentsThe order can appear fully transferred while a component is still shortTransfer coverage uses the least-covered required component.
A later Job Card is started or submitted before its prior operation provides inputThe route records work out of sequenceSequence checks run when work starts, progress is recorded, or the card is submitted.
A Job Card starts with required material still pendingWork can be recorded without its component stockJob Card actions require material transfer unless the route skips transfer or backflushes.
A Job Card cycle does not balance completed, pending, and process-loss quantityOperation progress and loss do not match the work targetCompletion validation requires the full cycle quantity to be accounted for.
A later operation reports more than its upstream operation has madeThe route can create out-of-order intermediate or finished goodsInput validation caps downstream work at upstream output and removes upstream loss from usable input.
A required time log or quality inspection is missing or rejectedThe operation can post without its required proofJob Card submission follows time-log and quality rules.
A Manufacture entry contains only process loss and no finished-good quantityThe transaction cannot produce a finished goodThe finish flow requires quantity above pending process loss.
A submitted Work Order is cancelled while submitted stock existsStock history and production totals become inconsistentDependent Stock Entries must be cancelled first.
A reservation is not reduced after transfer cancellation, supplier transfer cancellation, or consumptionStock remains held after the physical movement is undoneReservation quantities are recomputed from submitted transfer and consumption records.
A batch-managed finished good lacks the settings needed for automatic batch creationWork Order submission cannot prepare valid output trackingItem batch settings and batch naming setup must be present.

Key files

FileWhy to read it
erpnext/…/bom.pyDefines product structure, formulation, route outputs, process loss, batch split, and BOM validation.
erpnext/…/costing.pyExplains expected material, operation, sub-assembly, secondary-output, and parent-BOM cost.
erpnext/…/exploded_items.pyShows how a nested product structure becomes a weighted planning material view.
erpnext/…/operations_cost.pyShows how planned and actual operation cost reaches manufacture output.
erpnext/…/bom_creator.jsShows the design-to-BOM user flow for file input, Item mapping, revision comparison, and BOM creation.
erpnext/…/production_plan.pyDefines plan quantities, source-demand checks, schedule validity, reservations, and progress roll-up.
erpnext/…/sales_order_planning.pyShows how eligible Sales Order and Material Request demand enters a plan.
erpnext/…/planning_queries.pyShows BOM-aware demand lookup, warehouse scope, reserved output, and stock quantities used by planning.
erpnext/…/bom_explosion.pyShows how BOM and sub-assembly lines become material planning demand.
erpnext/…/sub_assembly_queries.pyShows how available sub-assemblies and their raw materials are resolved.
erpnext/…/material_request.pyShows how planned material need becomes purchase or transfer requests.
erpnext/…/reservation.pyExplains plan reservation, handoff, and release.
erpnext/…/work_order_quantities.pyDefines Work Order quantity, process-loss, and replacement-production limits per plan row.
erpnext/…/work_order.pyDefines the execution boundary between a BOM, demand, warehouses, stock, operations, and output.
erpnext/…/status.pyDefines Work Order status, quantity roll-up, process loss, and demand progress.
erpnext/…/operations.pyShows how BOM operations become scheduled Work Order operations and Job Cards.
erpnext/…/required_items.pyExplains required material coverage, requests, Pick Lists, transfers, and consumption.
erpnext/…/reservation.pyExplains reservation handoff and updates from transfer, supplier movement, consumption, cancellation, and manufacture.
erpnext/…/mapper.pyMaps a Work Order to material movement, consumption, Job Cards, Pick Lists, and manufacture entries.
erpnext/…/work_order.jsShows planner and operator actions for material supply, transfer, consumption, manufacture, and status.
erpnext/…/job_card.pyDefines operation quantity, time, material, quality, output, and Work Order roll-up behavior.
erpnext/…/job_card.jsShows the operator flow for shortage, transfer, timing, completion, and output.
erpnext/…/test_job_card.pyDemonstrates guarantees around time, quantity balance, material transfer, upstream limits, quantity changes, and quality.
erpnext/…/test_production_plan.pyDemonstrates demand sourcing, material requests, unit and warehouse coverage, reservations, sub-assemblies, and plan progress.
erpnext/…/test_work_order_quantities.pyDemonstrates plan-row limits, process-loss handling, and replacement Work Order coverage.
erpnext/…/test_work_order.pyDemonstrates material reservation, operation gates, process loss, consumption, manufactured output, batch creation, and Work Order quantity rules.
erpnext/…/test_bom.pyDemonstrates BOM costing, nested structures, percentage formulation, batch operations, process loss, semi-finished goods, and validation rules.