Skip to main content

Prepared Purchase Orders

This window shows a preparation: a set of lines you picked from sales orders so that you buy them from one supplier. From the window you turn the preparation into a purchase order, cancel that posting, change the preparation lines, or delete the preparation. A preparation is created in the Prepare Sales Orders window or on the preparation page of a sales order. This page also explains the Order Information dialog, shown when you post a preparation. For the task with its steps see Post prepared purchase orders to an order.

Opening the window​

Open the window in one of these ways:

  • From the ribbon: Orders > Orders Management > Prepared Purchase Orders. The Orders tab appears when the file is open and your licence includes orders. The button appears for a user who has the Prepared Purchase Orders permission, which has no check box in the Users window, so in practice only a user with full permissions sees the button. If your licence does not include the inventory feature, nothing happens when you click it.
  • From the preparation page inside a sales order, after the order's materials are prepared. See Order pages: preparation, posting, dividing and payments.
  • Automatically after you click Prepare in the Prepare Sales Orders window. It opens on the preparation you just created.
  • From the right-click menu of a report row that carries a preparation, such as Orders Preparation Movement. It opens on that preparation.

Opened from the ribbon, the window is empty, and the post, modify and delete buttons are disabled until you move to a preparation with the navigator. You do not create a preparation here: new preparations come from the Prepare Sales Orders window or from the preparation page of a sales order.

How the window works​

A preparation is a record with a code, a supplier, a date and a note, and it has lines. Each line is a material line of a sales order. A preparation has two states:

Not postedPosted
Supplier, Preparation Code, NotesEditable.Disabled.
Preparation Start DateAlways disabled.Disabled.
Tick boxes on the linesEnabled and ticked.Disabled, and the lines show in a different font colour.
PostEnabled if you have the permission Post Purchase Preparation to Purchase Order.Disabled.
Cancel Posting and OrderDisabled.Enabled.
Modify and DeleteEnabled.Disabled.

A posted preparation is linked to a purchase order that the program generated from it. Cancel Posting deletes that order and returns the preparation to the not posted state.

FieldDescriptionRequiredValues and rules
Purchase Order TypeName of the purchase order form the preparation belongs to.NoDisplay only, always disabled. The program fills it when a preparation is shown. It cannot be changed after the preparation exists.
SupplierThe supplier you will buy from.Depends on the formA lookup field on customer and supplier cards, see Lookup boxes and search. It is copied to the purchase order. If the purchase order form requires a supplier and you leave it empty, posting is refused. If the form does not require one and you leave it empty, the program uses the form's default cash account on the order.
Preparation CodeA code that identifies the preparation, such as P-5.Yes, to postText, as long as the notes field of the file. It must not repeat in another preparation, and Modify checks that. The code appears in the note of the purchase order.
Preparation Start DateThe date the preparation was created.NoAlways disabled. The program sets it on the day you click Prepare in the Prepare Sales Orders window.
NotesFree notes on the preparation.NoSaved by Modify and by Post. They do not move to the purchase order.
Security LevelSecurity level of the preparation.NoControls who can open it. Saved by Modify and by Post, and the purchase order takes it. The account card page explains the level.

The navigator at the top has six buttons and a number box. Its number is the sequence number of the preparation, not the preparation code. The record navigator explains it. If the header has an unsaved change, the program asks before it moves to another record.

Display options​

A list of check boxes at the top left of the window under the heading Display Options. Each tick adds a column to the lines list. Changing any tick re-reads the lines at once, and all lines are ticked again, so change the options before you untick lines.

OptionColumn it adds
Sales Order QuantityThe quantity of the line in the sales order, so you can compare it with the prepared quantity.
Item NoteThe note of the sales order line.
CategoryThe category of the line.
Cost centerThe cost center of the line.
CombinationThe combination name.
Expiry DateThe expiry date of the line.

All options are unticked until you tick them. When you click Close, the program saves the ticks in the open file, so they appear the same way the next time the window opens, for every user of the file and not only for you. It also saves them when you close the window in any other way.

Lines list​

The list shows the lines of the current preparation. For working with lists see Grids. The list stays empty until you move to a preparation.

ColumnMeaning
(tick box)The mark of the line. In a not posted preparation it starts ticked; untick a line and click Modify to remove it from the preparation. In a posted one it is disabled.
NumberThe order of the row in the list.
Material Code and Material NameThe material.
QtyThe prepared quantity in the unit of the sales order line. Gifts are not added.
UnitThe unit of the sales order line.
Customer NameThe customer of the sales order.
Sales OrdersThe sales order form and number, written as the form name, a dash, then the number.
Preparation DateThe day the line was added to the preparation.
Columns of the Display OptionsThey come after Preparation Date in this order: Combination, Expiry Date, Sales Order Quantity, Item Note, Category, Cost center, for the ones you ticked.

When you tick Combination, the combination name also appears after Material Name, so the values after it show under the next heading.

Buttons​

ButtonWhat it does
PostTurns the preparation into a purchase order. See Posting to an order.
Cancel PostingCancels the posting and deletes the purchase order. See Cancel posting.
Use Manufacture FormsA check box that changes what goes into the purchase order, see Posting to an order. Unticked by default. It appears only if your licence includes manufacturing and the option Integrate with manufacturing system is on in the orders options.
OrderOpens the purchase order generated from the preparation. Enabled after posting. The number of the purchase order shows next to it.
ModifySaves the header and deletes the unticked lines. See Modify.
DeleteDeletes the preparation. See Delete.
Preview, Print and ExportShow the lines of the preparation in the Prepared Purchase Orders report: a preview on screen, a printout, or an export to Excel. Printing needs the permission Print reports.
CloseSaves the Display Options and closes the window.

Posting to an order​

Click Post and the program generates a purchase order from the preparation lines. It runs these checks in order and stops at the first that fails:

  1. Preparation Code is not empty; otherwise the message "Enter New Order Code" appears.
  2. The purchase order form has phases defined; otherwise the program tells you to define the order statuses in the Order Status Card.
  3. The list has at least one line.
  4. Supplier is set, if the form requires it.
  5. At least one line has a quantity greater than zero.

Then the Order Information dialog appears. When you click Ok in it:

  • The program combines the lines. Two lines merge when they have the same material, category, unit, cost center, price and expiry date: their quantities add up, and the note of the merged line lists every sales order by form name and number. A line that matches no other stays a line of its own, and its note is the sales order form name and number followed by the note of the order line. If the option Save customer name of sales order in item notes of purchase order generated from orders preparation is on, the customer name is added.
  • The program ignores the tick boxes. Every line with a quantity greater than zero goes into the order. To leave a line out, untick it and click Modify before Post.
  • The price of a line is the price of the material by the default price type of the purchase order form, on the order date you chose. If the option Prepare Purchase Orders - use price specified in the order when purchase order is generated is on, the price is the price of the sales order line, and if that is zero the form's price is used. No discount or extra is applied. In the Gulf tax systems the tax comes from the material card and the supplier card.
  • With Use Manufacture Forms ticked, the order does not get the preparation lines. It gets the raw materials of the manufacturing forms of those materials, one line for each material and unit. The quantities are worked out from the quantities of the sales order lines in the preparation, not from the prepared quantities, and the program does not fill in prices. A material with no manufacturing form goes in with its own quantity. All preparation lines count, even those with a prepared quantity of zero.
  • If no line is left, the warning "No materials for order" appears and nothing else happens.
  • The program saves a purchase order of the preparation's form. Its date, currency, header warehouse and cost center come from the Order Information dialog. All the dates of its additional information are set to its date. Its note is "Generated from Preparation No." followed by the preparation code. Its account is the supplier's account, or the form's default cash account. No discounts or extras are entered. The message "Preparation is posted to purchase order successfully" appears as soon as the order is saved; the program then completes the steps below.
  • If the form generates entries automatically, the program generates the order's entry.
  • It records the order in the first phase of the form, with the quantity of each line.
  • If the Payment Method is credit, it adds one payment of 100% on the order date with the order's grand total.
  • It records notifications for the users who are set to receive notifications of this form.
  • It links the preparation to the order and saves the header (preparation code, supplier, notes, security level), then opens the generated order window and refreshes this window.
note

The program takes the price of the material's first unit even when the line uses another unit. For a preparation made with the unavailable quantity, it puts the quantity counted in the first unit with the unit of the sales order line. Check the quantities and prices of the order after posting when the lines use a unit other than the first one.

Posting does not change sales orders and does not create a bill. What it generates is a purchase order of the order forms, and its quantities become bills later when the order is posted, see Orders Posting. The lines of a posted preparation stay out of the Prepare Sales Orders list.

warning

Every line with a quantity greater than zero goes into the purchase order, whatever its tick box says. Remove unwanted lines with Modify before you post, because posting does not ask about them.

Worked example​

Preparation P-5 for the supplier "Gulf Foods", purchase order form "Purchase Order" with the default warehouse "Main", payment on credit. Its lines:

Sales orderMaterialQuantity
"Sales Order - 101"Rice40 kg
"Sales Order - 102"Rice25 kg
"Sales Order - 102"Oil20 litres

The rice price by the default price type is 2.00 and the oil price is 5.00. The order gets two lines:

MaterialQuantityPriceValue
Rice65 (from 40 and 25; its note names both orders)2.00130.00
Oil205.00100.00

The total is 230.00. Because the payment is on credit, one payment of 230.00 at 100% is recorded on the order date. Both lines are recorded in the first phase, with quantities 65 and 20.

Order Information dialog​

It appears when you click Post and the checks pass. It sets what goes in the header of the purchase order. Click Cancel to go back to the window without posting.

FieldDescriptionRequiredValues and rules
Order typeThe purchase order form.NoDisplay only.
SupplierThe supplier of the preparation.NoDisplay only. It comes from the main window; change it there.
DateThe date of the purchase order.YesStarts as today's date. See Date fields.
CurrencyThe currency of the order.YesA list of currencies. It starts on the first currency in the list, and its exchange rate appears with it.
ParityThe exchange rate of the selected currency.NoDisplay only. A box beside it shows the inverse of the rate. When the program generates the order it keeps only the whole part of the rate, so use a whole-number rate.
WarehouseThe warehouse of the order.Yes, unless the form has a default warehouseIf you leave it empty the program uses the form's default warehouse; if there is none, it refuses with "Please select Warehouse". The order header takes this warehouse; the lines take the form's default warehouse when it has one.
Cost CenterThe cost center of the order.NoIf you leave it empty the program uses the form's default cost center.
Payment MethodCash or credit.YesStarts on Cash, or on On Credit if the form is not a cash form. Disabled if the form fixes the payment method.
CategoryA category written as text.NoThe program does not use this value in the generated order.

Cancel posting​

Cancel Posting removes the link between the preparation and the purchase order and deletes the order. It needs the permission Cancel Posting Purchase Orders Preparation; without it the message "You do not have permission" appears.

  1. The program asks: "Posting the Preparation will be canceled and Order will be deleted.Are you sure". Click Ok to continue or Cancel to go back.
  2. It deletes the purchase order. If the order is posted, "Not able to delete Preparation because Order is posted" appears and nothing changes. If the deletion fails, "Deleting Preparation is not completed" appears.
  3. It deletes the payments of the order, then clears the link and returns the preparation to the not posted state: Post, Modify and Delete are enabled again.

You can also cancel the posting from the purchase order itself by deleting it: when you delete an order that came from a preparation, the program asks whether to cancel the preparation posting first. See Purchase Order.

Modify​

Modify saves the header changes and deletes the lines whose tick you removed. It needs the permission Modify purchase order preparation.

  1. It checks that Preparation Code is not used by another preparation; otherwise "Cannot save the card, the preparation code is previously used" appears and the cursor returns to the field.
  2. It checks that at least one line is ticked; otherwise "You must specify one item at least before pressing Modify" appears.
  3. It asks: "Modification will be saved. Are you sure". Click Ok to continue.
  4. It saves the supplier, preparation code, notes and security level, and deletes the unticked lines. "Modifications saved successfully" appears. If saving fails, "Error encountered while saving and No modifications saved" appears.

The deleted lines return to the Prepare Sales Orders list so you can prepare them again. The lines are deleted as soon as you click Modify, and Close does not undo it.

Delete​

Delete deletes a not posted preparation completely. It needs the permission Delete purchase order preparation. It asks: "Preparation will be deleted. Are you sure". Click Ok to delete. The window stays open afterwards, and Modify and Delete are disabled until you move to another preparation. The lines of the deleted preparation return to the Prepare Sales Orders list.

warning

After deleting, move to another preparation or close the window. Post stays enabled, and clicking it generates a purchase order linked to no preparation.

Right-click menu​

Right-click a line of the list to open the menu. Its items change with the line.

ItemWhat it does
Grid Lines (Ctrl+G)Shows or hides the grid lines in the list. A tick shows next to it while the lines are shown.
Display Order...Opens the purchase order generated from the preparation. Appears only for a posted preparation.
Display Material Card...Opens the card of the line's material.
Display Orders Preparation MovementOpens the Orders Preparation Movement report for the line's material. It needs the permission Orders Preparation Movement; without it the message "You do not have permission" appears.
Display...Shows the values of the line's columns as text in a message.

The shortcut DblClk shows beside one of the display commands: it is the one that a double-click on the line runs. It is the first, or the last command you used if the menu items are the same. For menus see Grid menus.

The item Display Orders Preparation Movement appears after you click a line of the list. If the item is missing, click the line first, then open the menu.

Messages​

MessageWhy it appearsWhat to do
Enter New Order CodePreparation Code is empty on Post.Type an unused code.
Order status should be defined in Order Status CardThe purchase order form has no phases.Define the form's phases, then post again.
No materials for orderThe list is empty on Post, or no line is left after Use Manufacture Forms.Check the preparation lines and the manufacturing forms.
The message shows the title "Invalid value" and the text "Please enter the customer/supplier name"The purchase order form requires a supplier and Supplier is empty.Set the supplier.
(message with no text)All quantities are zero on Post.Keep a line with a quantity greater than zero.
Please select WarehouseWarehouse is empty in Order Information and the form has no default warehouse.Select the warehouse.
No Order Saved !Saving the purchase order failed, or the order was saved but its entry failed; the order stays, not linked to the preparation: find and delete it before posting again.Read the message before it if one appeared, and check Order Information.
Preparation is posted to purchase order successfullyThe posting succeeded.Nothing.
Posting the Preparation will be canceled and Order will be deleted.Are you sureCancel Posting.Ok to continue.
Not able to delete Preparation because Order is postedThe purchase order is posted when you click Cancel Posting.The posting cannot be cancelled while the order is posted.
Deleting Preparation is not completedDeleting the purchase order failed.Try again; if it repeats, ask the administrator.
Cannot save the card, the preparation code is previously usedDuplicate code on Modify.Change the code.
You must specify one item at least before pressing ModifyAll lines are unticked on Modify.Tick a line. To remove the whole preparation use Delete.
Modification will be saved. Are you sureModify.Ok to save.
Modifications saved successfullyModify succeeded.Nothing.
Error encountered while saving and No modifications savedSaving the header failed.Try again.
Material not found:A line no longer exists on Modify; the deletion stops and nothing is saved.Reopen the preparation.
Preparation will be deleted. Are you sureDelete.Ok to delete.
You do not have permissionYou lack the permission for Modify, Delete, Cancel Posting or Orders Preparation Movement.Ask the administrator for the permission.
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.