Zum Hauptinhalt springen

hasStatusAndSuccess

hasStatusAndSuccess(obj, code, success): boolean

Checks if the document file has a specific status code with a given success state.

Parameters​

obj​

The document file or an array of ProcessStatusCode to check.

ptpInvoice | ProcessStatusCode[]

code​

StatusCode

The status code to check for.

success​

boolean

The success state to check for.

Returns​

boolean

True if the status code with the given success state exists, otherwise false.