Skip to main content

Orders Maintenance…

Orders maintenance is a two-page wizard that fixes what order operations leave wrong in the file: the movement of materials between the phases of an order after the bill it was posted to was deleted, and orders whose quantity is fully achieved but that have not ended. The wizard changes the data of the file and there is no undo. For the practical steps, see Maintain orders.

warning

The maintenance deletes records from the file. Take a backup before you start, and ask the other users to leave the file.

Opening the window​

  • From the ribbon: Orders > Tools > Tools > Orders Maintenance. Open the menu of the Tools button in the Tools group and click the command.
  • The command shows if the licence of alameen ERP 10 includes the orders feature and a file is open.
  • You need the permission Orders Maintenance on the Operations page of Users Management. It is a single check box.

Before the wizard appears, the program checks two things:

  1. If windows are open in the program, the message "All opened windows must be closed before performing this operation. Are you sure you want to do this?" appears. Click Yes and the program closes them and goes on, or No and the wizard does not start.
  2. The program reserves the file for you: no other user can sign in to the file until you finish. This does not push out the users who are already in the file, so ask them to leave before you start. If another user has reserved the file for another maintenance, the message "The files are in exclusive mode, you can't log on to the files now." appears and the wizard does not open.

The program releases the file when you leave the wizard with Cancel and confirm.

First page: maintenance options​

The window title is "Orders Maintenance…". The close button in its title bar is disabled: you leave with the Cancel button.

ItemWhat it does
Synchronization warningA line that reads: "Warning: performing maintenance before synchronizing all data may result in critical errors, so it is recommended to sync before running any maintenance". It shows only if the file is a publisher in replication.
Maintenance Options groupIt holds one option.
Check OrdresThe only option of the group, and it is selected when the page opens.
NextGoes to the second page.
BackDisabled on the first page.
CancelAsks "Are you sure you want to exit maintenance process?". Click Yes to leave and release the file, or No to stay.

Second page: check orders​

The heading of the page is Check Orders. Its text reads: "Checking orders operation searches for errors such as", then two lines: "1.Orders linked with deleted bills." and "2.Orders unfulfilled totally but closed.". At the end: "Press ' Start' to begin checking orders".

ItemWhat it does
End orders automatically after reaching the last phaseA check box that is not ticked when the page opens. If you tick it, the program ends, before the check, the orders whose whole quantity is achieved, as in Ending the orders.
StartStarts the operation. While it works the buttons of the window are disabled. When it finishes, "The operation is completed successfully." appears and you return to the first page.
BackReturns to the first page without changing anything.
CancelAsks "Are you sure you want to exit maintenance process?". Click Yes to leave and release the file.

The operation works on the whole file. You cannot choose particular orders.

What the maintenance changes​

When you click Start the program runs two steps in this order. The second always runs, and the first runs only if the box is ticked.

Ending the orders​

This step runs if you ticked End orders automatically after reaching the last phase. For each sales or purchase order, the program adds up the quantities of its lines (the ordered quantity), then adds up the quantity of the order materials that is now in the last active phase of its form (the achieved quantity). If the two totals are equal and the order has not ended, the program marks it as ended. It does not change orders that have ended already and does not reopen them.

Example: a sales order whose lines total 100. If the last phase holds 100, the order ends. If it holds 80, it stays as it is.

The step does not skip canceled orders.

Fixing the movement between order phases​

The order stores each transfer of a material quantity from one phase to another as two records: one takes the quantity out of the source phase and one adds it to the target phase, with the same date and the same quantity. The program fixes these records on all the orders:

  1. It deletes both records if the transfer was a posting to a bill or a transposition and the bill or transposition linked to the record no longer exists. The quantity goes back to the phase it was moved from.
  2. It deletes both records if the transfer was a posting to a manufacturing order and that order no longer exists or was not recorded. This case is checked if the file has manufacturing orders.
  3. It deletes any record linked to a bill or a manufacturing order that no longer exists.
  4. It deletes any transfer record that is not part of a complete pair.

In the first three cases the program does not touch the records it marks internally as "recycled". In no case does it touch the records numbered zero, which are the quantities of the first phase when the order is entered.

Example: a sales order of 100, with 40 posted to a bill, and then the bill was deleted. The two transfer records stay in the order, so the quantity looks posted. After the maintenance both records are deleted and the 40 return to the phase they were moved from.

What the maintenance does not do​

The second item in the text of the page ("Orders unfulfilled totally but closed") is not something Start runs: the program does not reopen the ended orders whose quantity was not fully achieved, whatever you choose. The maintenance does not change line quantities, prices or entries.

After the operation​

The message "The operation is completed successfully." appears after the two steps, without the program checking the result of each. If a database error message appeared before it, do not rely on the success message: review the orders and restore a backup if you need to.

After the message you return to the first page. Click Cancel and then Yes to leave and release the file.

Messages​

MessageWhy it appearsWhat to do
All opened windows must be closed before performing this operation. Are you sure you want to do this?You clicked Orders Maintenance while windows are open in the program.Yes closes them and goes on, and No cancels the command.
The files are in exclusive mode, you can't log on to the files now.Another user reserved the file for another maintenance.Ask them to finish, then try again.
Are you sure you want to exit maintenance process?You clicked Cancel on one of the two pages.Yes to leave, No to stay.
The operation is completed successfully.The run after Start has finished.Close the message.

This page applies to alameen ERP 10, version 10.1.79.764.