Warehouse Sales
This window compares what a sales warehouse sold in a period with what is available of each material in the stock warehouse that feeds it. From the difference it generates a transposition from the stock warehouse to the sales warehouse, so that the sales warehouse is replenished by what it sold.
The window changes no bill. A new transposition results only when you click Generate Transposition for Shortage. The report you preview or print from it is described in Warehouse Sales (report).
Opening the window
- From the ribbon: Invoices > Tools > Invoices Tools > Warehouse Sales. Open the menu of the Invoices Tools button and click the command.
- The command appears if your licence includes warehouses and the extended reports, and the file does not work in the multiple files mode.
- The user needs the permission to run the report Warehouse Sales in Users Management, on the Reports page.
Comparison conditions
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Sales Warehouse | The warehouse whose sales are counted. | Yes | A lookup box with the rules of lookup boxes. Its sub-warehouses are counted too. If empty, "Must select sales warehouse" appears. |
| Stock Warehouse | The warehouse that feeds the sales warehouse and whose stock is taken. | Yes | Its sub-warehouses are counted too. If empty, "Must select stock warehouse" appears. |
| Material | Limits the comparison to one material. | No | Empty means all materials. If you choose a material, Group is disabled, and the reverse. |
| Group | Limits the comparison to the materials of this group. | No | Empty means all groups. |
| Cost Center | Limits the sales to the lines of this center. | No | It does not affect the stock. |
| Search | Filters the grid rows after Update. | No | Type part of any column of the grid. |
| From and To | The period of the sales. | Yes | Default: from the start of the period if the program option "default start date is the start of the period" is on, otherwise from the first day of the current month, to today (or the end of the period if today is after it). The period does not limit the stock. |
| Sort By | The order of the rows. | Yes | See Sorting. |
| Use Unit | The unit of the quantities. | Yes | First Unit, Second Unit, Third Unit or Default Unit (default). |
| Materials Terms | A saved condition on material cards that limits the comparison. | No | A list whose first item is None. See materials terms. |
| Material's Fields | The columns shown for each material. | See Material fields. | |
| Report Options | What the program counts and shows. | See Report options. | |
| Types of Sales, Sales Return and Input Transposition | The bill types counted as sales for the sales warehouse. | Yes | A list of sales types, sales return types and input transposition types you may browse. All are ticked when the window opens, so untick the ones you do not want. Your saved defaults replace this (system menu > Save as Default). Under the list the Forms group box ticks the types of a group and unticks the others. If none is ticked, "Please select report sources" appears. |
Sorting
The program sorts the rows in the database by the position of the choice in the list. Material Code and Material Name match sorting by code and by name. The other choices sort as follows:
| Choice | Actual sorting |
|---|---|
| Latin name | Material type |
| Material Type | Specifications |
| Specifications | Color |
| Color | Source |
| Source | Size |
| Size | Manufacturer |
| Manufacturer | Barcode |
| Barcode | No fixed order |
Material fields
A list of check boxes that sets the grid columns for each material. The defaults are Material Name and Unit. The items: Material Code, Material Name, Latin name, Combination (if dimensions and combinations are enabled), Barcode, Unit, Material Type, Specifications, Size, Source, Location, Manufacturer, Group, Group Code, Color, Provenance, Type, Model and VAT rate, then the custom fields of materials if your licence includes them. Price and Quantity are not in the list: the quantities always appear in the grid.
Report options
| Option | What it does | Default |
|---|---|---|
| Show Posted Bills | Counts posted bills. | On |
| Show Unposted Bills | Counts unposted bills. With both on, all bills are counted. | Off |
| Show Balanced Materials in Sales Warehouse | Also shows the materials that have stock in the stock warehouse and zero sales. | Off |
| Show Balanced Materials in Stock Warehouse | Also shows the materials that have sales and no stock. | Off |
| Show Sales Warehouse Balance | Adds the column Sales Warehouse Quantity to the grid. | Off |
Without the two Show Balanced Materials... options the program shows only the materials that have sales (not zero) and stock greater than zero. A material with no bill of the chosen types in the period never appears. One of Show Posted Bills and Show Unposted Bills always stays on.
Results grid
Click Update to fill the grid with the current conditions. Its columns:
| Column | Meaning |
|---|---|
| The ticked Material's Fields columns | Material data. |
| Sales | The sales quantity of the period: the sum of (quantity + gifts) of the output bill lines of the chosen types in the sales warehouse, in the chosen unit. Input bills (such as a sales return) add nothing and subtract nothing. |
| Stock | The balance of the material in the stock warehouse: inputs minus outputs, with gifts, from all bill types and all dates, according to the posting state. |
| Sales Warehouse Quantity | Shown with the option Show Sales Warehouse Balance. It shows 0 in every row in this version. |
When you select a row, the small list below fills with two columns, Warehouse and Qty, holding the balance of the selected material in every warehouse, according to the posting state, with no date or type limit, and leaving out warehouses you may not browse.
If the program finds no row, "No results found in this period" appears and the grid is emptied.
Buttons
| Button | What it does |
|---|---|
| Update | Calculates the comparison and shows it in the grid. |
| Generate Transposition for Shortage | Opens Transposition Notes, then generates a transposition from the stock warehouse to the sales warehouse. See Generating the transposition. |
| Preview | Calculates the comparison and opens the Warehouse Sales report in the viewer. |
| Calculates the comparison and prints the report. It needs the permission Print reports, otherwise "You don't have the authority to print" appears. | |
| Export | Exports the same report to an Excel file without showing it, after you choose the file in the export window. |
| Cancel | Closes the window. |
Preview, Print, Export and Update check the same things in this order: the material fields and conditions, then the sources, then the two warehouses.
Generating the transposition
Generate Transposition for Shortage generates a transposition from the Stock Warehouse to the Sales Warehouse, with, for each material in the grid, the smaller of Sales and Stock. The transposition comes from the grid shown by the last Update, so click Update first.
- If the grid is empty or holds no stock, "No sufficient stock in warehouse to generate a Transposition!" appears.
- The window Transposition Notes opens. Click Ok to continue or Cancel to stop.
- If Stock Warehouse or Sales Warehouse is empty, "Must select stock warehouse" or "Must select sales warehouse" appears.
- If the date of the transposition is after the end of the period, the program asks "The date is later to closing date. Do you want to generate bill?" and you answer Yes or No. For materials with serial numbers the serial numbers window opens for each material. If you do not enter as many as the quantity, "Must select the serial number of material" appears with its name. If a number is not in the warehouse, "Serial number(s) not in warehouse" appears with the number.
- In one transaction the program generates an output bill from the stock warehouse and then an input bill to the sales warehouse, with the two transposition types you chose. If the date is before the operations lock date it asks "The date is prior to lock date. Do you want to generate bill ?" and, if you accept, uses the lock date instead. If it is before the start of the period it asks "The date is prior to beginning date. Do you want to generate bill?" and uses the start date. If it is after the end of the period it uses the end date.
- In both bills the program puts: the note "Bill generated from warehouse sales" with today's date; the cost center, currency and branch from Transposition Notes; cash payment; and for each material its last price at the date of the transposition.
- It links the two bills as a transposition, posts them if the input type posts automatically, and opens the Transposition with Entry window on it.
- "Transposition has been generated successfully" appears. If any part fails the program cancels the whole transposition and shows "Error has occurred while generating bill".
The button changes no sales bill and no warehouse of a bill. If you made a mistake, delete the transposition from its own window.
Transposition Notes
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Invoice Type | The transposition type. | Yes | A list of the transposition types you may enter (names are shown without their prefix). If you choose none, "Please select bill type" appears. |
| Currency | Currency of the two bills. | Yes | Defaults to the base currency. |
| Parity | Exchange rate of the currency. | Read with Currency. | |
| Cost Center | Cost center of the two bills. | No | Defaults to the cost center of the comparison window. |
| Date | Date of the two bills. | Yes | Today by default. |
| Branch | Branch of the two bills. | Depends on the option | It must be valid for you. |
| Ok | Saves the notes and continues. | ||
| Cancel | Closes the window without generating. |
Example
The sales warehouse is "Sales Warehouse", the stock warehouse is "Main Warehouse", and the period is 01-12-2026 to 31-12-2026. This example is calculated from the program's rules.
| Material | Sales | Stock | Transposition quantity |
|---|---|---|---|
| Rice | 40 | 300 | 40 |
| Sugar | 25 | 10 | 10 |
| Tea | 0 | 50 | Not shown without Show Balanced Materials in Sales Warehouse |
The transposition moves 40 rice and 10 sugar from "Main Warehouse" to "Sales Warehouse". "Main Warehouse" is left without sugar, and the missing sugar quantity 15 stays visible in the grid.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Must select sales warehouse | Update, Preview, Print, Export or Generate Transposition for Shortage with Sales Warehouse empty. | Choose the warehouse. |
| Must select stock warehouse | The same with Stock Warehouse empty. | Choose the warehouse. |
| Please select report sources | No type is ticked in the list. | Tick at least one type. |
| No results found in this period | The program found no row for the conditions. | Widen the period, turn on the Show Balanced Materials... options or change the types. |
| No sufficient stock in warehouse to generate a Transposition! | The grid is empty or has no stock. | Click Update and check the two warehouses. |
| Please select bill type | You clicked Ok in Transposition Notes without Invoice Type. | Choose the type. |
| Must select the serial number of material | A material with serial numbers whose numbers you did not enter as many as the quantity. | Enter the numbers. |
| Serial number(s) not in warehouse | A number that is not in the stock warehouse. | Choose an existing number. |
| The date is later to closing date. Do you want to generate bill? | The transposition date is after the end of the period. Yes or No. | Choose. |
| The date is prior to lock date. Do you want to generate bill ? | The transposition date is before the operations lock date. Yes or No. | Choose. |
| The date is prior to beginning date. Do you want to generate bill? | The transposition date is before the start of the period. Yes or No. | Choose. |
| Transposition has been generated successfully | The generation completed. | Review the transposition. |
| Error has occurred while generating bill | One of the two bills could not be saved. | Check the type and the balances and repeat. |
| You don't have the authority to print | Print without the permission Print reports. | Ask for the permission. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.