R28498 AccountingVoucher - Recalculate Item Keys

Code R28498
Entity Finance.Accounting.AccountingVouchers Entity
Name RecalculateItemKeys
Attribute -
Layer Back-End
Events Planning +
Priority Normal
Modify YES
Action

For every line: Recalculate the *ItemKey.

  • Each ItemKey is a concatenation of the values of the Key RequiredProperties (Key Property = True) for the voucher line ordered by the KeyOrder of the AccountRequiredProperties set for the Account (the separator between the values is ".").
  • If not all Required Properties's values which are marked as Key Properties (Key Property = True) are filled in for the lines, then throw an error.
Description The "item key" contains the values of the Key Required Properties of the Account which are set for the particular voucher line. In order to make sure that the right values are stored in the system the Item Key is recalculated on every document state change when the new state is greater than "New"

* Note: If not all Required Properties's values which are marked as Key Properties (Key Property = True) are filled in for the lines, then the recalculation of the item key will be terminated and the rule will throw an error.
Message There are key required properties missing for line number '{LineNo}' in document '{DocumentText}'.
Introduced In Version 2018.1
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.