| Time fence calculation |  |
| You can define the time fence as a number of workdays or working hours in the Items - Planning (cprpd1100m000) session. When you generate a master plan or an order plan, ERP LN calculates the exact date and time up to which the supply plan and planned orders are frozen. Calendar To calculate the time fence, Enterprise Planning uses the calendar that you specified for the enterprise unit of the default warehouse to which the plan item belongs. If you did not specify an enterprise unit for the default warehouse of the plan item, Enterprise Planning uses the company calendar to calculate the time fence. Hours or days If you defined the time fence in hours, ERP LN sets the time fence by taking into account the workable hours, starting from the current time, and by adding up the number of hours you defined for the time. Example Suppose you set the time fence to 7 hours, and the working hours for every day of the week are from 8:00 am to 17:00 pm. If ERP LN generates the order planning on Wednesday, 13:00 pm, it sets the time fence to Thursday, 11:00 am. If you defined the time fence in days, ERP LN also takes into account the workable periods of the week, considering the time left on the current day as one entire day, even if it were only one second. Example Suppose you set the time fence to 3 days, and the working hours are from 8:00 am to 18:00 pm on Monday to Friday. If ERP LN generates the order planning on Thursday, 17:30 pm, it sets the time fence to Monday, 18:00 pm. Plan periods Enterprise Planning moves the time fence towards the end of the plan period in which it falls, because Enterprise Planning must know whether a plan period falls in or out of the time fence. Purchase schedule items To plan purchase orders for purchase-schedule items, ERP LN does not use a time fence, but a so-called frozen zone, which you can define in the contract linked to a purchase schedule. Related topics Horizons and time fences Workdays and calendar days in Enterprise Planning Plan periods in Enterprise Planning Time fences in order planning and in master planning |