Program Options: default values, link and holidays
This page describes four pages of Program Options: Default Value, Link, Materials and Holidays, and every window that opens from them. These pages set the financial period of the file, the lock dates, the original currency and price, the link to previous years files, and the holidays. For the steps, see Set default values for new documents, Link previous years files and Set weekend days and holidays.
Opening the pages
- Open the File tab, then click Program Options. You can also press
Shift+F3, unless the hotkey was changed in the file. - In the list of pages, click the page you want.
These pages open only with a company file open. Each page needs its own permission, and the program saves its choices as the table shows.
| Page | When it shows | The program saves the choice | Who can change it |
|---|---|---|---|
| Default Value | With a file open. | With the file, for all users, except the choices noted in the table of fields below. | The Default Value page permission. Fields can be edited by a user with full authority or with the Allow modifying the default values in program options permission. Only a user with full authority can sort the bills for cost calculation. |
| Link | With a file open. | With the file, for all users. | The Link page permission. The Return Options button needs Allow modifying the default values in program options. The sharing buttons need a user with full authority. |
| Materials | With a file open. | Per user, inside the file. | The Materials page permission. |
| Holidays | With a file open and the distribution feature or the manufacturing feature in your licence. | With the file, for all users. | The Holidays page permission. |
You give the page permissions in the Users Management window, on the Operations page, under Options. A user without the Modify Options permission does not get the Ok and Apply buttons, so cannot save. The header of the four pages shows the file icon, but the options of the Materials page are saved per user, as the table says.
Default Value
This page holds the values the file starts working with: the currency, the financial period, the lock dates and the price. At the bottom it has two buttons that open two windows.

If you are not a user with full authority and do not have the Allow modifying the default values in program options permission, the program disables all the fields and the Blocked Accounts button. It disables Sort Bills to Calculate Cost for everyone who is not a user with full authority.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Default Currency | The currency the program starts with in new accounts, in the entries it generates, and in new bill forms. | Yes | A list of the currencies of the file. Saved with the file. |
| Beginning Date | The start of the financial period. The program rejects any document dated before it with "Date is prior to period beginning date". | Yes | A date. The file sets it when it is created. The program does not accept a change if there are movements outside the new range. |
| Closing Date | The end of the financial period. The program rejects any document dated after it with "Date is after ending date". | Yes | A date. The program does not accept a change while other users are in the file. |
| Bill Division Factor | The program shows the bill number as two parts. | No | A whole number. 0 means no division. Example 100: bill 205 shows 2/5 and bill 200 shows 1/100. The field shows only if the warehouses feature is in your licence. The program asks you to confirm a change. In this version the change holds until the file is closed. After you open the file again, check the field. |
| Bills Lock Date | The program objects to a bill dated before this date, when you enter its date and when you save it. | No | A check box beside the field: tick it, then type the date. Original: off. The date is saved with the file. In this version the tick holds until the file is closed. After you open the file again, check the field. |
| Orders Lock Date | The same for orders. | No | A check box and a date. Original: off. The date is saved with the file. In this version the tick holds until the file is closed. After you open the file again, check the field. |
| Date (under Lock Date) | The program objects to any operation dated before it: entries, bills, vouchers and others. | No | A date. It is used unless you type a number in Before. |
| Before ... Day | Makes the lock date move with the current day. | No | A number of days. 0 means use Date. Example 3: the lock date is two days before today, so the program accepts today, yesterday and the day before yesterday. While it is set, Date shows the calculated date. If you go back to 0, type Date again. |
| Date (under Fix Audit Operations) | The program does not let you audit a document, or cancel its audit, if its date is before this date. | No | A date. |
| Maximum, Average and Last Purchase (under Default price) | The price the program treats as the default price of a material: Maximum is the maximum price recorded on the material card, Average is the average cost, and Last Purchase is the last purchase price. | Yes, one choice | Original: Maximum. Not shown in a file without the warehouses feature. Average and Last Purchase need the user to have the permission to see the cost price and the last price. |
| Button | What it does |
|---|---|
| Blocked Accounts | Opens the Accounts window. |
| Sort Bills to Calculate Cost | Opens the Sort Bills to Calculate Cost window. |
Effect of the lock dates
- Lock Date: if the date of an operation is before it, the program shows "Cannot continue! The date is before bills lock date." with the "Entered Date" and the lock date. For a user with full authority the program asks "Do you want to continue?", and the user chooses Yes or No, unless the option "Force lock date on full authority users" is on in the File Options page. Anyone else sees the message with "Can't continue".
- Bills Lock Date and Orders Lock Date: the program shows "The Date is before Bills Lock Date." or "The order date is before the orders fixing date". The same rule applies: a user with full authority is asked "Do you want to continue?" unless the option "Force lock date on full authority users" is on, and anyone else cannot continue. A bill then also passes the Lock Date check.
- Fix Audit Operations: the program shows "Date is prior to the operations' lock date, cannot continue" when you audit, or cancel the audit of, an entry, bill or commercial paper dated before this date.
- The program reads the lock date calculated from Before ... Day when it opens the file and when it saves.
- Lock operations per user, from Lock Operations by Users, comes on top of this. There the date of a user is today minus the number, without the extra day, so the same number gives a file date one day later, and it is the one that applies.
Accounts window
It opens from the Blocked Accounts button. You list accounts that users must not use on the lines they enter by hand. Its title is "Accounts" and its text is "This window enables you to select the accounts you want to prevent users from using them in entries".

The grid has one column, Account, with up to 1000 rows.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Account | A blocked account. | No | Type part of the code or name and press Enter. A search window opens where you can select several accounts, and they fill the next rows. The program does not add an account that is already in the grid. The account shows with its code and name. |
| Button | What it does |
|---|---|
| OK | Saves the list in the file: it deletes the old list and writes the non-empty rows in order. It saves at once and does not wait for Ok in Program Options. If it cannot write, it shows no message, so open the window again and check the list. |
| Close | Closes the window without saving. |
The row menu of a row that holds an account shows Account Card. Copy, cut, paste and insert are not in the menu. The grid menus are in grid menus.
Effect of the list:
- In journal entries and in receipt and payment vouchers, a blocked account does not show in the search list for a user without the Allow using blocked accounts permission. A user with the permission sees the accounts, and when he picks a blocked one the program shows "Please note that the account [*] is one of the blocked accounts" with the account name in place of the star.
- When a user without the permission saves a posted entry that holds a blocked account on a line that no bill generated, the program shows "The entry (voucher) contains blocked accounts, cannot continue" and does not save the entry. For a user with the permission the entry goes through.
- Lines that bills generate are not affected by the list.
Sort Bills to Calculate Cost window
It opens from the Sort Bills to Calculate Cost button, for a user with full authority. Its text is "The program depends on the order below to compute the materials cost when there are movements on same date". In other words, the order decides which movement is calculated first when a material has two movements on the same day.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Form list | The basic bill forms in the current order: Cost Card, Opening Inventory, Purchase Order, Purchases, Purchases Return, Input Invoice, Manufactured Materials Input, Assembly Input, Disassembly Input, Transposition Form, Sales Order, Sales, Sales Return, Output Invoice, Raw Materials Output, Assembly Output, Disassembly Output. | Yes | The program opens the list in the saved order, or in the original order if none is saved. |
| Sort bills to affect cost price first | When it is on, the forms that affect the cost price come before the forms that do not, when this order is asked for. | No | Original: on. Saved with the file. |
| Button | What it does |
|---|---|
| Up arrow and down arrow | Move the selected form in the list. |
| Restore Default | Restores the original order and turns the check box on. |
| Ok | Saves the order and the check box at once and closes the window. |
| Close | Closes the window without saving. |
Page messages
| Message | Why it appears | What to do |
|---|---|---|
| Cannot modify the opening or closing date, there are movements out of the specified range | You clicked Ok or Apply and the file has movements outside the new range. The program restores the two old dates. | Choose a range that holds every movement, or move the movements. |
| Changing the Division Factor of bills number might result in lack of clarity when retrieving numbers of old bills. Are you sure you want to change the division factor of bills numbers? | You changed Bill Division Factor. | Click Yes if you are sure, or No to go back. |
| Cannot modify beginning date or closing date to cancel a period used in one or more production line | The new dates cancel a period that a production line uses. | Keep the range around the periods of the production lines. |
| Database is Opened By Users : | You changed Closing Date and other users are in the file. The program lists their names and adds "Please check that all users logged out then try again." | Ask them to leave the file, then save. |
| Operation fixing date cannot be modified to a date prior to the latest closed tax file | Your file has tax periods and the lock Date is not after the end of the last closed period, even if you did not change it. The program puts the day after the last closed period in the field. | Choose a date after the last closed tax return. |
| Cannot change the opening date, so it exceeds carried forward period | The file was carried forward, and the new date is on or before the end of a carried-forward tax period. | Choose a date after the end of that period. |
| Cannot change the Opening Date. Cannot exceed Start or End Dates of overlapped period | The new date cuts a tax period. | Choose a date that cuts no period. |
| Cannot change the opening date, as the registry date is before opening date | The subscription to the tax system is before the new date, or the current beginning date is already after the subscription date (the date cannot be changed then). | Choose a date that does not pass the subscription date. |
| This file is related to Tax System. Cannot change the closing date so it exceeds the latest tax period. | The new date is outside the last tax period. | Choose a date inside the last period. |
| Cannot modify the opening or closing date to cancel one or more tax period | The new dates cancel a tax period. | Keep the range around the tax periods. |
The last six tax messages show only if the Gulf tax system is enabled in the file and the file has tax periods.
Link
This page has three groups: previous years files, human resources and settings to share. The program saves it with the file.

Previous Years Files
| Button | What it does |
|---|---|
| Link Files | Opens the Connection Parameters of Previous Years Files window. |
| Return Options | Opens the Return Options window. It is disabled for a user without Allow modifying the default values in program options. |
Human Resources
This group connects the file to the database of alameen Human Resources. The program uses the connection when you open the windows for payment and receipt orders imported from payroll, and when you choose departments.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Connect alameen Human Resources Database | Turns the connection on. | No | Original: off. If it is on and the file has asset possession records for employees from the human resources database, the program disables the check box, the button and the field, so you cannot turn the connection off. |
| Connection Parameters | Shows the server name and the database name as server;database. | No | Read only. Empty until you set the connection. |
| Setup | Opens the connection window where you choose the server, the sign-in mode and the database. It is disabled unless the connection is on. | No | After Ok the program checks that the database is a human resources database, then saves and turns on the connection. |
The connection window is described in Sending and connection.
When you click Ok or Apply in Program Options:
- If the connection is off, the program saves that.
- If it is on and the connection has no server or no database, or the human resources database has no departments, the program shows "No special data has been specified in payroll program or the specified data has no identified sections" and does not save the options.
The same message shows when you click Ok in the Setup window and the chosen database is not a human resources database, and the program saves nothing. If it is one, the program saves the connection and turns it on at once, without waiting for Ok in Program Options.
Settings to Share
Three buttons open the settings for sending by e-mail, WhatsApp and SMS. The button opens only for a user with full authority. After the window closes, the program refreshes the line beside the button.
| Button | What it opens | The line beside it |
|---|---|---|
| The e-mail page of the sharing settings window. | A summary of the saved setup, or "The setup is not completed" in red. | |
| The WhatsApp page. | The same. | |
| SMS | The SMS page. | The same. |
The sharing settings window is described in Sending and connection.
Connection Parameters of Previous Years Files window
It opens from the Link Files button. Its title is "Connection Parameters of Previous Years Files". It shows the files linked to the current file, and you add files from the same database server. The reports Ledger over Several Years and the customer statement over several years use these files, and so does Return from Bill for a previous year. The steps are in Link previous years files.

The grid has six columns. It shows a row for each linked file and an empty row at the end to add a file. The available files are sorted by start date.
| Column | What it shows | Can be edited |
|---|---|---|
| File Name | The file name as the program recorded it in its database. | Yes: a drop-down box of the files that are not linked. |
| Database | The database name. | Yes: a drop-down box of the databases that are not linked. |
| Opening Date | The start of the period of the file. | No |
| Closing Date | The end of the period of the file. | No |
| Version No | The version of the program that made the file. | No |
| Returned | Whether the file is used in Return from Bill: Yes or No. | Yes, in linked rows. Original No. |
The program picks the candidates from the alameen files on the same server that have a recorded version number, are online, and are not the current file. Choosing a file in either box fills the rest of the row. If a file has an older version than the current file, the program shows its row in a different colour.
Conditions on a linked file, checked when you choose it:
- Its period is before the period of the current file, or the program shows "Cannot add database that has period later to the current database period".
- It does not overlap the period of the current file, or the program shows "Cannot add database that has overlapping periods with the current database".
- It does not overlap the period of a file already linked, or the program shows "Cannot add database that has overlapping periods with database previously defined" followed by the file name in brackets.
- Its version is not older than that of the current file, or the program shows "This database cannot be added,you need to update the current version : " with the current version number.
When the program rejects a file it deletes the row.
The text at the bottom says: "The user who has the authority on report over years can display all previous years data regardless of his privilege on the current file".
| Button | What it does |
|---|---|
| Ok | Checks that the linked periods do not overlap, then saves the rows in the file at once, replacing the old rows. If the grid is empty the program does not change the links saved before. If it cannot write the links it shows no message, so open the window again and check the rows. |
| Close | Closes the window without saving. |
The right-click menus of a row and of the corner of the grid are in grid menus.
If a linked file has an older version, the program shows in red at the top of the window: "There is a file or more has different copy from the current file copy" and "Cannot call for reports over several years before updating database to the current file copy".
If the periods overlap when you click Ok, the program shows "Cannot define databases with overlapped periods" and keeps the window open.
When you create the file of the new year by carrying the balances forward, the program links the old year to the new one by itself. It marks the old year as used in returns and makes it the default year there, and adds the files that were linked to the old one if their periods do not overlap the new one.
Return Options window
It opens from the Return Options button. It sets what the program allows in the Return from Bill window. It shows "Domain: File": the program saves it with the file, for all users.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Default Year | The file the Return from Bill window starts with when you choose to return from a previous year. | No | A drop-down box of the linked files marked Returned = Yes. Original: empty. |
| Allow sales return at a set time | Prevents returning a sales bill older than the number of days you set. | No | Original: off. |
| Before ... Day | The number of days. | Yes, if the restriction is on | A whole number above zero. Disabled unless the restriction is on. Example 30: bills thirty days old or less are accepted. |
| Allow sales return from another branch | Allows returning a sales bill that was made in another branch. | No | Shows only if the branches system is on. Original: off. When you tick it the program shows "Please give the users a permission of viewing the sales bills forms used in all branches to allow the user to be able to perform a return from them". It works only for a user with the Allow returning from another branch in Returns from Invoice window permission. |
| Button | What it does |
|---|---|
| Ok | Checks the days, then saves the options in the file at once and closes the window. |
| Close | Closes the window without saving. (In the Arabic window the button reads Cancel.) |
Effect of the time restriction: in the Return from Bill window, when you make a return for a sales bill whose age in days is more than the number set, the program shows "Cannot return! The sales bill dated "###" is out of allowable time to be returned", with the bill date in place of the marks, and it resets the original bill number.
Messages:
| Message | Why it appears | What to do |
|---|---|---|
| Time period must be more than zero | You turned the restriction on and the days are zero. | Type a number above zero. |
| Please give the users a permission of viewing the sales bills forms used in all branches to allow the user to be able to perform a return from them | You ticked Allow sales return from another branch. | Click Ok, then give the permission to the users. |
Materials
This page sets how the historical cost of materials shows and the shape of the materials tree. It is saved per user inside the file.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Show materials historical cost in information window | Adds to the material information window in a bill a table titled "Historical cost": "From last ... Day" and the value in the default currency. The program may also add a line "Historical cost for the entire period". | No | Original: off. The table shows only for stock materials, and for a user with the permission to see the cost price. |
| Before ... Day | The number of days the cost is calculated from. | Yes, if the previous option is on | A number. 0 calculates the historical cost for the same day. Original: 0. Disabled unless the option is on. |
| Display Items and Groups in the Same Section | The materials tree shows the materials and the groups together in one tree. This mode does not let you arrange the tree by hand. | No | Original: off. The tree reads the option when it is created. |
If you turn on the first option and leave the days empty, the program shows "Specify the number of days to calculate the historical cost." and does not save the page.
Holidays
This page records the holidays in the file. The calendar on the desktop shows them, and the distribution module reads them when it sets the route of the day and counts working days in target reports. The page shows only if the distribution feature or the manufacturing feature is in your licence. The steps are in Set weekend days and holidays.

| Column | What it shows | Can be edited |
|---|---|---|
| Date | The date of the holiday. | Yes. Type the date. The program sorts the rows when it inserts days. |
| Day | The name of the weekday. | No. The program fills it from the date. |
| Holiday Name | The name of the holiday, for example Eid. | Yes. Free text. |
The grid holds 1000 rows. Delete rows and cells with the usual grid menu. If two or more rows are above the current row, press Ctrl+F4 in any cell of the row and the program continues the date by the gap between the two rows above.
| Button | What it does |
|---|---|
| Insert Weekend Days | Opens the Insert Weekend Days window. |
The program saves the grid on Ok or Apply: it deletes the saved days and writes every row that has a date.
Insert Weekend Days window
It opens from the Insert Weekend Days button. It adds to the grid every occurrence of one weekday between two dates.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Weekend | The weekday the program inserts. | Yes | A drop-down box: Sat, Sun, Mon, Tue, Wed, Thr, Fri. Original: Sat. |
| Opening Date | The start of the range. | Yes | A date. It starts with the opening date of the file. It cannot be before it. |
| Closing Date | The end of the range. | Yes | A date. It starts with the closing date of the file. It cannot be after it. |
| Weekend Days | The number of times the weekday falls between the two dates. | No | Read only. The program calculates it when you change the day or a date. |
| Holiday Name | The name the program writes in Holiday Name for each day. | No | Original: "Weekend". |
The text in the middle says "When you click "Ok" button, the program will insert ... days of holiday" and then "Knowing that the day previously inserted will not be entered".
| Button | What it does |
|---|---|
| OK | Checks the two dates, adds the days to the grid and closes the window. It does not save them in the file before Ok in Program Options. |
| Close | Closes the window without adding. |
Messages:
| Message | Why it appears | What to do |
|---|---|---|
| End Date must be later to Start Date | Closing Date is before Opening Date. | Correct the two dates. |
| Start Date is prior to Opening Date | Opening Date in the window is before the start of the period of the file. | Type a date inside the period of the file. |
| End Date is later to Closing Date | Closing Date in the window is after the end of the period of the file. | Type a date inside the period of the file. |
| There is one holiday or more already exists, it will not be inserted again, do you want to continue? | Some of the days are already in the grid. The title of the message is "There are holidays already exist". | Click Yes to insert the remaining days, or No to change. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.