1C:Enterprise 8.3. Practical Developer’s Guide. Lesson 9 (0:50). Periodic information registers. Adding a periodic information register

Adding a periodic information register

Let us create a periodic information register that will store the retail prices of materials and the prices of services provided by Jack of All Trades, together with the periods when the prices are effective.

In Designer mode

Let us create the information register.

  1. Open your configuration in Designer.
  2. In the configuration object tree, click the Information registers branch and then click the Add Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode button in the configuration window command bar.

    This opens the configuration object editor window.
  3. On the Main tab, in the Name field, type Prices.
  4. In the Periodicity field, select Within a second.

    With this periodicity you can specify multiple prices during a single day. But if you are not planning to change prices that often, you can set Periodicity to Within a day.

    Now let us define the object presentation in the application interface.
  5. In the Record presentation field, type Price.
  6. In the List presentation field, type Material and service prices (fig. 9.2).

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode
    Fig. 9.2. Specifying main information register settings

    Note the Write mode property of the information register. By keeping the default Independent value, you create an independent information register. Later you will be able to enter register data directly, without using a recorder.
  7. Click Next.

    This opens the Subsystems tab. The logic of your configuration suggests that the register should be available in the Accounting, Inventory, and Services sections.
  8. Select the Accounting, Inventory, and Services check boxes (fig. 9.3).

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode
    Fig. 9.3. Specifying subsystems where a register is available

In 1C:Enterprise mode

Let us test the Prices information register.

  • Start 1C:Enterprise in the debug mode.

    You can see that the Material and service prices command that opens the register list is added to the Inventory, Services, and Accounting subsystems (fig. 9.6).

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In 1C:Enterprise mode
    Fig. 9.6. Command that opens the periodic information register

The command that opens the information register is available by default in the interface of sections where the register is available because users should be able to modify information register data (note that commands that open accumulation registers are not available by default because users should not modify their data). Some command names that do not fit the current section command panel are moved to the More menu.

Dimensions and resources

Let us specify the register dimensions and resources.

  1. Click the Data tab.
  2. Click the Dimensions branch, click the Add Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode / Dimensions and resources button in the command bar of the window, and create the MaterialOrService dimension with the CatalogRef.MaterialsAndServices type.
  3. In the dimension properties, select the Master check box (fig. 9.4).

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode / Dimensions and resources
    Fig. 9.4. Creating a master register dimension

    The Master property makes sense for dimensions whose type is a reference to a database object. If this property is set to True, the register record is considered meaningful only while the database object is available. Once the object is deleted, the platform deletes all information register records related to that object.

    Also, once you set the Master property to True, a link is added to the navigation panel of the Materials and services catalog item form. Clicking this link opens the register records where the MaterialOrService dimension value is a reference to that catalog item.
  4. Click the Resources branch and click the Add Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode / Dimensions and resources button in the command bar of the window (fig. 6.5) to create the following resource:
    • Price. Type: Number, length: 15, precision: 2, non-negative.
    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In Designer mode / Dimensions and resources
    Fig. 9.5. Creating an information register resource

Creating information register records

Let us create records in the Material and service prices information register.

  1. Click Material and service prices.
  2. Click Create.
  3. Specify the service prices as shown in fig. 9.7.

    Note that you have to enter periods that are less or equal to the Services document creation date (in the example used in this book the document was created on 7/24/2014).

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In 1C:Enterprise mode / Creating information register records
    Fig. 9.7. Service prices in the Prices information register
  4. Specify the material retail prices as shown on fig. 9.8.

    Lesson 9 (0:50). Periodic information registers / Adding a periodic information register / In 1C:Enterprise mode / Creating information register records
    Fig. 9.8. Material prices in the Prices information register

So now your applied solution features setting prices for materials and services. Since the prices have time stamps, you can set new prices in advance and be certain that they take effect on the specified date.

Leave a Reply

Your email address will not be published.

 

1C:Enterprise Developer's Community