Material Movement over Several Years
The Material Movement over Several Years report follows one material through the current file and the files of previous years. It shows a line for each year file with the previous balance, the input, the output, the balance and the purchase prices, and under each line the bills of that year with the running balance and the average cost. Use it when the period starts in a previous year, or to follow a material from year to year.
Opening the report
- From the ribbon: Materials > Movement Reports > Movement Reports > Material Movement over Several Years. The second Movement Reports button is the drop-down list that opens with its arrow.
The report needs:
- The Material Movement over Several Years permission in Users Management, on the Reports page.
- The materials and warehouses module in your licence.
- At least one file of a previous year linked to the current file. See Link previous years files.
The conditions window appears first. Set the conditions, then click Preview to show the report, or Print, or Export. The page Report parameter forms explains the buttons of this window, and the page Report viewer explains what follows.
Parameters
The conditions are listed in the order of the standard window layout: the main conditions, then the show and filter list, then the Report Sources list. You can switch the window to tabs in the report options; the conditions stay the same. 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, Warehouse, Cost Center, Customer and Category), Period (the date range), Options (Use Unit and Currency), a group with the show and filter list, and Sources. It does not have Search using: to change it, close the viewer and change it in the conditions window.
Main conditions
| Condition | Description and effect | Default and rules |
|---|---|---|
| Material | The material you follow. The movement of its combinations enters with it, if it has any. | Empty. Required: if you leave it empty and click Preview, a message asks for a valid value in it. |
| Warehouse | Counts the bill lines whose warehouse is this warehouse. | Empty, meaning all warehouses. |
| Cost Center | Counts the bill lines whose cost center is this center. It appears if your licence includes the cost centers feature. | Empty, meaning all centers. |
| Customer | Counts the bills of this customer only. | Empty, meaning all customers. |
| Category | Text that must match the category of the line exactly. | Empty, meaning all categories. |
| Date | A list of ready periods, and the From and To fields. The report reads the files whose year overlaps this period. | From the start of the financial period, or from the first day of the current month if you turned off the option "Default start date is the opening date", to today. |
| Currency | The currency that prices and values are converted to, at the exchange rate of the day of each bill. It must have the same identifier in the previous files. It appears if your licence allows more than one currency. | The default currency in the program options. |
| Use Unit | The unit of quantities and prices: First Unit, Second Unit, Third Unit or Default Unit. | Default Unit, that is the default unit of each material in its card. |
Search options
The material has its own card in each year file, so the program has to find it again in each file. The choice appears under the heading Search using.
| Condition | Description and effect | Default and rules |
|---|---|---|
| Search using | How the program finds the chosen material in each previous file: Internal Identifier looks for the same card. Name looks for a card with the same name as the current material. Code looks for a card with the same code as the current material. | Internal Identifier. After running, check the line of each year and its bills to be sure the card the program found is the one you mean. |
Display options
These options appear in one list under the headings Show and Filter.
| Condition | Description and effect | Default and rules |
|---|---|---|
| Posted Bills | The report includes the posted bills. | On. |
| Unposted Bills | The report includes the unposted bills. | Off. If you turn off both options, no movement shows. |
| By Notes | Turns on the Contain and Not contain fields. When you turn it off, the program clears both fields. | Off. |
| Contain | Keeps the bills whose notes contain this text. The notes of the line are not part of this condition. | Empty. Dimmed until you turn on By Notes. |
| Not contain | Drops the bills whose notes contain this text. | Empty. Dimmed until you turn on By Notes. |
Report sources
In this report the sources are tick boxes in the Report Sources list, not the grouped list of the other reports. Select All ticks all the boxes or clears them. The boxes are: Purchase, Sale, Purchase Return, Sale Return, Input, Output, Sales Orders, Purchase Orders and Transposition. All of them are on by default, and only the lines of the ticked types enter the report. If you clear them all, no movement shows.
What the program checks on preview
When you click Preview, Print or Export, the program checks three things before it reads the files. If one fails, it shows a message and the conditions window stays open:
- At least one file is linked and has a tick in the window "Connection Parameters of Previous Years Files".
- None of the selected files has a version older than the current file.
- The chosen currency has the same identifier in the files that overlap the period.
The bill type permissions in the previous files are worked out from the manager of each file, not from your permissions in the current file.
Report header
The header shows the material, the currency, the warehouse, the cost center, the customer, the category and the unit, then the period.
Report columns
The report has two tables. The first has a line for each year file that has movement for the material. Open a line with the arrow beside it to see the bills of that year in the second table. A file with no bill of the material in the period has no line. Add the columns that are hidden by default from the field list. See Report grid tools.
Years table
| Column | Meaning | Shown when | How it is calculated |
|---|---|---|---|
| Start Date | The first day this year covers in the report. | Always. | The first line starts at the From date of the report, the other lines at the first day of their file. |
| To Date | The last day this year covers. | Always. | The last day of the file; the last line ends at the To date of the report. |
| Previous Balance | The quantity of the material before this year. | Always. | First line: the sum of (quantity + gifts) of the bills of the material from the first day of its file to the day before the From date, positive for input and negative for output; zero if the period starts on the first day of the file. Other lines: the balance of the line before. |
| Inputs Quantity | The sum of the input quantities in the period. | Always. | The sum of (quantity + the gifts of lines whose quantity is not zero) of the input bills. |
| Outputs Quantity | The sum of the output quantities in the period. | Always. | The same for the output bills. |
| Activity Balance | The movement of the year. | Always. | Inputs - outputs. |
| Balance | The quantity at the end of the year. | Always. | Previous balance + activity balance. |
| Maximum Purchase Price and Minimum Purchase Price | The highest and lowest unit price in the input lines. | Always. | The unit price after the discount and addition by the bill type. |
| Average Purchase Price | The average purchase price of the year. | Always. | The sum of (quantity x price) of the purchase and input bills / the sum of their (quantity + gifts). |
| Sales Average Price | The average sale price of the year. | Always. | The sum of (quantity x price) of the sale bills / the sum of their (quantity + gifts). |
| Previous Average Price | The average cost of the unit before this year. | Always. | First line: the average cost up to the day before the From date. Other lines: the average after the last bill of the year before. |
| Unit | The unit of quantities and prices. | Always. | By Use Unit. |
| Combination, Barcode, Material Type, Specifications, Dimensions, Origin, Location, Manufacturer, Color, Model, Quality, Provenance and Value Added | The data of the material card as it is in that file. | You add them from the field list. | From the material card in the file. |
Bills table
It puts the input, output and balance columns in three groups: Inputs, Outputs and Balance. The lines of cost bills do not show in this table, nor does the opening input bill of the files after the first one, because the balance of the previous year is carried to the next year.
| Column | Meaning | Shown when | How it is calculated |
|---|---|---|---|
| Bill | The bill type and its number. | Always. | From the bill. |
| Bill Date | The date of the bill. | Always. | From the bill. |
| Quantity (Inputs) | The input quantity, with the gifts as 10 + 2. | Always. | The quantity in the chosen unit. |
| Price (Inputs) | The unit price after the discount and addition. | Always. | The value of the line minus the discount and/or plus the addition by the settings of the bill type, divided by the quantity. |
| Value (Inputs) | The value of the line. | Always. | The price of the line x the bill quantity in the chosen currency, before the discount and addition. |
| Quantity, Price and Value (Outputs) | As in input, for output lines. | Always. | As in input. |
| Quantity (Balance) | The running balance after this line. | Always. | The balance of the first line of this year + the sum of (quantity + gifts) of the lines of the year up to this one, positive for input and negative for output. The lines are ordered by date, then the order of their type, then the bill number. |
| Price (Balance) | The average cost of the unit after this line. | Always. | See How it is calculated. |
| Value (Balance) | The value of the balance. | Always. | The price x the quantity. |
| Bill Notes, Item Notes, Item Warehouse, Salesman, Distributor, Customer, Bill Item Cost Center, Length, Width, Height, Expiry Date, Production Date, Category and Branch | Data of the bill and the line. | You add them from the field list. | From the bill and the line in the year file. |
Output lines show in a special style. The right-click menu has no commands for this report.
How it is calculated
The program reads the material in each file whose year overlaps the period, starting with the oldest. In the first file the period starts at the From date, or at the first day of the file if the From date is before it.
- The balance of a year continues the one before: the Previous Balance of a year is the Balance that showed in the line before it.
- The running average cost in Price (Balance) goes on from year to year the same way as in Material Movement, using the value of the line before discount and addition: it starts from the previous balance and its average, then changes with the purchase and input bills that affect the cost price, and stays as it is in sale bills.
- The previous balance in the first file is calculated from the bills of the material alone: the warehouse, the cost center, the customer, the category, the posting state and the sources are not applied to it.
A worked example. A rice material with the bag as unit. The period is 01-01-2025 to 31-12-2026, the files 2025 and 2026 are linked, and there is no opening bill in the 2026 file. Bills of 2025: a purchase of 200 at 3.00 on 10-02-2025, a purchase of 50 at 3.50 on 15-03-2025, and a sale of 120 at 5.00 on 20-06-2025. Bills of 2026: a purchase of 100 at 4.00 on 12-02-2026 and a sale of 90 at 6.00 on 25-05-2026.
The years table:
| Start Date | To Date | Previous Balance | Inputs Quantity | Outputs Quantity | Activity Balance | Balance | Maximum Purchase Price | Minimum Purchase Price | Average Purchase Price | Sales Average Price | Previous Average Price |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 01-01-2025 | 31-12-2025 | 0 | 250 | 120 | 130 | 130 | 3.50 | 3.00 | 3.10 | 5.00 | 0.00 |
| 01-01-2026 | 31-12-2026 | 130 | 100 | 90 | 10 | 140 | 4.00 | 4.00 | 4.00 | 6.00 | 3.10 |
And the bills of the material, with the running average cost:
| Bill | In | Out | Balance | Price (Balance) | Value (Balance) |
|---|---|---|---|---|---|
| Purchase 10-02-2025 | 200 | 200 | 3.00 | 600.00 | |
| Purchase 15-03-2025 | 50 | 250 | 3.10 | 775.00 | |
| Sale 20-06-2025 | 120 | 130 | 3.10 | 403.00 | |
| Purchase 12-02-2026 | 100 | 230 | 3.49 | 803.00 | |
| Sale 25-05-2026 | 90 | 140 | 3.49 | 488.78 |
- The average purchase price of 2025 = (200 x 3.00 + 50 x 3.50) / 250 = 775 / 250 =
3.10. - The average cost after the purchase of 2026 = (130 x 3.10 + 100 x 4.00) / 230 = 803 / 230 =
3.4913, and it stays after the sale.
Messages
| Message or state | Why it appears | What to do |
|---|---|---|
| Please enter a valid value in 'Material' | You left Material empty. | Choose the material. |
| Must select one file at least in "Connection Parameters of Previous Years Files" window which can be requested from: Program Options - Link, then click Link Files button. | No file of a previous year is linked. | Link the previous years files and run the report again. |
| There is a file or more has different version from the current file version. Can't call for reports over several years before updating database to the current file version. | A linked file was made by an older version of the program. | Update the linked databases to the version of the current file. |
| Cannot open the report, the currency ID in the current file is different from the one in the previous files | The chosen currency does not have the same identifier in the previous files. | Choose another currency. |
| No line shows | You turned off Posted Bills and Unposted Bills together, or the material was not found in any file. | Turn on one of the two options, or change Search using. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.