Skip to main content

Audit materials prices of last year file

The Audit materials prices of last year file wizard brings the last purchase price and the customer last sale from the previous year file linked to this file, and then recalculates the prices from the movement of the current file. It also transfers the rows of the currencies exchange rates table that belong to the period of that file. It runs from the Files Maintenance window. The practical steps are in Audit materials prices of last year files.

Opening the window​

  • Click File > Tools > Files Maintenance, select Audit materials prices of last year file, then click Run. This is the name of the operation in the list. The steps and the warning box "This operation is dangerous …" are in Run files maintenance. The box shows for every operation whose severity is above low; this operation has the highest severity.
  • From the arrow beside Files Maintenance on the Tools page if you added the operation to the favorites (Favorites), from a Maintenance tile on the desktop (Add a tile to the desktop), and from Quick Launch search.
  • The operation is always in the list when your edition includes accounting, even if the file works in multi-file mode (Available operations).
  • You need the Files Maintenance permission to open the window. Users Management > Operations also lists a permission named Audit materials prices of last year file. The program checks it for the desktop tile only, and does not check it when you start the operation from the window from the favorites menu or from Quick Launch search.
  • The previous year file must be linked to this file (Link previous years files).
  • The list shows this description under the name: "This maintenance recalculates materials prices from previous year and transfer them again to current file, then audits prices according to current file's movements."
  • Unlike the wizards that audit accounts and materials balances, this wizard does not check whether other users are in the file when you click Start.

Wizard pages​

The wizard has two or three pages in this order. How the wizard buttons work is in How the maintenance wizards work.

PageWhen it appears
Make a BackupAlways first.
The hard disk or removable disk backupIf you choose one of them on the first page.
Audit optionsLast. It has the Start button.

The backup page​

The Make a Backup page is the same in many maintenance wizards. Its fields and the hard disk and removable disk pages are in Make a Backup. If your key is a cloud subscription, the cloud page replaces it (Backup in the cloud). You can choose not to make a backup, and the program moves to the options page with no question.

The audit options page​

The title bar says "Audit materials prices of last year file", and so does the header. At the top of the page the text says: "This maintenance recalculates materials prices from previous year and transfer them again to current file, then audits prices according to current file's movements." The options return to their default values each time the page opens.

FieldDescriptionRequiredValues and rules
Customer Last SaleTransfers the customer prices from the previous year file and rebuilds the table of last prices. Details.At least one of the twoTicked by default.
Last PurchaseTransfers the last purchase price of the materials from the previous year file and recalculates it. Details.At least one of the twoTicked by default.

Both options are in the Audit Options group.

ButtonWhat it does
StartChecks the two options and the link of the previous year file (Checks on Start), then starts as in What happens on Start. The buttons are disabled while it works.
BackReturns to the backup page.
NextDisabled, because this is the last page.
CancelBefore Start: asks "Are you sure you want to exit and cancel the maintenance operation?". Yes closes the wizard with no change. It is disabled while it works.

The page has a progress bar that stays hidden until you click Start, and a text line above it that stays empty. The bar moves during the steps, and no status text appears.

Checks on Start​

The program checks in this order and stops at the first check that fails, leaving you on the page:

  1. If neither option is ticked, the message "Must set one option at least of Audit Options" appears.
  2. If the program finds no linked file in the file other than the current one, the message "Please link previous year file from: Options - Default Values - Link Files" appears. The program does not check the period of the linked file here.

What happens on Start​

  1. The program finds the previous year file (which file?). If it finds no suitable file, it transfers nothing and recalculates nothing in this file, and the success message still appears.
  2. If Customer Last Sale is ticked, it runs its step.
  3. If Last Purchase is ticked, it runs its step.
  4. If either is ticked, it transfers the rows of the currencies exchange rates table.
  5. It adds a line to the log, ends with the message "Operation successfully completed" and closes the wizard.

The steps do not run in one transaction. If a step fails, the results of the steps before it stay, the message "An error was encountered while performing the operation." appears and the wizard stays open.

Which file is the previous year file?​

Among the files linked to this file (Link previous years files), the program picks the files whose period ends in a year that is not later than the year of the Opening Date of this file, and takes the one with the latest start of period. If that file does not exist on the server, the program transfers nothing and does not try an older file.

Customer Last Sale​

  1. In the previous year file itself, the program rebuilds the table of last prices, then copies from it to this file the prices of the customers and materials that also exist in this file.
  2. It empties the table of last prices in the current file and rebuilds it from the bills of the current file, which are the bills, posted and unposted, of forms that Affects Customer Price (Invoice forms settings).
  3. It then adds the transferred prices for each customer, material and unit that has no row.

The program keeps the transferred prices, so Audit Materials Balances uses them again when it rebuilds the table.

Last Purchase​

  1. The program copies to this file, from the material cards of the previous year file, the last purchase price of each material whose price is not zero, with its date, its currency and the rate of that currency. It does not transfer a price for a material that has no card here.
  2. It recalculates the last purchase price of each material from the posted bills of the current file whose forms Affects Last Purchase Price, and does not set to zero the price of a material that has no items.
  3. A material that has no such item in this file takes the transferred price if the currency of the transferred price is the currency of the material in this file.

Rows of the currencies exchange rates table​

The program transfers from the currencies exchange rates table of the previous year file the rows dated between the start and the end of the period of that file, as recorded in the linked files, and does not transfer a row that already exists in this file.

What the program records​

If the option Activate log file is on, the program adds a line with no note to the Log File after a successful run. It does not add it when the run fails. This wizard writes no messages in the details of the Maintenances Log.

Messages​

MessageWhen it appearsWhat to do
Must set one option at least of Audit OptionsYou clicked Start with neither option ticked.Tick at least one option.
Please link previous year file from: Options - Default Values - Link FilesThere is no linked file other than the current one.Link the previous year file, then run again (Link previous years files).
An error was encountered while performing the operation.The database refused a command. The wizard stays open, and the results of the previous steps stay.Check that the previous year file exists on the same server and is up to date, then try again. If the error repeats, contact support.
Operation successfully completedThe steps ended. It also appears when the program found no previous year file.Click OK.
Are you sure you want to exit and cancel the maintenance operation?You clicked Cancel.Yes closes the wizard, No continues.

This page applies to alameen ERP 10, version 10.1.79.764.