Zum Hauptinhalt springen

checkIfFirstReleaseUserIsValid

checkIfFirstReleaseUserIsValid(releaseList, amount, useAssigneeUserReleaseRole, file): void

Checks if the first release user is a substitute and if the substitute is allowed to release the amount. If the substitute is not allowed to release the amount, the next release user is set to required if the are not already. If there is neither a required user nor a user that can be set to required, an error is thrown.

Parameters

releaseList

ReleaseEntry[]

amount

number

useAssigneeUserReleaseRole

boolean

file

ptpInvoice

Returns

void