Skip to main content

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.

The window has three groups above the list. Choose Purchase Order first: until you do, the Order Type group is disabled.

FieldDescriptionRequiredValues and rules
Preparation OptionsDecides the quantity prepared for each line.YesDemanded Qty is selected by default. See The three quantities.
Purchase OrderThe purchase order form the preparation is created for.YesA 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 twoThe 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 ExistingEach 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 NewText, such as P-6. You can change the number the program suggests. See Code rules.
Supplier (with New)The supplier of the new preparation.NoA 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.
warning

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​

OptionQuantity recorded for the line
Demanded QtyThe whole quantity of the sales order line, the Demand column.
Pending QuantityThe Pending column: demanded minus fulfilled.
Unavailable QuantityWhat 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:

  1. 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".
  2. 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.

ColumnMeaning
(tick box)The line is prepared if it is ticked.
Order DateThe date of the sales order.
Sales OrdersThe order form and number.
Customer NameThe customer of the order.
Material code and Material NameThe material.
UnitThe unit of the line.
DemandThe quantity of the line.
FulfilledThe quantity posted from the line to a phase that completes the quantity, on a date inside the period you chose in the Filter.
PendingDemand minus fulfilled.
Delivery DateThe delivery date of the order.
Columns of the Display OptionsThey follow Delivery Date in this order: Agreed Delivery Date, Warehouse, Cost center, Category and Combination.

Buttons​

ButtonWhat it does
FilterOpens the Filter dialog, then fills the list.
PrepareCreates 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 ExportShow the list as it is now in the Prepare Sales Orders report. Printing needs the permission Print reports.
CloseCloses the window without saving anything.

Preparing​

When you click Prepare:

  1. The program reads the ticks from the list.
  2. If you chose New (select supplier and number) it checks the code, see Code rules.
  3. It asks "Data will be transferred to a preparation card, are you sure". Click Yes to continue or No to go back.
  4. 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.
  5. It adds one line for each ticked line, with its material, its quantity (see The three quantities) and today's date.
  6. With Unavailable Quantity it works out the quantity of each line, see Working out the unavailable quantity.
  7. The message "Order is prepared successfully" appears, then the Prepared Purchase Orders window opens on the preparation.
  8. 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.

ItemQuantity (kg)
Quantity of the line100
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 preparation20
Stock balance of the material30

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.

FieldDescriptionRequiredValues and rules
AccountLimits the lines to the customers of this account.NoEmpty means all customers.
MaterialLimits the lines to this material.NoIf you choose a material, Group is disabled, and the other way round.
GroupLimits the lines to the materials of this group.No
WarehouseLimits the lines to this warehouse.NoThe warehouse of the line is used.
Cost CenterLimits the lines to this cost center.No
Order NoLimits the list to one order by its number.NoA whole number. Empty means all orders.
Sort byThe order of the rows.YesMaterial 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 ToThe period.YesThe 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 TermsA saved condition on material cards.NoThe conditions editor is explained in Report parameter forms.
Customers TermsA saved condition on customer cards.NoAs above.
Order TermsA saved condition on orders.NoAs above.
Orders TypesThe sales order forms that enter the list.Yes, at least oneA 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 OptionsExtra columns and the kind of materials.NoSee 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.

OptionEffectDefault
Agreed Delivery DateAdds the column.Unticked
Warehouse NameAdds the Warehouse column.Unticked
Cost center nameAdds the Cost center column.Unticked
CategoryAdds the column.Unticked
Show Stock MaterialsStock materials enter the list.Ticked
Show Service MaterialsService materials enter the list.Unticked
Show Fixed AssetsFixed assets enter the list.Unticked
CombinationAdds 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:

ItemWhat 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​

MessageWhy it appearsWhat to do
At least one order type should be selectedYou 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 optionThe 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 usedThe new option and a code used by another preparation.Change the code.
Data will be transferred to a preparation card, are you surePrepare.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 materialsUnavailable 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 successfullyThe preparation is complete.The preparation window opens.
Cnt Save PPO HeaderThe new preparation header could not be saved. The message appears in English.Try again.
Cnt Add PPI ItemsA 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 printPrint without the permission Print reports.Ask the administrator for it.

This page applies to alameen ERP 10, version 10.1.79.764.