Save and reuse report conditions
Some reports decide which customers, materials or bills enter their calculation with a set of conditions, such as "customers of the city of Riyadh of one customer type". You can save this set under a name in the report conditions window, then pick it by name in any report that shows the same field, instead of typing the conditions each time. The conditions window and its other fields are explained in Report parameter forms.
Saved conditions are not the same as saved options or a workspace. Saved options keep the values of all fields, for you alone. A workspace keeps the shape of a report. A set of conditions keeps the conditions of one type of data, and every report that shows this type shares it.
Before you begin
- Open a report that has a conditions field, such as the customer reports that have the Customers Terms group, or the reports that have Materials Terms. If the field does not appear, the report does not show it, or the customer conditions or material conditions feature is not enabled in your company licence.
- You need a permission for each action. You find them in Users Management > Operations, three for each type: add, modify and delete.
| Type | Permissions in Users Management |
|---|---|
| Customer conditions | Customers Terms - Add, Customers Terms - Modify and Customers Terms - Delete |
| Material conditions | Materials Terms - Add, Materials Terms - Modify and Materials Terms - Delete |
| Bill conditions | Bills Terms - Add, Bills Terms - Modify and Bills Terms - Delete |
| Entry conditions | Entey Terms - Add, Entry Terms - Modify and Entry Terms - Delete |
- The same permissions apply in any report that shows the type. Order conditions and packing list conditions have permissions of their own, and the program checks no permission for warehouse conditions or cost center conditions.
- The sets are saved in the company database and not under a user name. Everyone who opens a report that shows this type sees them, and everyone who has the modify permission can change them. Agree with your colleagues before you edit a set that they use.
Steps
Create a set of conditions and save it
- In the report conditions window, find the field, for example Customers Terms. If the conditions editor is collapsed, click the collapse arrow at the end of the toolbar to open it. In the tab layout the editor is always open.
- Click New. A window titled "New" opens with the prompt "Choose Name".
- Type a name, such as
Riyadh customers, then click Ok. The name is added to the list and becomes the selected one. The editor is empty. - Add a condition: in the editor, click the actions button, then Add Condition. Choose the field City and the operation Equals, and type the value
Riyadh. You can add more conditions, join them with And or Or, and nest groups. - Click Save. The program saves the conditions under the name you chose.
- Click Preview to run the report with these conditions.

Save becomes enabled when you change something in the editor. If you choose another name from the list before you save, you lose your unsaved changes.
Use a saved set
- Choose the name from the list next to the field title. The editor shows the conditions of the set.
- The value None means that the report applies no conditions of this type. The editor is disabled with it.
- Click Preview.
Edit a set
- Choose the set and edit its conditions in the editor.
- Click Save.
If you edit and then click Preview without Save, the report uses a temporary copy that has the name of the set followed by *. The program deletes it when you close the conditions window. The saved set does not change. Others may see this copy in their list while your window is open.
To edit many conditions in a bigger window, click Edit in Popup Window. A window opens, titled with the field name and then the name of the set, and you can maximize it. Click Ok to bring the changes back to the field, where they appear as not saved, then click Save. Cancel closes the window without any change.
Copy, rename and delete a set
- To copy the set: click the arrow of New, then Duplicate Current Item. A window opens with the current name. Change it to a name that no other set has, then click Ok. The copy holds the conditions that are in the editor now, including your unsaved changes.
- To change the name: click Rename. A window titled "Rename" opens with the prompt "Enter a new name:". The program does not accept a name that another set has.
- To delete: click Delete, then confirm the question "Are you sure you want to delete?" with the Delete button. The field goes back to None.
The buttons Rename, Delete, Edit in Popup Window and the Duplicate Current Item item are disabled when None is selected.
Avoid the single quotation mark (') in the name of the set and in its values, because it may prevent saving.
Result
The set appears in the list of this field in every report that shows this type of conditions, and all users share it. It does not affect the accounts of the company or stock. It is only a selection condition for reports.
What the conditions accept
The editor accepts the fields and operations below. The list of operations changes with the field type.
- Examples of the operations that are saved: for text, Equals, Does not equal, Contains, Does not contain, Begins with, Not begin with, Ends with and Not end with. For numbers, Equals, Does not equal, Is greater than, Is greater than or equal to, Is less than and Is less than or equal to.
- This editor does not offer Is between, Is not between, Is any of, Is none of, Is like, Is not like and similar operations, nor the joiners Not And and Not Or, nor an expression typed by the user.
- The value you type is saved as text.
The available fields depend on the type.
| Type | Fields |
|---|---|
| Customers Terms | Customer Name, More Details, Nationality, Phone 1, Phone 2, Fax, Telex, Notes, Latin Name, Email, Website, Prefix, Suffix, Region, City, Street, Post Box, ZIP Code, Mobile, Pager, Country, Field 1 to Field 4, Certificates, Work, Nature of Work, Gender, Hobbies, Account Code, Sale Price, Discount Rate, Sales Channel, Customer Type, Offer Code |
| Materials Terms | Material Code, Material Name, Latin Name, Barcode, Second Unit Barcode, Third Unit Barcode, Specifications, Group, Group Code, Size, Origin, Location, Manufacturer, Model, Quality, Provenance, Color, the six prices (Wholesale, Semi wholesale, Retail, Export, Distributor, Consumer), Minimum Limit, Maximum Limit, Value Added Tax (when it is enabled for materials), and the prices of the second and third units |
| Invoice Terms | Currency Code, Currency Name, Category, Expiry Date, Production Date, Width, Length, Height, Field 1 to Field 4, Gifts Discount, Items Discount, Items Additions, Cost Center Code and name (with the cost center feature), Price, Discount Rate, Bill No, Total Value Added, Payment Type, Country, City, Region, Street, Building No, Floor Number, Post Box, ZIP Code, and Salesman Name and Code and Distributor Name and Code (with the option of salesman and distributor fields in the bill) |
| Entry Terms | Currency Code, Currency Name, Notes, Value Added |
| Cost Center Terms | Number, Code, Name, Debit, Credit, Latin Name. Used by the materials activity by branches report |
| Warehouse Terms | Warehouse Code, Warehouse Name, Latin Name, Main Warehouse, Account, Address, Warehouseman, Notes |
| Packing List Terms | Packing Type |
| Order Conditions | Currency Code and Name, Category, Expiry Date, Delivery Date, Width, Length, Height, Gifts Discount, Item Discount, Items Additions, Salesman, Distributor, Cost Center Code and name (under the same conditions), Price, Discount Percent, Notes, Order Number, Agreed LC Date, and the shipping fields and the agreed and suggested dates, under the names that your company set |
The custom fields that the company defined for the card of this type are added to each type, if there are any.
If something goes wrong
| Message | Why it appears | What to do |
|---|---|---|
| You do not have permission. | You clicked New, Save, Rename, Delete, Edit in Popup Window or Duplicate Current Item, and you do not have the matching permission for this type. | Ask the system administrator for the permission. The box has an Ok button. Without the modify permission you can still edit in the window and preview with the temporary copy. |
| Name is already used. Please enter another one. | In Duplicate Current Item or Rename you typed a name that another set has. | Type a different name. The New window does not check the name. |
| Are you sure you want to delete? | You clicked Delete. | Click Delete to confirm or Cancel. |
| Save is disabled. | You did not change anything in the editor. | Edit a condition or choose a set. |
| My changes vanished after I chose another name. | Changing the selected name loads the saved conditions of the set in place of what was in the editor. | Save before you change the name. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.