# Recalculate Parent

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

A simple codeunit that allows you to force a complete re-calculation of an associated parent record.

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

Set the codeunit Classname of the entity to: **dk.tempusserva.codeunit.common.GenberegnParent**

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

Set the following entity configuration

- **GenberegnParent.ParentField** Field NAME containing the DataID of the associated record (eg. ParentReference or Lookup DataID)

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitFormevent](https://docs.tsnocode.com/books/codeunit-reference/chapter/formevents)</span>
- <span class="mw-headline">Security: none</span>
- <span class="mw-headline">Classpath: dk.tempusserva.codeunit.common.GenberegnParent</span>