Prepare Sales Orders
This window collects the sales order lines that need buying and moves them into a preparation for one supplier. A preparation does not change sales orders or stock. It is a list of lines that you turn into a purchase order later, in the Prepared Purchase Orders window. For the task with its steps see Prepare sales orders.
Opening the window
- From the ribbon: Orders > Orders Management > Prepare Sales Orders. The button appears when the file is open and your licence includes orders, and for users who have the permission Prepare Sales Orders in Users Management. If your licence does not include the inventory feature, nothing happens when you click it.
The window opens empty with Prepare disabled. The preparation page inside a sales order is different: it prepares the materials of one order only, see Order pages: preparation, posting, dividing and payments.
What a preparation does
When you click Prepare the program writes this, and nothing else:
- A new preparation, or lines added to an existing preparation that is not posted, under the preparation code you chose.
- For each ticked line, one line in the preparation with the material, the quantity and today's date.
Nothing changes in the sales order, stock does not move, nothing is written to the phases of the order, and no bill is generated. The effect of a preparation on orders is this:
- A line leaves the list. The window never shows a line that is in a preparation, whether or not that preparation was posted to a purchase order. A line returns to the list if you remove it from its preparation with Modify or delete the preparation, see Prepared Purchase Orders.
- It counts in the unavailable quantity. When the program works out the unavailable quantity of another line, it takes into account what is prepared and not yet posted, see Working out the unavailable quantity.
- It blocks changes. A sales order does not let you delete a line whose preparation was posted to a purchase order, or change its material or quantity. See Sales Order.
- It returns the line to the list when you change it. If you change the material or quantity of a line whose preparation is not posted, the program asks, then removes it from the preparation and it returns to the list. Deleting a sales order removes its lines from the preparations.
Options and header
The window has three groups above the list. Choose Purchase Order first: until you do, the Order Type group is disabled.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Preparation Options | Decides the quantity prepared for each line. | Yes | Demanded Qty is selected by default. See The three quantities. |
| Purchase Order | The purchase order form the preparation is created for. | Yes | A list of the purchase order forms ticked as Preparation Sources in the orders options. The program does not preselect one. If no form is ticked there, the list stays empty and you cannot prepare. See Orders options. Choosing a form enables the Order Type group. |
| Order Type > Existing (not posted) | Adds the lines to an existing preparation that is not posted. | Yes, one of the two | The default. The Preparation Code list shows the not posted preparations of the chosen form. |
| Order Type > New (select supplier and number) | Creates a new preparation. | The program fills in the code with the largest numeric code in use plus one, or 1 if none exists. | |
| Preparation Code (list, with Existing) | The preparation you add to. | Yes with Existing | Each item shows the preparation code, then #, then the supplier, such as P-5 # Gulf Foods. Until you select one, Prepare stays disabled. |
| Preparation Code (field, with New) | The code of the new preparation. | Yes with New | Text, such as P-6. You can change the number the program suggests. See Code rules. |
| Supplier (with New) | The supplier of the new preparation. | No | A lookup field on customer and supplier cards, see Lookup boxes and search. You may leave it empty, and the form may require it at posting. |
If not every purchase order form is a preparation source, a new preparation may get another form than the one you chose: the program takes the form at the same position among all purchase order forms. Check Purchase Order Type in the window that opens after preparing.
The three quantities
| Option | Quantity recorded for the line |
|---|---|
| Demanded Qty | The whole quantity of the sales order line, the Demand column. |
| Pending Quantity | The Pending column: demanded minus fulfilled. |
| Unavailable Quantity | What is missing from stock to cover the orders, worked out for each line when you click Prepare. See Working out the unavailable quantity. |
The quantity is in the unit of the sales order line, except the unavailable quantity, which the program works out in the first unit of the material.
Code rules
When you click Prepare with the option New (select supplier and number), the program checks the code in this order:
- If it matches a code in the list of not posted preparations of the order form, it clears the field and shows "Order code already exists and cannot be used with new order type option".
- If any other preparation, of any form, uses the code, it shows "Cannot proceed in the preparation because the preparation code is previously used".
Prepare stays disabled while the new code field is empty.
Lines list
The list starts empty and shows "The list is empty, no items to display." The Filter dialog fills it. For working with lists see Grids.
Each row is one line of a sales order. It starts ticked. Untick the lines you do not want to prepare. The list never shows lines that are in a preparation, finished or cancelled orders, or orders that wait for approval or were rejected.
| Column | Meaning |
|---|---|
| (tick box) | The line is prepared if it is ticked. |
| Order Date | The date of the sales order. |
| Sales Orders | The order form and number. |
| Customer Name | The customer of the order. |
| Material code and Material Name | The material. |
| Unit | The unit of the line. |
| Demand | The quantity of the line. |
| Fulfilled | The quantity posted from the line to a phase that completes the quantity, on a date inside the period you chose in the Filter. |
| Pending | Demand minus fulfilled. |
| Delivery Date | The delivery date of the order. |
| Columns of the Display Options | They follow Delivery Date in this order: Agreed Delivery Date, Warehouse, Cost center, Category and Combination. |
Buttons
| Button | What it does |
|---|---|
| Filter | Opens the Filter dialog, then fills the list. |
| Prepare | Creates the preparation from the ticked lines. See Preparing. It stays disabled until three conditions hold: you have the permission, you chose a preparation code (existing or new), and at least one line is ticked. |
| Preview, Print and Export | Show the list as it is now in the Prepare Sales Orders report. Printing needs the permission Print reports. |
| Close | Closes the window without saving anything. |
Preparing
When you click Prepare:
- The program reads the ticks from the list.
- If you chose New (select supplier and number) it checks the code, see Code rules.
- It asks "Data will be transferred to a preparation card, are you sure". Click Yes to continue or No to go back.
- With New (select supplier and number) it creates a preparation with your code, the supplier in the field and today's date, for the chosen purchase order form. With Existing (not posted) it uses the preparation you selected.
- It adds one line for each ticked line, with its material, its quantity (see The three quantities) and today's date.
- With Unavailable Quantity it works out the quantity of each line, see Working out the unavailable quantity.
- The message "Order is prepared successfully" appears, then the Prepared Purchase Orders window opens on the preparation.
- The program empties the list and disables Prepare. To prepare more lines, click Filter again.
If preparing stops halfway with an error, the lines added before the error may stay in the preparation, so check it in the Prepared Purchase Orders window.
Working out the unavailable quantity
For each ticked line, the program works out:
unavailable quantity = quantity of the line + remaining of the other open sales orders of the material − remaining of the open purchase orders of the material − what is prepared and not posted for the other sales orders, in this preparation or another − the stock balance of the material in the warehouses.
The quantity of the line is its whole ordered quantity. The program counts everything in the material's first unit.
The quantity recorded for the line is zero if the result is zero or less. Otherwise it is the smaller of the result and the quantity of the line.
- Other open sales orders: other sales orders of the material that are not finished and not cancelled, of the forms that have the option Prepare order ticked. For each line the program takes the demand minus what was posted to the phase where the quantity is posted.
- Open purchase orders: purchase orders of the material that are not finished and not cancelled, of the forms ticked as preparation sources, with their demand minus what was posted.
- Other preparations: the quantities of lines of preparations not yet posted to a purchase order, for other sales orders.
- Stock balance: the total quantity of the material in all warehouses. If the option Calculate unavailable quantity in preparation on warehouse level is on, each material is worked out only for the warehouse of the line, in the orders, the preparations and the balance.
If nothing is missing for the material (the result is zero or less), the message "There isn't a need to prepare this order because all its materials are available. The preparation card will be saved and quantity will be zero for available materials" appears, and the line is saved with quantity zero. If the calculation fails, the message "Error: " followed by the query text appears.
Worked example
The material is rice. The ticked line is in order 101 and its quantity is 100 kg.
| Item | Quantity (kg) |
|---|---|
| Quantity of the line | 100 |
Remaining of another sales order (demand 80, 50 posted from it) | 30 |
Remaining of an open purchase order (demand 60, 20 posted from it) | 40 |
| Prepared and not posted in another preparation | 20 |
| Stock balance of the material | 30 |
Unavailable quantity = 100 + 30 − 40 − 20 − 30 = 40. The line is recorded with 40 kg, the smaller of 40 and 100. If the stock balance were 120, the result would be -50, the quantity would be zero, and the message above would appear. With Demanded Qty the program always records 100, and with Pending Quantity it records the pending quantity of the line itself.
Filter dialog
It opens when you click Filter. It decides which sales order lines enter the list. Click Ok to fill the list, or Close to go back.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Account | Limits the lines to the customers of this account. | No | Empty means all customers. |
| Material | Limits the lines to this material. | No | If you choose a material, Group is disabled, and the other way round. |
| Group | Limits the lines to the materials of this group. | No | |
| Warehouse | Limits the lines to this warehouse. | No | The warehouse of the line is used. |
| Cost Center | Limits the lines to this cost center. | No | |
| Order No | Limits the list to one order by its number. | No | A whole number. Empty means all orders. |
| Sort by | The order of the rows. | Yes | Material Code (default), Material Name, Order Date, Customers Name and Agreed Delivery Date. The last one sorts by the Delivery Date column. Every choice then sorts by the order name. |
| Order Status > From and To | The period. | Yes | The program filters by the order date. The Fulfilled column counts only quantities posted on a date inside this period. The period starts at the start of the financial period if the program option "default start date is the start of the period" is on, otherwise on the first day of the current month, and ends today. See Date fields. |
| Materials Terms | A saved condition on material cards. | No | The conditions editor is explained in Report parameter forms. |
| Customers Terms | A saved condition on customer cards. | No | As above. |
| Order Terms | A saved condition on orders. | No | As above. |
| Orders Types | The sales order forms that enter the list. | Yes, at least one | A check list that starts fully ticked. A form does not appear if you do not have the Prepare permission on it in the Orders page of Users Management, or if it has approvals and you do not have the permission Prepare Approved, or if you may not browse it. If you tick none, "At least one order type should be selected" appears. |
| Display Options | Extra columns and the kind of materials. | No | See the next table. |
You can save the values of this dialog so that it always opens with them, from the system menu, see Save dialog values as default.
| Option | Effect | Default |
|---|---|---|
| Agreed Delivery Date | Adds the column. | Unticked |
| Warehouse Name | Adds the Warehouse column. | Unticked |
| Cost center name | Adds the Cost center column. | Unticked |
| Category | Adds the column. | Unticked |
| Show Stock Materials | Stock materials enter the list. | Ticked |
| Show Service Materials | Service materials enter the list. | Unticked |
| Show Fixed Assets | Fixed assets enter the list. | Unticked |
| Combination | Adds the column. | Unticked |
A line enters the list only if all of these hold: the order is not finished and not cancelled, it has no approval or it is fully approved, its date is inside the period, the line is not in a preparation, and its material is of a kind ticked in Display Options.
Right-click menu
Right-click a row of the list. The items:
| Item | What it does |
|---|---|
Grid Lines (Ctrl+G) | Shows or hides the grid lines. |
| Display Order... | Opens the sales order. |
| Display... | Shows the values of the row's columns as text in a message. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| At least one order type should be selected | You ticked no type in Orders Types and clicked Ok in the Filter. | Tick a type. |
| Order code already exists and cannot be used with new order type option | The new option and a code that matches a not posted preparation in the list. | Change the code or choose Existing (not posted). |
| Cannot proceed in the preparation because the preparation code is previously used | The new option and a code used by another preparation. | Change the code. |
| Data will be transferred to a preparation card, are you sure | Prepare. | Yes to continue. |
| There isn't a need to prepare this order because all its materials are available. The preparation card will be saved and quantity will be zero for available materials | Unavailable Quantity and the quantity of a line is zero. | Nothing. The line is saved with quantity zero. |
| Error: | Working out the unavailable quantity failed. | Read the query shown and tell the administrator. |
| Order is prepared successfully | The preparation is complete. | The preparation window opens. |
| Cnt Save PPO Header | The new preparation header could not be saved. The message appears in English. | Try again. |
| Cnt Add PPI Items | A line could not be saved. The message appears in English. | Check the preparation in the Prepared Purchase Orders window. |
| You don't have the authority to print | Print without the permission Print reports. | Ask the administrator for it. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.