Skip to main content

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​

ConditionDescription and effectDefault and rules
MaterialThe 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.
WarehouseCounts the bill lines whose warehouse is this warehouse.Empty, meaning all warehouses.
Cost CenterCounts the bill lines whose cost center is this center. It appears if your licence includes the cost centers feature.Empty, meaning all centers.
CustomerCounts the bills of this customer only.Empty, meaning all customers.
CategoryText that must match the category of the line exactly.Empty, meaning all categories.
DateA 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.
CurrencyThe 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 UnitThe 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.

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.

ConditionDescription and effectDefault and rules
Search usingHow 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.

ConditionDescription and effectDefault and rules
Posted BillsThe report includes the posted bills.On.
Unposted BillsThe report includes the unposted bills.Off. If you turn off both options, no movement shows.
By NotesTurns on the Contain and Not contain fields. When you turn it off, the program clears both fields.Off.
ContainKeeps 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 containDrops 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:

  1. At least one file is linked and has a tick in the window "Connection Parameters of Previous Years Files".
  2. None of the selected files has a version older than the current file.
  3. 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.

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​

ColumnMeaningShown whenHow it is calculated
Start DateThe 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 DateThe last day this year covers.Always.The last day of the file; the last line ends at the To date of the report.
Previous BalanceThe 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 QuantityThe 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 QuantityThe sum of the output quantities in the period.Always.The same for the output bills.
Activity BalanceThe movement of the year.Always.Inputs - outputs.
BalanceThe quantity at the end of the year.Always.Previous balance + activity balance.
Maximum Purchase Price and Minimum Purchase PriceThe highest and lowest unit price in the input lines.Always.The unit price after the discount and addition by the bill type.
Average Purchase PriceThe 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 PriceThe 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 PriceThe 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.
UnitThe unit of quantities and prices.Always.By Use Unit.
Combination, Barcode, Material Type, Specifications, Dimensions, Origin, Location, Manufacturer, Color, Model, Quality, Provenance and Value AddedThe 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.

ColumnMeaningShown whenHow it is calculated
BillThe bill type and its number.Always.From the bill.
Bill DateThe 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 BranchData 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 DateTo DatePrevious BalanceInputs QuantityOutputs QuantityActivity BalanceBalanceMaximum Purchase PriceMinimum Purchase PriceAverage Purchase PriceSales Average PricePrevious Average Price
01-01-202531-12-202502501201301303.503.003.105.000.00
01-01-202631-12-202613010090101404.004.004.006.003.10

And the bills of the material, with the running average cost:

BillInOutBalancePrice (Balance)Value (Balance)
Purchase 10-02-20252002003.00600.00
Purchase 15-03-2025502503.10775.00
Sale 20-06-20251201303.10403.00
Purchase 12-02-20261002303.49803.00
Sale 25-05-2026901403.49488.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 stateWhy it appearsWhat 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 filesThe chosen currency does not have the same identifier in the previous files.Choose another currency.
No line showsYou 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.

This page applies to alameen ERP 10, version 10.1.79.764.