Modify Group Price
This tool writes new selling prices that you type into the cards of a material, a group of materials, or the materials that meet conditions. You type one price for each price type, and every selected material takes it. To raise prices by a percentage or by an added amount, use Modify Materials Prices. For the practical steps, see Change prices of materials in bulk.
Opening the window
- From the main ribbon: Materials > Tools > Tools > Modify Group Price. The command shows if your licence includes warehouses and the file does not work in multi-file mode.
- You need the Modify Group Price permission in Users Management, on the Reports page. It is one check box that allows running the tool.
Fields and buttons
Not every field is needed: choose a Material, a Group or Materials Terms, then choose the prices you change and enter their values.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Material | One material whose prices are changed, together with the materials of its combinations if it has any. | No, but you must choose a material, a group or a condition | Choose from the list (see Lookup boxes, edit boxes and search windows). Choosing a material disables Group. |
| Group | A group whose materials' prices are changed. | No | Choosing a group disables Material. The change covers the materials of the sub groups unless you clear Include Sub-Group. |
| Currency | The currency in which you type the prices. | Yes | The first value is the default currency of the file. The field shows if your licence allows more than one currency. The program multiplies each price you type by the current value of this currency and saves the result. Example: 2.40 in dollars with a value of 3.75 saves 9.00. |
| Use Unit | The unit whose prices are changed. | Yes | First Unit (first value), Second Unit or Third Unit. The second and third units change only the materials whose conversion factor for that unit is not zero. |
| Materials Terms | A saved condition that limits the materials changed, with a table under it that shows its lines. | No | The first value is Without. See Materials Terms. |
| Include Sub-Group (under Options) | Makes the change cover the materials of the groups under the chosen group. | No | Not selected at first. If you chose a Group and leave it cleared, the program changes only the materials placed in that group itself. It has no effect when you choose a Material. If the group is a collective group, select this option, or no material is changed. |
| Wholesale | A check box and the value of the new price. | No | The check box is selected at first. The value box is enabled while the check box is selected and disabled if you clear it. |
| Semi wholesale | Same as Wholesale. | No | |
| Retail | Same as Wholesale. | No | |
| Export | Same as Wholesale. | No | |
| Distributor | Same as Wholesale. | No | |
| Consumer | Same as Wholesale. | No |
Values are numbers. You must keep at least one price selected. If a price stays selected and its value is empty, the program puts 0 in that price for every changed material, so clear the check box of every price you do not want to change.
| Button | What it does |
|---|---|
| Ok | Checks what you entered, asks for confirmation, then changes the prices. The window stays open after the change. |
| Cancel | Closes the window. It does not undo a change you already made. |
Materials Terms
The Materials Terms field looks the same in the windows of the materials tools: Modify Materials Prices, Modify Materials Cards and Modify Gifts in Materials Cards. It has three parts:
- The list: its first item is Without, which is the first value and means no conditions, so the tool works on all the materials you set with the material or the group. After it come the saved conditions on materials, from the oldest to the newest. They are the same material conditions that the reports use, and Save and reuse report conditions explains how to create them and which fields and operations they accept.
- The table under the list: shows the lines of the chosen condition in the columns Field, Condition, Text and Link. It is disabled with Without. You can edit its lines in the table itself, and when you click Ok the program uses what you see in the table even if you did not save it.
- Five small buttons under the table, with no text; the name of each shows when you point at it. They are disabled with Without, except New, which always works.
| Button | What it does | Permission |
|---|---|---|
| New | Opens the Customize Conditions window so you can type a name and the lines of a new condition. After Ok the program saves it and selects it in the list. | Materials Terms - Add |
| Modify | Opens the Customize Conditions window for the chosen condition. After Ok it saves your changes and keeps it selected. | Materials Terms - Modify |
| Delete | Deletes the chosen condition from the file after two questions. | Materials Terms - Delete |
| Save | Saves the current table lines under the name of the chosen condition, then selects the last condition in the list. | Materials Terms - Modify |
| Update | Reads the chosen condition again as saved and discards your unsaved changes in the table. | None |
The Customize Conditions window that New and Modify open is explained in Orders posting. If you do not have the permission of a button, a permission message appears and nothing happens.
When you click Delete the program asks "Are you sure you want to DELETE?" and then "This is the last chance. Do you still want to delete..?" The first button in each is No. If the condition is used in a special offer, the program refuses to delete it and shows "Can't delete the condition! It's used in Special Offers :" followed by the offers' names.
When you click Ok in the tool, the program checks the lines of the chosen condition. One of these messages appears, and the tool does not continue until you fix the line:
| Message | Why it appears |
|---|---|
| "Please select one condition at least" | You chose a condition in the list and its table has no lines. |
| "Please select field" | A line has no field. |
| "Please select operation type to use" | A line has no condition (operation). |
| "Please select an expression to search for " | A line has no text, and it is not a parenthesis line. |
| "Please select a Link to use " | A line is followed by another line and has no link, And or Or. |
| "Open parentheses count must equal close parentheses" | The parentheses are not balanced. |
When the check passes, the program creates a temporary copy of the condition with what the table holds, uses it in this operation, and deletes it when you close the window.
In Modify Materials Prices the field is hidden if your licence does not include the standard reports.
What the program changes
When you click Ok the program does this, in this order:
- It checks that you chose a material, a group or a condition. If you chose nothing, the message "No material, group or condition was selected" appears and the operation stops, so you cannot change all materials without choosing something.
- It asks "Do You Want to modify prices". If you choose No, nothing changes. If you choose Yes, the status bar shows the notice "Modify only materials cards with actual price policy".
- It checks that at least one price is selected. This check comes after the question, so "You must select one price at least" appears after you answered Yes.
- It picks the materials: the chosen material, or the materials of the group and its sub groups, or the materials the condition meets, and then applies Materials Terms to them. Materials that have combinations (segments) are not changed themselves; the materials of their combinations are changed.
- It skips every material whose price policy is not actual price (that is, a ratio price policy), whose security level is higher than your level for editing materials, or, when you chose the second or third unit, whose conversion factor for that unit is zero.
- In each remaining material it puts, in every selected price of the unit you chose, the value you typed multiplied by the currency value. It does not touch the unselected prices, the prices of the other units, or any other field.
- If Activate log file is on in Program Options, the program records one modification in the operations log for each material that was changed, with the text "Modify Group Price" followed by the material description. With the option off it records nothing.
- It shows "Modifying Group Prices Completed", even if no material matched and the prices stayed as they were.
The tool does not show the number of materials before or after, does not keep the old prices, and cannot be undone. Back up the file before changing many cards. The tool does not change entries or issued bills: a bill entered before the change keeps its price.
Example
The group "Groceries" has three materials, with these prices before the change:
| Material | Retail | Consumer | Wholesale |
|---|---|---|---|
| Rice | 5.00 | 5.00 | 4.50 |
| Sugar | 8.00 | 8.00 | 7.00 |
| Orange Juice (first unit) | 10.00 | 10.00 | 9.00 |
You want one price in dollars for retail and consumer. In Group choose "Groceries", in Currency choose the dollar (value 3.75), and in Use Unit choose First Unit. Clear the check boxes of Wholesale, Semi wholesale, Export and Distributor, type 2.40 in Retail and Consumer, click Ok, and answer Yes.
The price saved for each material is 2.40 × 3.75 = 9.00. The prices become:
| Material | Retail | Consumer | Wholesale |
|---|---|---|---|
| Rice | 9.00 | 9.00 | 4.50 |
| Sugar | 9.00 | 9.00 | 7.00 |
| Orange Juice (first unit) | 9.00 | 9.00 | 9.00 |
The wholesale prices did not change, and neither did the second-unit prices of Orange Juice.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| No material, group or condition was selected | You clicked Ok with no material, group or condition. | Choose one of them. |
| Do You Want to modify prices | You clicked Ok and the entries are valid. | Choose Yes to continue or No to stop. |
| You must select one price at least | You selected none of the six prices and answered Yes to the previous question. | Select at least one price. |
| Error during modification | The change command failed in the database. | Check the connection to the database and try again. Do not assume the prices did not change; open a material card of the group. |
| Modifying Group Prices Completed | The command finished without an error. | Open a material card to check the prices. |
The messages of the materials terms listed in Materials Terms are added to these.
Related
This page applies to alameen ERP 10, version 10.1.79.764.