Click or drag to resize

IOperationServicePrintDocumentReceipt Method

Prints one copy of a sent local document using standard templates and printing hooks, without sending it again.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
void PrintDocumentReceipt(
	Guid documentId,
	int revision,
	ICredentials credentials
)

Parameters

documentId  Guid
Identifier of the locally stored document.
revision  Int32
Revision from the last read document snapshot. Re-read the document after a change conflict before retrying.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
Exceptions
ExceptionCondition
PermissionDeniedExceptionThe caller has insufficient document permissions.
ConstraintViolationExceptionDocument data or state violates Front rules.
EntityModifiedExceptionRe-read the document and review the changes before retrying.
EntityAlreadyInUseExceptionThe document is locked by another operation.
DeviceExceptionThe required equipment is absent or failed.
Remarks
If printing fails, parts of the document may already have been printed. A repeated call prints the entire document and may duplicate those parts.
See Also