Skip to main content

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​

FieldDescriptionRequiredValues and rules
Sales WarehouseThe warehouse whose sales are counted.YesA lookup box with the rules of lookup boxes. Its sub-warehouses are counted too. If empty, "Must select sales warehouse" appears.
Stock WarehouseThe warehouse that feeds the sales warehouse and whose stock is taken.YesIts sub-warehouses are counted too. If empty, "Must select stock warehouse" appears.
MaterialLimits the comparison to one material.NoEmpty means all materials. If you choose a material, Group is disabled, and the reverse.
GroupLimits the comparison to the materials of this group.NoEmpty means all groups.
Cost CenterLimits the sales to the lines of this center.NoIt does not affect the stock.
SearchFilters the grid rows after Update.NoType part of any column of the grid.
From and ToThe period of the sales.YesDefault: 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 ByThe order of the rows.YesSee Sorting.
Use UnitThe unit of the quantities.YesFirst Unit, Second Unit, Third Unit or Default Unit (default).
Materials TermsA saved condition on material cards that limits the comparison.NoA list whose first item is None. See materials terms.
Material's FieldsThe columns shown for each material.See Material fields.
Report OptionsWhat the program counts and shows.See Report options.
Types of Sales, Sales Return and Input TranspositionThe bill types counted as sales for the sales warehouse.YesA 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:

ChoiceActual sorting
Latin nameMaterial type
Material TypeSpecifications
SpecificationsColor
ColorSource
SourceSize
SizeManufacturer
ManufacturerBarcode
BarcodeNo 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​

OptionWhat it doesDefault
Show Posted BillsCounts posted bills.On
Show Unposted BillsCounts unposted bills. With both on, all bills are counted.Off
Show Balanced Materials in Sales WarehouseAlso shows the materials that have stock in the stock warehouse and zero sales.Off
Show Balanced Materials in Stock WarehouseAlso shows the materials that have sales and no stock.Off
Show Sales Warehouse BalanceAdds 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:

ColumnMeaning
The ticked Material's Fields columnsMaterial data.
SalesThe 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.
StockThe 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 QuantityShown 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​

ButtonWhat it does
UpdateCalculates the comparison and shows it in the grid.
Generate Transposition for ShortageOpens Transposition Notes, then generates a transposition from the stock warehouse to the sales warehouse. See Generating the transposition.
PreviewCalculates the comparison and opens the Warehouse Sales report in the viewer.
PrintCalculates the comparison and prints the report. It needs the permission Print reports, otherwise "You don't have the authority to print" appears.
ExportExports the same report to an Excel file without showing it, after you choose the file in the export window.
CancelCloses 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.

  1. If the grid is empty or holds no stock, "No sufficient stock in warehouse to generate a Transposition!" appears.
  2. The window Transposition Notes opens. Click Ok to continue or Cancel to stop.
  3. If Stock Warehouse or Sales Warehouse is empty, "Must select stock warehouse" or "Must select sales warehouse" appears.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. "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​

FieldDescriptionRequiredValues and rules
Invoice TypeThe transposition type.YesA list of the transposition types you may enter (names are shown without their prefix). If you choose none, "Please select bill type" appears.
CurrencyCurrency of the two bills.YesDefaults to the base currency.
ParityExchange rate of the currency.Read with Currency.
Cost CenterCost center of the two bills.NoDefaults to the cost center of the comparison window.
DateDate of the two bills.YesToday by default.
BranchBranch of the two bills.Depends on the optionIt must be valid for you.
OkSaves the notes and continues.
CancelCloses 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.

MaterialSalesStockTransposition quantity
Rice4030040
Sugar251010
Tea050Not 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​

MessageWhy it appearsWhat to do
Must select sales warehouseUpdate, Preview, Print, Export or Generate Transposition for Shortage with Sales Warehouse empty.Choose the warehouse.
Must select stock warehouseThe same with Stock Warehouse empty.Choose the warehouse.
Please select report sourcesNo type is ticked in the list.Tick at least one type.
No results found in this periodThe 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 typeYou clicked Ok in Transposition Notes without Invoice Type.Choose the type.
Must select the serial number of materialA material with serial numbers whose numbers you did not enter as many as the quantity.Enter the numbers.
Serial number(s) not in warehouseA 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 successfullyThe generation completed.Review the transposition.
Error has occurred while generating billOne of the two bills could not be saved.Check the type and the balances and repeat.
You don't have the authority to printPrint without the permission Print reports.Ask for the permission.

This page applies to alameen ERP 10, version 10.1.79.764.