Linking materials and services to values of the MaterialServiceType enumeration
To link materials and services to enumeration values, you have to do the following:
- In Designer, create a MaterialsAndServices catalog attribute that will store enumeration values.
- In 1C:Enterprise mode, specify the values of this attribute for all the items in the MaterialsAndServices catalog.
In Designer mode
Let us add the attribute to the MaterialsAndServices catalog.
- Open the object editor window for the MaterialsAndServices catalog.
- On the Data tab, click the Add button and add the MaterialServiceType attribute with type EnumRef.MaterialServiceTypes and synonym Type (fig. 10.2).
Fig. 10.2. MaterialsAndServices catalog attributes
In 1C:Enterprise mode
Let us set the attribute values.
- Run 1C:Enterprise in the debug mode.
- For each catalog item, specify its Type (fig. 10.3).
Fig. 10.3. Materials and services catalog items
Now let us discuss the uses of the new data stored in the MaterialServiceType enumeration.