Lock Operations by Users
This window sets the operations lock date of each user. A user cannot add, modify or delete an operation dated before his own lock date. The window lists the users with their groups and dates, and opens three child windows: for a user, for a group and for all users. It also previews and prints the list of users and dates. For the steps, see Lock operations up to a date.
Opening the window
Click Management > Control > Lock Operations by Users. The ribbon tip says "Set a lock date to prevent changes to program operations at the user or group level."
What controls it:
- Permission: you need the Lock Operations by Users permission on the Actions And Reports tab of Users Management. See Actions And Reports.
- Licence: the command shows in the ribbon if the warehouses feature is in your licence.
- Option: the option Use the feature of locking operations by users must be on, on the Save page of Program Options. If it is off, the program shows the first message in Messages and the window does not open.
Only a user with full authority can change this option. It is available only while Prevent linking a user with more than one group of permissions is on and Activate log file is on. When the program opens a file it treats the option as off if a user in the file is linked to more than one group.
Main window
The window shows one row for each ordinary user in the file (groups are not listed). The changes you make in the child windows stay in this window and are written to the file only when you click Save.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Search | Limits the list to the users whose name or group name contains the text. | No | Works at every change of the text and ignores letter case. An empty field shows all rows. |
| Sort By | The order of the list. | No | Number, User Name, Group Name or Lock Date, all ascending. The first is the original. Changing the sort marks the window as changed (see Close below). |
| File lock date | The general lock date of the file, for all operations and all users. | No | Read only. It changes after For all users (see For all users). |
When you type in Search, the program enables For a user and For a group if there is a match and disables them if there is none. Without a search they stay disabled until you click a row of the list.
| Button | What it does |
|---|---|
| For a user | Opens the user window for the selected row. |
| For a group | Opens the group window for the group of the selected row. If the user belongs to no group the program shows the second message in Messages, then opens the user window instead. |
| For all users | Opens the all users window. It is enabled for a user with full authority only. |
Preview (Alt+P) | Opens the report in the report viewer. |
Print (Alt+R) | Prints the same report. |
| Save | Writes the changes to the file. The details follow the table. |
| Close | Closes the window. After any change the button becomes Cancel, and if the warning On cancel is on the program asks before closing (see Messages). |
When you click Save the program does the following, in this order:
- If you changed the file date with For all users, the program writes the lock date and the number of days to the file options at once, before the next question.
- If the warning On save is on, it asks "Are you sure you want to complete saving?" with Save and Cancel. If you cancel, the program does not write the users, but the file date stays written from step 1.
- For each user whose date or number of days changed, it writes the new date and the number of days to the user's record. A user who did not change is not touched.
Save does not close the window. After it the window counts as unchanged, so Cancel goes back to Close.
List columns
| Column | What it holds |
|---|---|
| Number | The user number. |
| User Name | The login name. |
| Group Name | The group of the user. Empty if the user belongs to no group. |
| Lock Date | The lock date that you will save, that is, the date after your changes in the child windows. A user with no date set shows the file lock date. If the number of days is more than zero, the date is today minus that number. |
| Days before | The number of days. 0 means a fixed date. |
Right-click menu
Right-click a row. The menu has the usual items of the older lists (see The older list) and three items that this window adds:
| Item | What it does |
|---|---|
| Display User Card | Opens Users Management on the selected user. The program checks no permission when you open it from here. |
| Display Lock the operations for a user | Same as the For a user button. |
| Display Lock the operations for a group | Same as the For a group button. |
Lock Operations for a User window
It opens with For a user. You change the date of one user in the list, and nothing is written to the file.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| User | The selected user. | — | Read only. |
| Current Date | The date of the user before the change. | — | Read only. It is the saved date of the user, or the file date if no date was set, and today minus the number of days if the number is more than zero. |
| New Date | The new lock date. | Yes | A date. Example: 1-2-2026 blocks everything before that day. It starts with the date shown in the list. |
| Before ... Day | Makes the date move with the day. | No | A whole number. If it is more than zero, the program uses "today minus this number" and ignores New Date. Example: 3 puts the date three days before today. 0 means use New Date. |
| Button | What it does |
|---|---|
| Ok | Checks the date (see Messages), puts it on the row of the user in the list and closes the window. It writes nothing to the file. |
| Cancel | Closes the window with no change. |
Lock Operations for a Group window
It opens with For a group. Its title is "Lock Operations for a Group" followed by the group name. You edit the dates of the users of the group together. The group itself keeps no date: the date is written to the record of each user when you click Save in the main window. A user who joins the group later does not get its date.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Search | Limits the grid to the users whose name contains the text. | No | Works at every change. |
| New lock date | The date that the program applies to all users of the group. | No | The window starts with the file lock date. When you change the field, the program puts the date on every user of the group at once, and the cells New date and Days before of the grid become empty. |
| Before ... Day | The number of days. | No | Starts with the number of days of the file. A change applies to the whole group like the date; if it is more than zero the date is today minus this number. |
The grid has one row for each user of the group:
| Column | What it holds |
|---|---|
| Number | The user number. Read only. |
| User Name | The user name. Read only. |
| Current Date | The date of the user before the change. Read only. |
| New date | The new date of the user. You edit it for one user. The cell stays empty if the date and the days of the user equal those of the top fields. |
| Days before | The number of days of the user. You edit it for one user. |
When you edit one cell the program updates the other: if you type New date, it works out the date with the days of the row; if you type the days, it shows the resulting date. If you type a Days before equal to the number of the top field, the program clears both cells, so the user takes the top date. If you type a New date equal to the top date it clears both cells; otherwise it keeps the date and puts the row's number in Days before (0 if the cell was empty). An empty cell means "same as the top field".
| Button | What it does |
|---|---|
| Ok | Checks the dates of the group, puts them in the main list and closes the window. If nothing changed, it asks: "There are no changes. Do you want to continue?" |
| Cancel | Closes the window. |
Grid menu
Right-click the corner cell of the grid. The menu keeps Find..., Find Next, Table Properties... and Save Settings, and the program removes Copy, Paste, Cut, Clear and Insert. The row menu loses all copy, paste, cut, delete and insert commands. The grid does not accept deleting a row. See Grid menus.
For All Users window
It opens with For all users. Its title is "For All Users". It sets the lock date of the file and of all users together.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| New lock Date | The date that becomes the date of the file and of every user. | Yes | A date. It starts with the file lock date. |
| Before ... Day | The number of days. | No | Starts with the number of days of the file. If it is more than zero the date becomes today minus this number. |
| Button | What it does |
|---|---|
| Ok | Puts the date and the number of days on every user in the list, replacing the dates you set for a user or a group, and shows the date in File lock date. If the date or the number differs from the saved one, it asks first: "Operations lock date for the file and all users will be changed depending on the date you entered. Do you want to continue?" with Yes and No. If the file uses a number of days, the question can appear even without a change. The program does not check this date against the period of the file, and writes nothing before Save. |
| Cancel | Closes the window with no change. |
When you click Save in the main window, the program writes this date as the lock date of the file, the same date that the Default Value page sets (see Effect of the lock dates), and writes it to the record of every user. After that each user holds an independent copy of the date. A later change of the file date in Default Value does not change these copies when the number of days is 0.
Preview and print
Preview opens the report Lock Operations by Users in the report viewer. It shows what you see in the list, in its order, after the search and before saving. Print sends the same report to the printer.
| Header item | What it holds |
|---|---|
| File lock date | The saved file lock date. A date you set with For all users shows here only after Save. |
| Sort by | The name of the sort column chosen in Sort By: Number, User Name, Group Name or Lock Date. |
| Column | What it holds |
|---|---|
| Number | The user number. |
| User Name | The user name. |
| Group Name | The group name. |
| Lock Date | The date that the list shows (Lock Date). The report does not show the number of days. |
The viewer works as described in the viewer.
What a lock date blocks
The program reads the date of the user when it checks the date of an operation that you enter, modify or delete. The check works only while the option Use the feature of locking operations by users is on.
- Date of the user: if the number of days in the record is more than zero it is today minus that number. Otherwise it is the saved date. If that is
1-1-1980(never set), the program uses the file lock date. - Number of days: the program counts the days in two ways. The date of a user is today minus the number, but the file lock date is today minus the number plus one day, calculated when the file opens. So with the same number for the file and the users, the file date is one day later, and it is the one that applies.
- The check: the program refuses an operation dated before the date of the user. An operation dated on the lock date is accepted. The program checks the file date first, so the later of the two dates applies.
- Who is asked and who is stopped: a user with full authority is asked "Do you want to continue?" and 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" and cannot go on.
What the program checks in each kind of window:
| Window | Checks |
|---|---|
| Invoice (all its forms) | Add: the invoice date you type. Modify: the saved date and the new invoice date. Delete: the saved invoice date. Post Bill and Generate Entry: the invoice date. |
| Entry | Add: the entry date and the date of each line that has its own date. Modify: the saved date, then the new date and the line dates. Delete and Post: the saved date of the entry. |
| Receipt and payment voucher | Add: the voucher date and the date of each line that has its own date. Modify: the saved date, then the new date and the line dates. Delete: the saved date of the voucher. |
| Commercial paper | Save: the date of the paper; on modify the saved date is checked against the file date only. Generate Entry: the date of the paper. Actions on the paper: the date of the action. Delete and cancelling an action check the file lock date only. |
| Posting an order to an invoice | The date of the invoice that results. |
| Point of sale | Pay: the order date. |
| Restaurants | Pay and Return: today's date. |
The program checks the same date in other windows that save dated operations, among them manufacturing, transfers, cash activities, shipping, job orders, maintenance, credit and debit notes and posting a day in profit centers.
This window does not change existing operations. It acts only on what you enter or change after saving.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| You cannot open this window due to not activating the Lock Operations by Users feature (Tools - Options - Save) Being known that users mustn't be connected to more than one group. And kindly be advised that this option must be activated | You clicked the command in the ribbon and the option is off. | Turn the option on in Save > Authorities, with its conditions, then open the window. |
| This user doesn't belong to any group | You clicked For a group, or chose Display Lock the operations for a group, for a user with no group. The user window opens after it. | Edit the date in the user window, or add the user to a group. |
| There is a date for locking the operations prior to the opening date | The resulting date is before the start of the file period. The message stops you. | Type a date inside the file period. |
| There is a lock date later to the closing date | The resulting date is after the end of the file period. The message stops you. | Type a date inside the file period. |
| The entered date is prior to the date of locking the file's operations, then "Do you want to continue?", with "Entered Date" and "Current Date" (the file date) under it | In the user or group window: the date is before the file lock date. It has no use, because the program checks the file date first. | Click Yes to continue or No to go back. |
| The date is before today's date, then "Do you want to continue?", with "Entered Date" and "Current Date" under it | In the user window: the new date is before the current date of the user, so older dates open to him. | Click Yes to continue or No to go back. |
| Operations lock date for the file and all users will be changed depending on the date you entered. Do you want to continue? | In the all users window: the date or the number differs from the file. | Yes to continue. |
| There are no changes. Do you want to continue? | In the group window: you clicked Ok and nothing changed. | Yes to close the window. |
| Are you sure you want to complete saving? | You clicked Save and the warning On save is on. | Save to continue or Cancel to go back. |
| Do you want to ignore the inputs and close the window? | You closed the main window after a change (even a change of sort) and the warning On cancel is on. | Close Window to drop the changes, or Cancel to go back and click Save. |
The messages that refuse an operation (a date before the date of the user or of the file) are in Messages and errors.
Related
This page applies to alameen ERP 10, version 10.1.79.764.