Skip to main content
Skip table of contents

Preventive plan MO generation

Endpoint: POST {{host}}/preventive-plans/actions/generate-orders

or alternative for only one specific plan

POST {{host}}/preventive-plans/actions/generate-orders/{{id}}

Input Parameters: -

Steps:

  1. Preventive plan cycle end must be higher than current time (today)

  2. Preventive plan is generated for each associated equipment

  3. Cycle start is defined:

    1. If no MO is created yet = Cycle start from PP definition

    2. Otherwise latest MO is used and its Preventive plan Generation Time

  4. Period for MO generation time frame is calculated

    1. If current time + Create in advance parameter is lower than Cycle end, it is used

    2. Otherwise, Cycle end is used as the time frame.

  5. Date iterations are created based on the unit type with following rules:

    1. Day

      1. Date is calculated as Cycle start + Cycle defined

      2. If parameter Include weekend is enabled, iterations are created only for non-weekend days

    2. Week

      1. Date is calculated as Cycle start + Cycle defined

    3. Month

      1. Date is calculated as Cycle start + Cycle defined

      2. If Month lenght is longer than previous month, the last day of the month is used, otherwise specific day of the month is used

    4. Year

      1. Date is calculated as Cycle start + Cycle defined

  6. Each date iteration creates new Maintenance Order if no MO is already created for the date

    1. If Shift factor is set, MO sheduled finish time is modified accordingly

    2. If DST is valid for the timezone, it is considered when creating MO

    3. If Setting parameter automatic_assignment_to_responsible_team and allow_maintenance_planning_mode_by_teams is enabled MO is connected with the team (based on Equipment x Team relation) and status is set to Assigned to team

    4. Maintenance Order history is created for new MO

    5. Completition confirmation is created for New MO

  7. If Preventive plan has associated Instructions or instruction sets it is assigned to new MOs

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.