Click or drag to resize

IOperationServiceProcessEgaisMarkTareOperation Method

Performs an operation on EGAIS tare: write-off (unsealing) or cancellation of the write-off (return). Every position is validated independently by the rules of the tare unsealing window of iikoFront (packed marked tare is unsealed once, a marked keg many times while the mark is registered, unmarked tare by the iiko product); the positions that passed validation are sent to the server as one batch, so they share the batch result. The status is returned for every position in the order of the input collection. Available to any plugin.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IReadOnlyCollection<WriteOffResult> ProcessEgaisMarkTareOperation(
	IReadOnlyCollection<EgaisMarkWriteOffData> products,
	EgaisMarkTareAction action,
	string fsRarId,
	DateTime operationTime,
	IUser user,
	IRestaurantSection section
)

Parameters

products  IReadOnlyCollectionEgaisMarkWriteOffData
Positions of the operation: one item per mark (or per unit of unmarked tare). Not empty, not null. A repeated mark is refused per position with the DuplicateInBatch status.
action  EgaisMarkTareAction
Kind of the operation: WriteOff for write-off (unsealing), Cancel for cancellation of the write-off.
fsRarId  String
FSRAR id of the organization (from the plugin configuration), common for all positions of the batch. Not empty, not null.
operationTime  DateTime
Operation time, common for all positions of the batch.
user  IUser
The user who performs the operation. Not null.
section  IRestaurantSection
Restaurant section; null means the default section.

Return Value

IReadOnlyCollectionWriteOffResult
Exceptions
ExceptionCondition
ArgumentExceptionThe collection of positions is empty or contains null, or fsRarId is empty.
ArgumentNullExceptionThe user is null.
See Also