Click or drag to resize

IOperationServiceCreateDocument Method

Validates and locally saves a complete non-empty document without UI or printing. Author and authorizing user are taken from credentials.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IDocument CreateDocument(
	DocumentCreateData data,
	ICredentials credentials
)

Parameters

data  DocumentCreateData
Operation, warehouses, complete non-empty contents and comment of the new document.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.

Return Value

IDocument
Exceptions
ExceptionCondition
PermissionDeniedExceptionThe caller has insufficient document permissions.
ConstraintViolationExceptionDocument data or state violates Front rules.
ServerConnectionExceptionThe main terminal is unavailable or a document number could not be obtained.
See Also