Negative Output
This report answers the question: which materials did I sell or issue before they came into my warehouse? It shows the bills that pushed the balance of a material in a warehouse below zero, or it shows for each material and warehouse the lowest balance it reached. If you choose the brief shape, you can generate from it an input bill that brings the balance back to zero.
Opening the report
- From the ribbon: Materials > Analytical Reports > Negative Output.
The report needs the Negative Output permission in Users Management, on the Reports page, the materials and warehouses module in your licence, and the negative balance report feature in your licence. Its command does not show in the ribbon without them. The report does not read service materials.
The conditions window appears first. Set the conditions, then click Preview to show the report. The page Report parameter forms explains the buttons of this window. The page Report viewer explains what follows. This report has no Summaries button. The window has an Input Bill button, disabled until you show the report in the brief shape. It is explained below.
How the negative balance is calculated
For each material in each warehouse the program reads all its posted bills in date order, from the start of the file, and adds the balance line by line: an input adds and an output subtracts. Whenever an output line is inside the Period and in the chosen Report Sources, and the balance after it is below zero, the program records it in the report.
This means:
- The balance is calculated from all the posted bills of the material, whatever their form and date. The Period and Report Sources only decide which output lines are shown.
- If you choose a Cost Center, the balance is calculated from the bills of this center only.
- In the extended shape, every output line after the balance becomes negative shows, until an input brings the balance back to zero or above.
- Only a balance below zero shows, not a zero balance.
Parameters
The conditions are listed in the order of the standard window layout: the conditions in one column with Materials Terms under them, and Report Sources on the other side. In the tabs layout the General, Report Sources and Materials Terms tabs show. After the report is shown you can change the conditions in the Option List panel of the viewer and click Apply. The panel has the groups General (Material, Group, Warehouse and Cost Center), Period, Options (Use Unit and Report Shape) and Sources. It does not have Materials Terms: to change it, open the conditions window again. The options that change the columns of the report are disabled in the panel while a workspace is in use, and after Refresh or Apply.
Main conditions
| Condition | Meaning and effect | Default and rules |
|---|---|---|
| Material | Keeps this material. | Empty, meaning all stock materials and assets. |
| Group | Keeps the materials of this group and its sub-groups. | Empty, meaning all groups. |
| Warehouse | Keeps this warehouse and its sub-warehouses. | Empty, meaning all warehouses. |
| Cost Center | Keeps the bills of this center or its sub-centers. It appears if your licence includes cost centers. | Empty, meaning all centers. |
| Date | A list of ready periods and the From and To boxes. The output lines dated between the two dates are shown. | From the first day of the financial period to today, or from the first day of the current month if you cleared the program option "Start Date" is beginning date. |
| Use Unit | The unit of the quantity: First Unit, Second Unit, Third Unit or Default Unit. | Default Unit. |
| Report Shape | Extended: a row for each bill that pushed the balance below zero. Brief: a row for each material and warehouse with the lowest balance it reached. | Extended. |
| Materials Terms | Saved conditions on material cards. Only the materials that meet them stay. It appears if your licence includes material conditions in reports. The editor is explained in Report parameter forms. | None. |
Report sources
The Report Sources list decides which bill forms have their output lines shown. The list is explained in Report parameter forms. You see only the forms you have permission to browse.
Report header
The header shows what you chose among Material, Group, Warehouse, Cost Center and Materials Terms, then the date range, then the branches if branches are enabled in the file.
Columns
The report is one table. Add the columns that are hidden by default from the field list. See Report grid tools.
Extended shape
| Column | Meaning | When shown | How it is calculated |
|---|---|---|---|
| Bill | The form and number of the bill, such as SAL : 12. | Always. | The abbreviation of the form, a colon, then the number (the Latin abbreviation in the English interface, if there is one). |
| Bill Date | The date of the bill. | Always. | From the bill. |
| Material | The code and the name of the material. | Always. | The code, a dash, then the name (the Latin name in the English interface, if there is one). |
| Unit | The unit. | Always. | The name of the unit chosen in Use Unit. |
| Material Quantity in Bill | The quantity of the material in this line. | Always. | The quantity of the line with its gifts, divided by the factor of the chosen unit. |
| Quantity | The balance of the material in the warehouse after this line. | Always. | The balance after the line in the chosen unit. It is always below zero. |
| Warehouse | The code and the name of the warehouse. | Hidden. | From the line. |
| Notes | The notes of the line. | Hidden. | The notes of the line, or the notes of the bill if the line has none. |
| Cost center | The cost center of the line. | Hidden. | The cost center of the line, or of the bill if the line has none. |
Brief shape
One row for each material and each warehouse from which the material was issued below zero.
| Column | Meaning | How it is calculated |
|---|---|---|
| Material | The code and the name of the material. | As in the extended shape. |
| Warehouse | The code and the name of the warehouse. | From the line. |
| Unit | The unit. | The name of the unit chosen in Use Unit. |
| Quantity | The lowest balance the material reached in the warehouse. | The smallest balance among its shown lines, in the chosen unit. |
Example
For the material M01 Rice in the warehouse S01: an input of 10 on 02-01-2026, an output of 8 on 05-01-2026 (bill SAL : 21), an output of 5 on 10-01-2026 (bill SAL : 22), and an output of 2 on 15-01-2026 (bill SAL : 23). The period is 01-01-2026 to 31-01-2026, with all the sources.
The balance after each line: 10, then 2 (10 - 8), then -3 (2 - 5), then -5 (-3 - 2).
The Extended shape:
| Bill | Bill Date | Material | Material Quantity in Bill | Quantity |
|---|---|---|---|---|
SAL : 22 | 10-01-2026 | M01-Rice | 5.00 | -3.00 |
SAL : 23 | 15-01-2026 | M01-Rice | 2.00 | -5.00 |
The Brief shape:
| Material | Warehouse | Unit | Quantity |
|---|---|---|---|
M01-Rice | S01 | Bag | -5.00 |
Right-click menu
Right-click a row. The program adds the display commands automatically for everything the row is related to. The report has no commands of its own. A double-click on a row runs the last command you used from the menu, or the first one if you have used none.
| Command | When shown | What it does |
|---|---|---|
| Display Material Movement... | The row has a material, and you have the Material Movement permission. | Opens the conditions window of the material movement with the material of the row. |
| Display Daily Movement... | The row has a material, and you have the Daily Movement permission. | Opens the conditions window of the daily movement of the material. |
| Display Material Card... | The row has a material. | Opens the material card. |
| Display Bill... | The row has a bill, that is, in the extended shape only. | Opens the bill that pushed the balance below zero. |
Generating an input bill
The Input Bill button shows in the conditions window, and in the viewer on the Operations page (the group Operations). It is disabled until you show the report in the Brief shape, and it stays disabled with the Extended shape. It opens the Input Bill window, where you create a bill that enters the missing quantity of each row in the report, so its balance returns to zero.
Window fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Bill Type | The form of the bill to create. | Yes. | A list of the input forms you created of the kind purchase or sale return. Its first item is "Bill type" and cannot be accepted. |
| Customer | The customer of the bill, or the supplier. | When Payment Method is Credit. | Empty. |
| Currency | The currency of the bill. It appears if your licence allows more than one currency. | No. | The default currency. |
| Exchange Rate | The exchange rate of the currency. It appears with Currency. | No. | Follows the chosen Currency. |
| Warehouse | The warehouse of the bill. | Yes. | Takes the warehouse chosen in the conditions of the report, and is empty if Warehouse is empty there. Each line takes its warehouse from the report. |
| Cost Center | The cost center of the bill. It appears if your licence includes cost centers. | No. | Takes the cost center chosen in the conditions of the report. |
| Branch | The branch of the bill. It appears if branches are enabled in the file. | Yes, if shown. | Empty. |
| Payment Method | Cash or Credit. | No. | Cash. |
| Distributor | The distributor of the bill. | No. | Empty. |
| Salesman | The salesman of the bill. | No. | Empty. |
The window has the buttons Ok and Cancel. Cancel closes the window and creates nothing.
What Ok does
- The program checks the fields in order and stops at the first one that is missing, with a message (see Messages).
- It creates a bill of the chosen form dated with the From date of the report, not today's date. It has a line for each material and warehouse of the brief report. The quantity of the line is the absolute value of the lowest balance, and its warehouse is the warehouse of the row.
- It takes the price of each line from the material card by the default price type of the chosen bill form, not from the report.
- It saves the bill and posts it, taking approvals into account if they are enabled for its form. Then it shows the success message and opens the bill.
The quantity of the report is calculated in the unit chosen in Use Unit, and it is entered in the bill as a quantity in the default unit of the material. So keep Use Unit on Default Unit when you generate an input bill.
If a material forces serial numbers on input, the program opens the window to enter them for each material. See Material Quantities and Serial Numbers.
Messages
| Message or state | Why it appears | What to do |
|---|---|---|
| Please select at least one report source. | You did not select any source in Report Sources. | Select at least one source. |
| The report is empty | No material was issued below zero in the period and the chosen sources. | Widen the period and the sources. |
| Please select bill type | You clicked Ok in Input Bill and no Bill Type is chosen. | Choose a bill form. |
| Please select warehouse | Warehouse is empty in Input Bill. | Choose a warehouse. |
| Please select branch | Branches are enabled and Branch is empty. | Choose a branch. |
| Please select customer | Payment Method is Credit and Customer is empty. | Choose a customer, or change Payment Method to Cash. |
| Today date is later to closing date. Do You Want to generate bill? | The From date of the report is later than the closing date of the financial period. | Yes creates the bill with the closing date. No cancels the generation. |
| Today date is before Lock Date. Do you want to generate bill? | The date is before the lock date of the operations. | Yes creates the bill with the lock date. No cancels the generation. |
| Today date is before beginning date. Do you want to generate bill? | After the previous change the date is still before the beginning of the period. | Yes creates the bill with the beginning date. No cancels the generation. |
| Serial number of the elements are missing and were not entered | A material forces serial numbers on input and not all of them were entered. | Enter the numbers and try again. |
| An error occurred during saving bill | The bill was not saved. | Check the settings of the form and your permissions, then try again. |
| Bill saved successfully | The bill was saved. | Click Ok. The bill opens after it. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.