Click or drag to resize

EgaisMarkWriteOffData Class

Data of one position for a write-off or return operation on EGAIS tare. A position is either marked tare (EgaisMarkCode is set; the mark must be registered in the EgaisMarksInfo directory of the front under the organization of the batch, its EGAIS product must be known to the front) or unmarked tare (EgaisMarkCode is empty; the iiko product is identified by ProductId or ProductBarCode and must be mapped to an EGAIS product). The organization (FSRAR id) and the operation time are common for the whole batch and are passed as arguments of the operation. The data and the rules repeat the tare unsealing window of iikoFront, so a tare unsealed through the API can be returned in the window and vice versa.
Inheritance Hierarchy
SystemObject
  Resto.Front.Api.Data.EgaisEgaisMarkWriteOffData

Namespace: Resto.Front.Api.Data.Egais
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
[SerializableAttribute]
public class EgaisMarkWriteOffData

The EgaisMarkWriteOffData type exposes the following members.

Constructors
 NameDescription
Public methodEgaisMarkWriteOffDataMain constructor
Top
Properties
 NameDescription
Public propertyEgaisAlcCodeAlcohol code of the product in EGAIS. Marked tare: optional, the alcohol code is taken from EgaisMarksInfo and this value is used only when the directory knows the mark without an alcohol code. Unmarked tare: not used, the alcohol code is determined by the product mapping (the unseal record of unmarked tare is stored without an alcohol code, as the front does).
Public propertyEgaisMarkCodeExcise mark. Empty for unmarked tare. Leading and trailing whitespace is ignored; the mark is compared case-sensitively. If the same mark is present in a batch more than once, only the first position is processed (see DuplicateInBatch).
Public propertyProductBarCodeiiko product barcode. Unmarked tare: the product is resolved by it when ProductId is not set (as when scanning in the tare unsealing window). Marked tare: not used.
Public propertyProductIdiiko product identifier. Unmarked tare: required unless ProductBarCode is set. Marked tare: not used, the product is determined by the alcohol code of the mark (as in the tare unsealing window).
Public propertyUnpackedAmountUnsealed (returned) amount in litres. Required for a marked unpacked product (keg: Packed == false in the EGAIS product directory), as in the tare unsealing window; not used for a packed product. Optional for unmarked tare.
Public propertyWriteOffTypeWrite-off (unsealing) reason. For a cancellation it must be equal to the reason stored in the unseal record (see ReasonMismatch); for unmarked tare the reason is a part of the record identity.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also