Zum Hauptinhalt springen

ensureUserWithSufficentReleaseRoleExist

ensureUserWithSufficentReleaseRoleExist(releaseList, amount, file): void

Ensures that a user with a sufficient release role exists. If no user with a sufficient release role exists, the next not required user is activated. If no user is found that is allowed to release the amount, an error is thrown.

Parameters​

releaseList​

ReleaseEntry[]

The list of release entries.

amount​

number

The amount that should be released.

file​

ptpInvoice

Returns​

void