Internal Settlements Line Type
Internal settlements lines type can only be created on template budgets and can only exist on main and sum budgets.
Each line of this type must refer to a settlements subbudget where it will sum up settlements. For every settlements budget that is referred from a budget, there must exist exactly two internal settlements lines on the budget that refer to the same settlement budget. The two lines should have different income/expense setting.
By definition, an internal settlement is a settlement between two departments in the subtree of the budget hierarchy that has the current budget as root of the subtree. And as any main budget only has itself in the subtree having the main budget as root budget, all settlements registered on the main budget will be external settlements. Hence, the internal settlements lines on main budgets will always be zero.
On sum budgets, each internal settlements line sums up settlement lines satisfying the following criteria:
- The line is registered on a budget below the sum budget in the budget hierarchy.
- The referenced department/budget on the settlement line is also below the sum budget in the budget hierarchy.
- The line has the same income/expense setting as the internal settlements line.
- The line is registered on a settlements subbudget that corresponds to the one referred to from the internal settlements line, that is, created from the same settlements subbudget on the budget template.