Schedule a Production Plan by machine capacity ​

Version 17

This feature is in ERPNext version 17, which is in development. ERPNext version 16 does not have it.

Schedule Items calculates realistic start and end dates for every row of a Production Plan: finished goods, sub-assemblies, and purchased raw materials. It respects machine capacity, shifts, holidays, and work that is already booked. It answers questions such as "When will this order be finished?" and "Can we take another order this week?" before you create a single Work Order.

Prerequisites ​

The scheduler uses the best data that it finds for each item. The more you maintain, the more accurate the dates.

For machine-level scheduling ​

SetupWhereWhat it does
Working HoursWorkstationThe shifts. Work is scheduled only inside these hours.
Holiday ListWorkstationDays when the machine does not run.
Job CapacityWorkstationHow many jobs run on the machine at the same time.
Operation TimeBOM operationsThe time of each operation, with a Workstation or a Workstation Type.
Workstation TypeBOM operationsLeave the workstation empty and set a type. The scheduler picks the machine of that type that is free first.

See Set up workstations.

For items without BOM operations ​

SetupWhereWhat it does
CapacityItem Lead TimeUnits produced per day. For example, 120 units at 60 per day take 2 days.
Daily Yield (%)Item Lead TimeReduces the capacity. The default is 90. Set 100 if you do not track yield.
Buffer TimeItem Lead TimeExtra safety days.
No of ShiftsProduction PlanScales the daily capacity. If the capacity was recorded for 1 shift and the plan runs 2, the capacity doubles.

For raw materials ​

SetupWhereWhat it does
Purchase Time and Buffer TimeItem Lead TimeThe days to buy the material. Production that uses it cannot start earlier.
Supplier Lead TimesItem Lead TimeA purchase time and buffer time for each supplier. Overrides Purchase Time.
Lead Time in daysItemUsed when the item has no Item Lead Time.

Learn how to set item lead times.

If an item has no operations and no lead time, the scheduler assumes 1 day.

Supplier lead times ​

Suppliers deliver at different speeds. In the Supplier Lead Times table of the Item Lead Time, add one row for each supplier with its Purchase Time (Days) and Buffer Time (Days). Select Is Default on one row.

When you fetch raw materials in the Production Plan, ERPNext fills in the Supplier of each purchase row from the default supplier lead time row. You can change it. The scheduler then uses the lead time of that supplier. If the supplier has no row, it uses the default row, then the Purchase Time of the Item Lead Time, then the Lead Time in days of the item.

Create a schedule ​

  1. Submit the Production Plan.
  2. Select Schedule Items.
  3. Select a Start Date: the earliest moment any work can start.
  4. Optional: select Use Item Wise Start Dates to give each finished good its own start date. Its sub-assemblies follow the same date.
  5. Select Preview. ERPNext saves nothing yet, so you can change the dates and preview again.
  6. Check the preview (see below), then select Apply Schedule.

When you apply the schedule, ERPNext:

  • Sets the planned start and end dates on each row of the plan.
  • Creates a Production Plan Schedule entry for each block of work.

Read the preview ​

  • The list is a tree: finished goods in bold, their sub-assemblies below them, and Procurement rows for purchased material.
  • Each row shows its start and end dates. Starts In shows how soon the row starts: green when more than a day away, orange when less.
  • The tiles at the top show the Expected Completion date, the Total Duration, and the number of items.
  • If something cannot be scheduled, for example no machine is free within the planning horizon, a red banner explains why. ERPNext hides Apply Schedule until you fix it.

How the dates are calculated ​

For each item, the scheduler checks in this order:

  1. The BOM has operations: it books each operation on a machine, inside the working hours, skipping holidays, after the jobs already booked, and with the gap between operations.
  2. No operations: it uses the Item Lead Time capacity: quantity ÷ capacity per day, plus the buffer.
  3. Purchased or subcontracted: it waits the purchase time plus the buffer.

Three rules connect the rows:

  • A parent item cannot start before its sub-assemblies finish.
  • Production cannot start before its raw materials arrive.
  • A machine never runs more jobs than its Job Capacity. A second job waits, or moves to a free machine of the same type.

The expected completion date is the end of the longest chain.

View the schedule on a calendar ​

In the Production Plan, select View > Production Schedule. Each entry shows the item and the activity, for example "Chain · Production" or "Front Wheel · Procurement". Filter the calendar by Production Plan, Workstation, or Item. A job that spans two shifts shows as two blocks.

Work Orders follow the schedule ​

When you create Work Orders from a scheduled plan:

  • Each Work Order takes its Planned Start Date from the plan.
  • The Job Cards use the same machines and the same times as the plan calendar.

Before Work Orders exist, you can run Schedule Items again. Each apply replaces the old schedule.

After Work Orders or Purchase Orders exist, the schedule is locked. The preview still works, but Apply Schedule is disabled. To plan again, cancel those orders.