Insert Expiry Date in Output Bill
The Insert Expiry Date in Output Bill wizard puts expiry dates in the lines of output bills that have none, for the materials and warehouses you choose, from the quantities that were entered with their dates. This page explains the two pages of the wizard with their fields, buttons and messages. The steps are in Insert expiry dates in output bills, and how the program spreads the dates over the lines is in Insert expiry dates in output bills.
The operation edits saved output bill lines, may split a line into two, and cannot be undone after it ends. Take a backup before you start, and ask the other users to leave the file.
Opening the wizard
Click File > Tools > Files Maintenance, select Insert Expiry Date in Output Bill and click Run. The window and the warning frame are explained in Run files maintenance.
- The operation is in the list when your key includes accounting, the file does not work in multi-file mode and phase 2 of Saudi e-invoicing is off (Available maintenance operations).
- The Files Maintenance permission guards the maintenance window (Run files maintenance). The permission named after the operation under Users Management > Operations controls only whether its tile shows on the desktop. The program does not check it when you run the operation from the Files Maintenance window, from its favorites menu or from Quick Launch search.
- Only materials that have the Expiry Date option ticked in the material card are processed (Material card).
The description in the list
The Files Maintenance list shows the name of the operation with a description under it: "Through this operation, you will be able to enter Expiry Date for Output invoices".
The backup page
The first page of the wizard is Make a Backup. Its types and fields are in Make a backup. After the backup, or after you choose not to make one, the selection page appears. How the pages, their buttons and the cancel question work is in How the maintenance wizards work.
The Insert Expiry Date in Output Bill page (selection)
The page title is Insert Expiry Date in Output Bill. Its text says: "This maintenance inserts the materials expiry dates in output bills for specified materials and warehouses ."
Fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Material | Limits the operation to this material. | No | Empty when the page opens, which means all materials. How to search is in Lookup and search. |
| Group | Limits the operation to the materials of this group. | No | Empty when the page opens, which means all groups. |
| Warehouse | Limits the operation to this warehouse. | No | Empty when the page opens, which means all warehouses. If your key does not include the warehouse card feature the field is hidden, and the program takes the first warehouse of the file and limits the operation to it. |
| Materials Terms | A list of the saved conditions on materials, with the grid of the chosen condition and five small buttons under it. | No | Its first item is Without, which is the default. The list, the grid and the buttons are the same in other windows, and are explained in Materials terms. In this wizard the program does not send the chosen condition to the operation: the operation uses only Material, Group and Warehouse, whether you choose a condition or not. The program does not check the condition rows on Next either. The condition buttons still create, edit and delete saved conditions as in the other windows. |
The fields you fill are combined: a material takes part if it meets everything you chose.
Buttons
| Button | What it does |
|---|---|
| Next | Goes to the start page. It checks nothing on this page. |
| Back | Returns to the backup page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?" and then closes the wizard without changing any bill. |
| Help | Opens the help topic of the page, if there is one. |
The start page
Its title is Insert Expiry Date in Output Bill, and it is the last page of the wizard. Its text says: "Press "Start" to begin inserting Expiry Date in Output Bill". It has no fields. It has a line that shows the progress text and a progress bar that appears after Start.
Buttons
| Button | What it does |
|---|---|
| Start | Starts the operation. It asks for no confirmation. |
| Back | Returns to the selection page. The fields come back empty, because the program does not keep your choices for this return. |
| Next | Disabled: this is the last page. |
| Cancel | Before Start: asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard without a change. After Start: disabled, so the operation cannot be stopped. |
| Help | Opens the help topic of the page, if there is one. |
While it runs
After Start the buttons are disabled and the progress bar appears. The program checks that no other user is in the file, and then inserts in one database transaction: if it stops with an error, the file returns to its state. On success "Operation successfully completed" appears, the wizard closes and you are back in Files Maintenance. This message appears whether the operation changed anything or not, because the wizard never shows the message "No movement found in the specified period".
After a success, if the program option Activate log file is on, the program adds a log record with the note "Insert Expiry Date in Output Bill" (Log File). The Maintenances Log lists the output lines that took part: the type name, the bill number, the material name and the expiry date each line got.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Database is Opened By Users : … Please check that all users logged out then try again. | Another user is working on the file. The message lists their names. Then "An error was encountered while performing the operation." appears. | Ask them to leave, then click Start again. |
| Error In Stored Proc: … | The database refused the insert command. The message shows the command. Then "An error was encountered while performing the operation." appears. The file returns to its state. | Try again. If the error repeats, contact technical support and send the text of the message. |
| Operation successfully completed | The operation ended, even if it found nothing to change. | Close the message. |
| Are you sure you want to exit and cancel the maintenance operation? | You clicked Cancel before Start. | Yes to leave, No to continue. |
Related
- Insert expiry dates in output bills
- Insert expiry dates in output bills: how the program spreads the dates, with an example.
- Follow the expiry dates of materials
- Files maintenance operations
This page applies to alameen ERP 10, version 10.1.79.764.