Purchase Orders
Purchase Orders based on sales / purchase and stock status
Auto PO
Works out what to order from a supplier by looking at what sold, what is in stock and what is already on order, lets you adjust the quantities, and creates the purchase order in one click.

Step 1 – choose what to look at

- Mfr (and Div for a single division rather than the whole group), Party (items of the manufacturers that supplier deals in) and, if rate contracts are in use, RC.
- S-n-S Date – the period of sales and purchases to analyse. It starts as this month so far. The Stock on column shows stock as at the end date.
- Sale Party / Sale Cate / Sale Sr – optional. Tick them to also count how much was sold to one party, one category or in one bill series (shown in Pty/Cate Sale), so that those sales can be left out of the demand.
- Highlight Near Exp Last – marks items whose last purchase date cell is brown when you hold stock expiring within the given number of months, so you don't reorder what you can't sell.
Click Generate. The grid lists the manufacturers' items, under a heading line for each manufacturer.
Step 2 – read the grid
Each manufacturer's items sit under a heading line (bold, pale yellow). The last line of the grid is a bold yellow Total: line.

| Column | Meaning |
|---|---|
| Sr., Num, Name | Serial number, item code and item name. These stay in view while you scroll right. |
| Last Purc | Date of the last purchase (or opening stock) up to the end date. |
| Last Sale | Number of days since the item was last sold (0 if it has never been sold). |
| Last Rate | Purchase rate on the last purchase (or the Base Rate of the rate contract). |
| In Qty | Purchased in the period. |
| Old Out / Out Qty | Sold, consumed or transferred out in the previous month / in the period. |
| Pty/Cate Sale | The part of Out Qty sold to the party, category or series chosen above (shown only when one of them is ticked). |
| Out Val | Value of Out Qty at the last rate. |
| Stk on | Stock at the end date. |
| SODue / PODue | Sales-order quantity not yet supplied; quantity ordered on POs but not yet purchased. |
| Reqd Qty | Quantity worked out as required (step 3). |
| Order | What you actually order (editable, but see PuRetn Lock). |
| Note | A remark for the supplier (editable). |
| PuRetn Dys | Days since the item was last returned to a supplier by a purchase return. Blank if never returned. |
| Short Count | Number of open short entries for the item. |
| Disc.% | A discount for the line (editable). |
| Stk Value | Stock × last rate. |
| Approx Value | Value of the order quantity for the line (rate or RC rate, less the discount). |
| Min / Max / Cs-Fctr | The item's minimum and maximum stock levels, and its case factor. |
| Cate | The item's category. |
In installations that work with rate contracts and sales orders (the RC / SO System setting), the sale-analysis columns (In Qty, Old Out, Out Qty, Pty/Cate Sale, Out Val), Short Count, Disc.%, Min / Max and Cate are hidden, and SODue / PODue are shown instead.
Double-click an item name to open the item master, a quantity column to see the item's status, or Short Count to see the short entries. Hover over a coloured cell for a tooltip where one is available (NRx, Fast Moving, near expiry).
Click any cell to see that item's details in the strip below the grid: its last purchase (quantity, date and scheme), the last PO (quantity and date), whether it is NRx or Fast and its scheme, the Case Factor, the Scheme Register (the current purchase scheme, in blue) and its purchase price range.

What the colours mean

All colours are applied by dsGST; you can't change them. They fall into row colours, cell warnings, column tints and form colours.
Rows
| Colour | Where | Meaning |
|---|---|---|
| Pale yellow, bold | Whole row | Manufacturer heading line. |
| Yellow, bold | Whole row (last) | Total of In Qty, Out Qty, Pty/Cate Sale, stock quantity and stock value for the whole sheet. |
Cells that warn you about the item
| Colour | Cell | Meaning |
|---|---|---|
| Pink | Last Sale | Not sold for more than 90 days – think twice before ordering more. |
| Red (white text) | Sr. and UoM | NRx (prescription-only) item. Tooltip: NRx Item. |
| Dark green (white text) | Num (item code) | Fast-moving item. Tooltip: Fast Moving. |
| Blue (white text) | Name and Short Count | The item has one or more open short entries – customers have asked for it. |
| Brown (white text) | In Qty, Old Out, Out Qty, Out Val | The last PO for this item has not been supplied – it was placed after the last purchase, so the item may already be on its way. |
| Brown (white text) | Last Purc | The item has stock expiring within the months set beside Highlight Near Exp Last. Tooltip: <item> has near expiry stock. Only when that option is ticked. |
| Red (white text) | PuRetn Dys | The item was returned to a supplier less than 90 days ago. |
| Light grey | Reqd Qty | The requirement worked out is negative (you hold more than needed). |
NRx items (red Sr. and UoM), here shown with the Only NRx filter:

Dark green in Num marks fast-moving items (rows 2 and 4 below), and blue in Name marks items with open short entries (rows 3 and 6):

The same items show their short count, in blue, in the Short Count column (1 and 2 here):

Brown in Old Out, Out Qty and Out Val – the last PO for the item has not been supplied yet (the items on these two lines were just ordered):

Brown in Last Purc – stock that expires soon:

The same brown is used for both the "PO not supplied" and the "near expiry" marks; look at which column it is in. The Short Marks and Last PO not Supplied boxes below the grid repeat the blue and brown as a key.

The Order cell
The Order column is pink by default. It changes colour to tell you what state the item is in:
| Colour | Meaning |
|---|---|
| Red (white text) | Locked. A purchase return was made in the last 90 days and PuRetn Lock is ticked. You can't type in the cell and Set Order will not fill it. |
| Orange | Recent purchase return, lock released. The item was returned in the last 90 days but PuRetn Lock is unticked, so you can order it. The orange reminds you this is an exception. |
| Green-yellow | A quantity has been entered, and it will go on the PO. |
| Pink | No quantity. |
The Disc.% cell turns green-yellow when a discount has been entered for the line.
Recent purchase returns and PuRetn Lock
If an item was returned to a supplier by a purchase return in the last 90 days, you should not be ordering it again. PuRetn Lock (ticked when you open the screen) enforces this:
-
Ticked – the Order cell of such an item is red and read-only. Set Order skips it, so no order is created for it.

-
Unticked – the lock is released for the occasion when an order must be placed anyway. The cell turns orange (still marked as a recent return) and can be edited.

-
Ticking or unticking only changes whether the cell can be edited and how it looks. It never changes a quantity. If you untick the lock, order a quantity (below, 5) …

… and tick it again, the quantity stays on the sheet and is included in the PO, but the cell can no longer be edited.

-
The PuRetn Dys cell stays red either way, so the warning is never lost.
-
After Resume, the lock follows the current state of the tick box.
Editing Min / Max / Cs-Fctr
| Colour | Meaning |
|---|---|
| Yellow | Min, Max and Cs-Fctr columns are open for editing (Update Min/Max/PCase is ticked). |
| Hot pink | A value you have changed and not yet saved. The colour goes away when you click Save Min/Max/PCase. |
Tick Update Min/Max/PCase at any time, before or after Generate. The Min and Max columns appear, and Min, Max and Cs-Fctr turn yellow and can be edited. Cs-Fctr is the last column, so scroll the sheet to the right to see it (the sheet scrolls there by itself as you tab across). Unticking hides Min and Max again.
Below, Min 8, Max 40 and Cs-Fctr 10 have been entered for one item, and are hot pink until saved:

Click Save Min/Max/PCase to store the changes in the item master. Only the items whose values you changed are updated, and each value goes to its own field. The yellow goes away and the box is unticked.
Column tints
These are fixed background tints that only help you tell neighbouring columns apart:
| Column | Tint |
|---|---|
| In Qty, SODue | Lavender |
| Old Out, Out Qty, PODue | Light yellow |
| Pty/Cate Sale | Light cyan |
| Order, Note | Light pink (the editable columns) |
Searching
Type text in Find and click Find. The first match is shown in aqua and the sheet moves to it; Next goes to the next one, and the count appears beside Found.


Colour reference by position
The tables above explain each colour. These two put them all together by where they appear: first the areas of the screen, then every grid column.
Areas of the screen
| Where | Colour | What it tells you |
|---|---|---|
| Top area: Party, Mfr, S-n-S Date, Generate, Print, Close | Wheat | Where you choose what to analyse. |
| Sale Party / Sale Cate / Sale Sr box, inside the top area | Old lace (paler) | The optional sale filters, grouped together. |
| Highlight Near Exp Last | Brown, white text | The same brown as the near-expiry mark in Last Purc. |
| Middle strip: Code, Name, PuRetn Lock, the filter lists, Find | Plain grey (normal screen colour) | Controls for looking at the sheet, not for selecting it. The chosen entry in each filter list is blue. |
| Empty part of the grid | Grey | No sheet generated yet. |
| Bottom area: item details, Calc Reqd, order totals, Party, Make PO | Wheat | Working area for the item you are on and for the order. |
| Short Marks label (bottom) | Blue, white text | Key for the blue short marks in the grid. |
| Last PO not Supplied label (bottom) | Brown, white text | Key for the brown pending-PO marks in the grid. |
| Sale Value figures and labels | Blue | The sale value, for comparison with the order and stock values (which are in black). |
| Hint beside Calc Reqd (for example Reqd = (Sale - PtySale) * Factor - Stock) | Blue | The formula of the method selected. |
| Purchase scheme text beside Scheme Register | Blue | The item's current purchase scheme. |
Grid columns
Column tint is the colour of the whole column. Cell colour appears only on the cells that meet the condition.
| Column | Column tint | Cell colour and what it means |
|---|---|---|
| Sr. | none | Red, white text: NRx item. |
| Num | none | Dark green, white text: fast-moving item. |
| Name | none | Blue, white text: the item has open short entries. |
| UoM | none | Red, white text: NRx item. |
| Last Purc | none | Brown, white text: stock that expires soon (when Highlight Near Exp Last is ticked). |
| Last Sale | none | Pink: not sold for more than 90 days. |
| Last Rate | none | – |
| In Qty | Lavender | Brown, white text: the last PO has not been supplied. |
| Old Out, Out Qty | Light yellow | Brown, white text: the last PO has not been supplied. |
| Out Val | none | Brown, white text: the last PO has not been supplied. |
| Pty/Cate Sale | Light cyan | – |
| Stk on | none | – |
| SODue | Lavender | – (shown in RC / SO systems) |
| PODue | Light yellow | – (shown in RC / SO systems) |
| Reqd Qty | none | Light grey: negative requirement. |
| Order | Light pink | Red: locked by recent purchase return. Orange: recent return, lock released. Green-yellow: a quantity is entered. |
| Note | Light pink | – |
| PuRetn Dys | none | Red, white text: purchase return within the last 90 days. |
| Short Count | none | Blue, white text: open short entries (the count). |
| Disc.% | none | Green-yellow: a discount is entered. |
| Stk Value, Approx Value, Cate | none | – |
| Min, Max, Cs-Fctr | Yellow when Update Min/Max/PCase is ticked | Hot pink: value changed, not yet saved. |
| Whole row: manufacturer heading | Pale yellow, bold | Groups the items of one manufacturer. |
| Whole row: last line | Yellow, bold | The Total: line. |
Cell colours take priority over a column tint, so a coloured cell hides its column's tint. The cell found by Find is shown in aqua, in whichever column it is.
Step 3 – calculate the requirement
Pick the method in the list beside Calc Reqd and click it:
- None – clears the requirement.
- Sale * Fctr - Stock – required = (Out Qty − party/category sale) × Factor − stock. With Factor 1 it orders what sold in the period; with 2 it covers two periods.
- SO Required – required = SO due − stock − PO due. Orders what customers have ordered through sales orders and you can't supply from stock. This is also what the Auto PO - PO Against Pending SO option on the Order menu opens.
Negative requirements are shown in grey.

Step 4 – set the order quantities
Click Set Order to copy the requirement into the Order column, rounded up to a multiple of the item's case factor, or of the Multiple Of number you have entered when the item has no case factor. Items locked by PuRetn Lock (red) are left alone. You can then type over any quantity, discount or note.
Use the lists above the grid to focus on what matters: items with or without short entries, stock or no stock, SO due or none, below Min or above Max, requirement above or not above zero, order entered or not, NRx and fast-moving items. Code and Name boxes filter by text (press Enter), and Find / Next jump between matches.

The totals show the number of items, quantity and value on order for the whole sheet and for the selected manufacturer, with the sale and stock values for comparison.

Step 5 – make the PO
Select the supplier in Party (it is preselected with the last supplier you bought the manufacturer from) and click Make PO. dsGST saves a purchase order with every line that has an order quantity, using the discount and note you gave, marks the short entries of the ordered items as done, and opens the PO in the PO Entry screen for you to check, print or mail. Items with no order quantity are left out, including items locked by PuRetn Lock unless you entered a quantity for them with the lock released. The PO is saved and unlocked, so it can be printed or mailed straight away.

The PO above has the 22 items and 340 quantity shown in the Order Total box, and the same value (43,974.60) as the sheet.
- Pause saves the sheet (with your quantities and its colours) to a file, and Resume brings it back, so you can continue after other work or on the next day. There is one saved sheet at a time; Generate discards it.
- Update Min/Max/PCase – tick this to make the Min, Max and Cs-Fctr columns editable (yellow), and click Save Min/Max/PCase to store the changes in the item master (see Editing Min / Max / Cs-Fctr).
- Print prints or exports the sheet.
PO Entry
This is the screen that Make PO opens, and you can also open it directly from the menu to enter a PO by hand or to look at one made earlier.

- Top part – Computer Id and PO Num of the order, its Date, the supplier (Party; N adds a new party), the supplier's Document number and date, and a Note. RC opens the rate contract if one is used.
- Item strip – pick an item (tick Short to list only items with short entries, InActive to include inactive items; N adds a new item), check its Min, Max and Stock, enter MRP, Rate, Qty and a Note, and use Add (F12), Change (F11) or Delete (F10).
- Grid – one line per item (with its manufacturer), showing MRP, rate, quantity, note and the approximate amount. Below it are the number of items and quantity in the PO, and the Grand Total.
- First / Previous / Next / Last move between POs; Add New starts a new one; Edit changes the PO shown (see Edit a PO). Force is available only when the PO is locked because an edit was started and not saved; see below.
- Supply Status opens the report of what has been supplied against this PO. Print opens the print options for it. These two are shown only while the PO is not being edited. Close closes the screen.
Edit a PO
Click Edit to change the PO shown. The screen turns cyan and its fields open:

- Change the Party, Date, Document or Note, or work on the lines with the item strip: select a line in the grid and use Change (F11) or Delete (F10), or pick an item and Add (F12). A Mfr tick box and list appear (top right): tick Mfr to narrow the item list to one manufacturer.
- While you edit, the buttons for moving between POs, Add New, Edit, Force, Supply Status and Print are hidden. Only Save and Close are left, so a PO cannot be printed or mailed until the edit has been completed with Save.
- Click Save to complete the PO. Take care with an empty PO: if it has no party, or you have deleted all its lines, Save deletes the PO.
- There is no way to cancel an edit. A PO that is being edited stays marked as in use, with the user, computer and time that started the edit shown below the grid, until it is saved properly. If you close the screen without saving, the PO remains locked: Edit stays greyed out and the PO cannot be printed or mailed.
- Force (available only on a locked PO) releases the lock. Use it to get a PO out of this state, for example after a crash or when the person who started the edit is no longer available. It does not complete the edit that was in progress. After Force, reopen the PO, click Edit, check it and Save; only then are Print and the mail options available.
Print PO
A PO can be printed or mailed only after it has been completed and saved (a PO still being edited is locked; see Edit a PO). A PO made with Make PO is already saved.
Click Print on the PO screen. The Printing of Purchase Order box opens for the PO shown:

- Printer – shows the printer in use; click it to choose another.
- PO Id – the PO to print. Change it to print another PO from here.
- Hide Rate, Hide Value, Hide Description – tick these to leave the rate, value and description out of the printed PO. Useful for the copy that goes to a supplier, who needs the items and quantities. Untick them for your own copy.
- Show Div Separator – puts a heading line for each manufacturer / division between the items.
- Party, Value, Items show what you are about to print. EMail (Pty) and EMail (MR) show the supplier's address and those of the medical representatives who receive POs by mail (see Mail PO).
- Preview shows the PO on screen first; Print sends it straight to the printer; Export saves it to a file named PO-<number>.
The preview looks like this (here with rate and value hidden, and the supplier's address and the company's contact details blanked out for this guide):

Close the preview to return to the box, and Close the box when done.
Mail PO
The Printing of Purchase Order box above also mails the PO. The EMail button is shown only when a mail server has been set up in dsGST, and is available only when there is an address to send to. It uses the Hide Rate, Hide Value and Hide Description choices in the box, so tick them for a mail to a supplier.
EMail
With Preview ticked, EMail prepares the mail and opens it in the SMTP Client – Send EMail window, where you can check and change it before anything is sent:

- From is the mail address of your firm set in dsGST. To is the supplier's address (more than one can be given, separated by
;or,). CC has the addresses of the medical representatives of the manufacturers on the PO who are set to receive POs. If the supplier has no address, the representatives' addresses are used as To. The small numbers under the To, CC and BCC buttons count the addresses. - The Subject is Purchase Order PO-<number>, and the message is the PO itself, with a short covering note. You can edit the message like any mail.
- The PO is attached as a CSV file (for example AA-PO-1047.csv), and as a PDF too when Attach PDF was ticked in the box and the PDF could be made. Use Attach and Detach to change the attachments.
- Send sends the mail. Close closes the window without sending.
With Preview unticked, EMail sends the mail at once, without showing this window, and then shows a message with the address it was sent to, or the error if sending failed.
Other options in the box
- Attach PDF – makes a PDF copy of the PO, through the PDF printer set up on the computer, and attaches it to the mail.
- Outlook – instead of dsGST's own mail, opens a new message in Outlook with the PO and the same addresses, for you to review and send from Outlook.
- Export – saves the PO to a file instead of printing or mailing it; you choose where, and the file is named PO-<number>.