---
title: "Feature: Approval rules for a range of quantities"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791169660@main"
source: "Changelog/1.0.0/Feature-1791169660-ApprovalRulesForARangeOfQuantities.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Approval rules for a range of quantities {#feature-1791169660}

## Description {#description}

An approval rule could only require a quantity above a threshold. It now also takes `quantityAtLeast` and
`quantityAtMost`, so a rule can cover 3 to 5 days of leave, both bounds included; equal bounds match exactly that
quantity. `quantityOver` and `quantityAtLeast` exclude each other, the lower bound must not exceed the upper
one, and the bounds count as one condition when rules compete. The rule form offers both fields.

`GET /api/v1/approval-subject-types` (`listApprovalSubjectTypes`, HR and admins) lists the subject types the
installed packages register, with their names, the unit of their quantity and the conditions a rule for them may
carry. Two packages registering one subject type stop the application at start.

## Impact {#impact}

The contract's `SubjectType` is no longer a closed list but a pattern; clients read the installed types from
`listApprovalSubjectTypes`.
