In 1C:Enterprise mode

Let us test the document.

  1. Start 1C:Enterprise in the debug mode.
  2. In the Payroll section, run the Employee accruals command and record September salary for all Jack of All Trades employees (fig. 18.5).


    Fig. 18.5. Employee accrual document # 1
  3. Post the document and look at the records it generated in the Accruals register (fig. 18.6, 18.7, and 18.8).


    Fig. 18.6. Employee accrual  #1 register records in the Accruals calculation register



    Fig. 18.7. Employee accrual #1 register records in the Accruals calculation register


    Fig. 18.8. Employee accrual #1 register records in the Accruals calculation register

    Note that the platform set the registration period for each record to the beginning of the calculation register period (in the posting event handler you specified that it uses the document date, which is 9/23/2014 in this example).

    Also note that the SourceData record attribute stores the employee salary amount specified in the document. This lets you subsequently calculate the total payment, which is based on the salary.

    To learn more of calculation register functionality, you need a utility report that shows the contents of recalculation records.
Next page: Examples of displacement and dependency by base period
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.