Skip to main content

Material Combinations

A material that has combinations is sold and stocked in several variants, such as colour and size. In the Define Material Combinations window you choose the material's segments (for example colour and size) and the elements of each segment, then generate every possible mix. For each mix you keep, the program creates a separate material card with its own code, barcode and stock. From the same window you open Modify Combination Data to change the prices, limits and gifts of one combination.

Segments and their elements are defined first in Define Segments, and the segments your materials use are chosen in Materials Segmentation Management. The full workflow is in Define segments for materials.

Opening the window​

From the Material Card: click Combinations... in the row of buttons. The window opens over the card and the card is unavailable until you close it. While it opens you see "Loading material combinations, please wait...".

The button appears and works only when:

  • The material segments feature is in your licence, and you chose at least one segment in Materials Segmentation Management. The program checks this when the card opens: if no segment is chosen, the button is hidden.
  • The card is saved (not new), the material type is Stock, the material is not an Assembled Material, and Material has Combinations on the Options page is ticked. The button stays dimmed until these are true on the screen. The checks below read what is saved in the file, not what you typed and did not save yet:
MessageWhy it appearsWhat to do
No segments found in Materials Segmentation Management, please define one segment at leastThe segments were removed from Materials Segmentation Management while the card was open.Choose at least one segment, then try again.
Must change material type to " Stock " in Options pageThe saved material type is not Stock.Change the type and save the card.
Should click "Modify" button after activating "Material has Combinations" option in Options pageThe option is not saved in the material card.Tick Material has Combinations and click Modify to save the card.
Internal error occurredThe window could not open.Close the material card and open it again. Tell your system administrator if it repeats.

After the window closes, the card shows the material type Stock and Material has Combinations ticked. The material type can no longer be changed while the material has saved segments.

Permissions in Users Management (page Operations, section Segments; the section appears once a segment is chosen in Materials Segmentation Management):

PermissionWhat it allows
Edit segments in material or group cardSaving the window with Ok and Apply. Without it both are dimmed and the window is for viewing only.
Generate CombinationsThe Generate Combinations button.
Edit Materials Combinations DataThe Ok button of Modify Combination Data.

The Define Material Combinations window​

At the top is the Materials Segments box with the table of segments and their elements. Below it are the barcode option, the count of selected combinations, the table of combinations and the generate button. At the bottom are the save and close buttons. You can enlarge the window with the maximize button.

The segments table​

FieldDescriptionRequiredValues and rules
SegmentsA segment the material is made of. The list holds the segments chosen in Materials Segmentation Management that no other row of this window uses.Yes, for every rowThe program shows the Latin name in the English interface when one exists. Before you choose, the box shows "Select segment". The list is dimmed and bold when the material has combinations.
Segments ElementsThe elements of the segment that you want for this material. Chosen elements appear as small tags, and you can type part of an element name to complete it.Yes, for every rowOnly elements defined for the segment are accepted. Before you choose, the box shows "Select element". An element used by a saved combination must stay selected.
The down-arrow button beside the elementsSelects all the elements of the segment at once. Its tooltip is "Insert all segment elements".Dimmed if no segment is chosen or all its elements are already selected.
Possible combinations countHow many mixes your choices produce now: the product of the number of elements chosen in each row.Shows 0 if the first row has no elements. A row without elements after the first is not counted. Example: two colours and three sizes give 6.
ButtonWhat it does
AddAdds an empty row to the table. Dimmed when every available segment is used, or when the material has combinations.
DeleteRemoves the selected row without asking. Dimmed when no row is selected, or when the material has combinations.
Delete in the right-click menu of a rowDoes what the button does.

When combinations exist, saved or generated in the window, the segment lists and the Add and Delete buttons are dimmed. You cannot swap or remove the material's segments then. You can still change elements and generate again. If you delete all the saved combinations and click Apply, the segments can be edited again.

Barcode option and counts​

FieldDescriptionValues and rules
Insert barcodes manuallyIf ticked before Generate Combinations, the barcode of each new combination is left empty for you to type. Otherwise the program gives each new combination a random 13-digit barcode.Not ticked. The option is read only when you click Generate Combinations.
Selected combinations countThe number of ticked rows in the combinations table.Changes as you tick rows.
Generate CombinationsBuilds every possible mix of the chosen elements and shows them in the combinations table.Dimmed without the permission Generate Combinations, or when no element is chosen.

Generate Combinations puts every mix in the table. In each mix the first element comes from the first segment, the second from the second segment, and so on. Combinations already saved come back ticked, with their saved barcode and status. New combinations come back unticked, so tick the ones you want created. A saved combination that your new choices no longer produce disappears from the table and stays in the file.

The combinations table​

The table starts with a column of tick boxes. Tick the combinations you want created or kept. The box in the column header ticks all. Click only the tick boxes to change the selection, and check Selected combinations count before you save. If you remove the tick of a saved combination, the program deletes it from the file when you save.

You can filter any column from the arrow in its header, which shows a list of its values to tick. For the rest of the table's behaviour see Grid. Apply clears the filter and the search text.

ColumnContentRules
StatusA button whose text is Modified or Not modified. It opens the Modify Combination Data window.Modified if you changed the combination's data in that window. Dimmed for a combination not saved yet.
CodeThe combination code: the material code, then a dash and the code of the element of each segment, such as TS-01-M.Read only.
BarcodeThe combination barcode.You can edit it. The file does not accept a repeated combination barcode.
One column per segmentThe title is the segment name, and each row shows the element name.Read only.
Hidden from SearchShows Yes when the combination is hidden from the combination selection window, and is empty otherwise.Set by Hide in Search Window in the combination data window.

The combination name in cards and bills is the material name. The name of the mix is added in parentheses when the option "Include the combination name in material name" is on (see Program Options). A new combination takes the prices, limits, gifts and units of the material.

The bottom buttons​

ButtonWhat it does
OkChecks the data, saves the material's segments, their elements and the ticked combinations, deletes the saved combinations that are not ticked, and closes the window. Dimmed without the permission Edit segments in material or group card.
ApplySaves like Ok, then reloads the material and keeps the window open. Dimmed if you changed nothing.
CloseCloses the window. After any change the button text becomes Cancel, and the program asks "Do you want to ignore the inputs and close the window?" (shown when the cancel warning is on in Program Options).

On Ok and Apply the program checks, in this order: every row has a segment, every row has elements, the elements of each ticked combination are still chosen, and the online store limit (see the messages below). If these pass it saves the segments, then the combinations. If a step of the save fails, the steps before it may already be saved, so open the window again to see what was saved.

The Modify Combination Data window​

Click the button in the Status column of a saved combination. A small window opens that cannot be resized. Here you change what belongs to this combination alone: its prices, limits and gifts. The button does not work for a new combination that is not saved, so save with Apply first.

FieldDescriptionRequiredValues and rules
MaterialThe code and name of the base material.Read only.
CombinationThe name of the mix: the element names joined by dashes.Read only.
PricesThe combination's prices in three columns, one per unit. The column title is the unit name; for the second and third units it is the name and its factor, such as Box/12. If the material has no second or third unit, those boxes are dimmed.Rows: Wholesale, Semi wholesale, Distributor, Export, Retail, Consumer, Last Purchase. Numbers without a minus sign.
Pricing PolicyThe pricing policy of the combination. It comes from the material.Read only (one of Actual, Maximum, Average, Last Purchase, Default). Shown in the first unit column only.
Maximum LimitThe largest quantity you want to keep of the combination.A number; a minus sign is accepted.
Re-Order PointThe quantity under which the combination needs re-ordering.A number; a minus sign is accepted.
Minimum LimitThe least quantity that should remain.A number; a minus sign is accepted. Must not be above the maximum limit.
Current QuantityThe balance of the combination in the file.Read only.
GiftThe number of gift units.A number not below zero.
For everyThe number of sold units that earn the gift.A number not below zero.
Inherit basic material dataThe combination stays tied to the base material, so the material card passes it its prices, limits, pricing policy, currency and picture when the card is saved.Ticked by default for a new combination.
Hide in Search WindowThe combination does not appear in the Select a material combination window that opens from bills and the point of sale.Not ticked by default.

The prices in the boxes are in the material's currency. When the pricing policy is Actual, the program divides the saved price by the rate of the material currency to show it, and multiplies by the rate when it saves. This holds for the six prices except Last Purchase, which is shown as stored and multiplied by the rate at every Ok (with Actual and a material currency other than the main one).

ButtonWhat it does
RestorePuts every value back from the base material in the window, including Current Quantity, which then shows the quantity of the base material and is saved with Ok. It also ticks Inherit basic material data and clears Hide in Search Window. It saves nothing until you click Ok, and afterwards the status is Not modified.
OkChecks that the minimum limit is not above the maximum limit, saves the combination in the file at once (without waiting for the combinations window to be saved), closes the window and refreshes the Status column. If you changed any field since the window opened, the status becomes Modified. Dimmed without the permission Edit Materials Combinations Data.
CloseCloses the window without saving and without asking.

When the base material card is saved, and it has combinations, and you have the permission Edit Materials Combinations Data, the program copies the card's general data (name, units, specifications, group, gifts, and the expiry date, serial number and category options) to all combinations. It then asks "Do you want material card info to match its combinations?". The answer concerns prices, limits and the picture. With Yes every combination, inheriting or not, also takes Hide in Selection Window from the card. Both answers update the code and the Gulf taxes of all combinations.

  • Yes: the card passes this data to every combination that has Inherit basic material data ticked, even one you edited before, and its status becomes Not modified.
  • No: it passes it only to inheriting combinations that you did not edit. Edited combinations stay as they are.

A combination whose inheritance you cancelled keeps its own prices and limits.

Messages​

These appear on Ok and Apply, and in the data window where noted.

MessageWhy it appearsWhat to do
Must select all inserted segmentsA row of the table has no segment.Choose the segment or delete the row.
All inserted segments must have elements selectedA row has no elements.Choose elements for the row.
There are Combinations have Elements not defined in the Segments TableYou deselected an element that a ticked combination uses.Select the element again or untick the combination.
Shopify limits users to 3 segments or 100 combinations.The material is chosen in a Shopify store and has more than three segments or more than 100 ticked combinations.Reduce the segments or the ticked combinations.
Cannot duplicate Combination Barcode in the fileA combination barcode is used by another card.Change the barcode.
Cannot delete used elementYou removed from the table an element that a saved combination still uses.Select the element again, or delete the combination first (remove its tick and click Apply). The same message appears if you untick a combination used in a distribution discounts card.
Cannot delete segment have combinationsYou removed a segment of which a saved combination still uses an element.Delete the combinations first.
Cannot delete a used combination.You removed the tick of a combination that is used in the file in a place not listed in the following rows.A used combination is not deleted. Keep it ticked.
Cannot delete a combination used in BillA bill uses the combination.As above.
Cannot delete a combination used in POSA point of sale uses the combination.As above.
Cannot delete the combination! it is used in POS cardThe combination is in a group of point of sale smart devices.As above.
Cannot delete a combination used in POS OfferThe combination is in a point of sale offer.As above.
Cannot delete a combination used in OrdersThe combination is in an order.As above.
Cannot delete a combination used in Cost CardThe combination is in a materials cost card.As above.
Cannot delete a combination used in Assembled MaterialThe combination is a component of an assembled material.As above.
Cannot delete a combination used in Assembled GroupThe combination is in an assembled group.As above.
Cannot delete a combination used in Distribution OfferThe combination is in a distribution offer.As above.
Cannot delete a combination used in Alternatives CardThe combination is in an alternatives card.As above.
Cannot delete a combination used in BOMThe combination is in a manufacturing model.As above.
<ERROR_COMPOSITEMATERIALISUSEDINBOM:Amn.Segmentation>The combination is used in a job order form. The message name appears in capital Latin letters instead of a readable sentence.As above: the combination is used and is not deleted.
An internal error occurred while executing operationAn error not listed above while saving. The window closes after it.Open the window again and check what was saved. Tell your system administrator if it repeats.
Do you want to ignore the inputs and close the window?You closed the window after a change. Shown when the cancel warning is on.Close Window or Cancel. The message is explained in Messages and callouts.
Minimum limit cannot be greater than maximum limitThe minimum limit is above the maximum limit in the data window.Correct the two values.

This page applies to alameen ERP 10, version 10.1.79.764.