Tracking accessibility of cash stations, cash servers or report servers from the current cash server.

RECORDIDA record unique identifier
SERVERID

An identifier of the object, whose activity is checked. Depending on ObjRefNo, it refers to:

  • If ObjRefNo = 94, it is a cash server identifier, the link leads to CASHGROUPS.Sifr
  • If ObjRefNo = 71, it is a cash station identifier, the link leads to CASHES.Sifr
  • If ObjRefNo = 152, it is a report server identifier, the link leads to REPORTINGSERVERS.Sifr
OBJREFNOA link to the table in REFTABLES.Sifr. Possible values: 94 - CASHGROUPS, 71 -  CASHES, 152 - REPORTINGSERVERS
OBJIDENTAn object identifier (Sifr) in the table, to which ObjRefNo refers
LASTSEENDate and time of record updates
ONLINEThe Device is active flag
TRANSACT_GUIDGUIDSTRING identifier of record time

AWARDSPENALTIESDATA

Cumulative table of awards and penalties.

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
CHECKUNILink to receipt PRINTCHECKS.UNI
UNIUnique identifier inside order
STATEStatus
starting with 0:
TDrawItemState = (disNone, disOpened, disLocked, disFixed, disPrinted, disPartClosed, disClosed, disDeleted)
DATETIMEDate/time of adding award/penalty
OPERATOREmployee executing operation EMPLOYEES.Sifr
MANAGERManager confirming execution of operation EMPLOYEES.Sifr
TYPEIDIdentifier of award/penalty type, link to AWARDSPENALTIESTYPES.Sifr
AMOUNTAmount (sum)
CALCULATEDThe Award sum is calculated automatically flag
ICOMMONSHIFTLink to common shift GLOBALSHIFTS.Sifr
COMMENTComment in main language
CLOCKRECIDFor tardiness penalties, link to work time account record, for which bonus is generated CLOCKRECS.UNI
FACTORVALUEA factor value for an award calculation
APMINLIMITIndicator minimal limit of award/penalty
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING identifier of record time

CASHINOUT

Contains information about cash deposit/collection.

Is formed at the cash server.

MIDSERVERLink to cash server CashGroups.Sifr
UNIUnique identifier inside order
ISDEPOSITDeposition or Collection of money
ISTATIONStation at which cash was deposited/collected CASHES.Sifr
ICOMMONSHIFTLink to common shift GLOBALSHIFTS.Sifr
ISHIFTCash shift number SHIFTS.ShiftNum
IDRAWERSHIFTCashier Registration Identifier
SIFRUnique identifier
ORIGINALSUMSum of deposited/collected money
NATIONALSUMSum in national currency
REALORIGINALSUMReal sum — cash sum specified when closing cash shift
ICASHIERCashier taking part in cash deposit/collection EMPLOYEES.Sifr
IPRINTERPrinter PRINTERASSIGNS.Sifr
KIND

Type of deposit — cash, prepayment, tips, etc.

0 — Cash deposit/collection
1 — Deposit for prepayment (collecting when deleting)
2 — Deposit for tips
3 — Cash collection when closing shift
4 — Virtual collection when closing common shift 
5 — Virtual deposit when opening common shift
6 — Card balance replenishment

IDRAWERDrawer DEVICES.Sifr
EXTFISCIDInternal identification number of fiscal register
PRINTNUMBERPrinter number
IFISCSHIFTFiscal shift number
DATETIMEDate and time of cash deposit/collection
INTFIDIdentifier of interface executing payment transaction
CARDCODECard number
ACCOUNTIDENTAccount identifier AccountIdent,MInterface –> Table PDSCards, field(s) AccountIdent,MInterface;
IREASONReason for deposit/collection DEPOSITCOLLECTREASONS.Sifr
OPENREASONNAMEOpen name of reason for cash deposit/collection
IAUTHORLink to author EMPLOYEES.Sifr
PAYGUIDSTRINGPAYGUIDSTRING of payment for which this deposit was done, link to PAYMENTS.GuidString
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING identifier of record time

CASHINOUTDETAILS

Details of deposit/collect cash operations

MIDSERVERCash server identifier, link to CashGroups.Sifr
CASHINOUTUNIIdentifier of deposit/collection to which these details relate, link to CASHINOUT.UNI
FACEVALUEIDIdentifier of banknote value, link to CURRENCYFACEVALUES.Sifr
BANKNOTECOUNTNumber of banknotes of this type, is filled if FACEVALUEID is specified
ORIGINALSUMSum
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING identifier of record time

CASHSUMS

This table is located only in work.udb and is not uploaded to the shift file and cumulative database. The table stores information on which amount of cash and in what currency a cash drawer must contain.

STATIONLink to station, CASHES.Sifr
CURRENCYLink to currency, CURRENCIES.Sifr
DRAWERLink to cash drawer, DEVICES.Sifr
PRINTERLink to logical printer, DEVICES.Sifr
SUMSum in currency Currency
NATIONALSUMSum in national currency

CHECKLISTDATA

GUIDSTRINGGUIDString unique identifier
MIDSERVERCash server identifier, link to CashGroups.Sifr
ICOMMONSHIFTCommon shift number, link to GLOBALSHIFTS.ShiftNum
SIFRIdentifier of check list item, link to CHECKLISTITEMS.Sifr
UNIRecord unique identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
FINISHEDMarker of check list item being executed
NUMBERHow many times this check list was executed during the current shift
FILLINGQULITYGrade of check list item execution (if the grade must be specified for the item)

CHECKLISTDATADETAILS

Check lists details

GUIDSTRINGGUIDString unique identifier
MIDSERVERCash server identifier, link to CashGroups.Sifr
CHECKLISTUNIIdentifier of filled check list to which these details relate, link to CHECKLISTDATA.UNI
STATIONIDIdentifier of station at which check list was filled in, link to CASHES.Sifr 
SIFRIdentifier of check list item, link to CHECKLISTITEMS.Sifr
UNIRecord unique identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
EMPIDIdentifier of employee executing this record, link to EMPLOYEES.Sifr
VALUEGrade put when filling in check list for this item (0 — not filled, or 1 for items without grades, or any grade specified for items)
DATETIMETime/date of filling in this item of check list

CLOCKRECS

Is formed at the cash server for work hours control

MIDSERVERLink to the cash server CashGroups.Sifr
IDENTRecord identifier in table 
EMPIDIdentifier in table EMPLOYEES.Sifr
ROLEIDIdentifier in table ROLES.Sifr
CARDCODECard number
STARTTIMETime of arrival to work
ENDTIMETime of departure
SHIFTSTARTTIMEEmployee's shift start time
SHIFTDURATIONEmployee's shift duration
MAXSHIFTDURATIONMaximum allowed shift duration
ISTARTCOMMONSHIFTLink to common shift when employee came to work GLOBALSHIFTS.Sifr
IENDCOMMONSHIFTLink to common shift when employee left work GLOBALSHIFTS.Sifr
ISTARTSTATIONLink to station at which employee's arrival was registered CASHES.Sifr
IENDSTATIONLink to station at which employee's departure was registered CASHES.Sifr
ISTARTMANAGERLink to manager confirming employee's arrival EMPLOYEES.Sifr
IENDMANAGERLink to manager confirming employee's departure EMPLOYEES.Sifr
DURATIONDuration = End time - Start time (in hours)
RIGHTDURATIONNet duration = Min(end time, shift end) - Max(start time, shift start) (in hours)\intersection of actual time with nominal time
NOENDINGLABELIf employee doesn't check in when max.time is reached
AUTOENTRANCE{unnecessary field}
DELAYBeing late for work in milliseconds
LATENESSMarker of employee being late
MANUALLYCHANGEDClock-in/Clock-out was changed
STATUSItem status
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

CURRLINES

Contains information about payments with regard to currencies

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
CHECKUNILink to receipt PRINTCHECKS.UNI
UNIUnique identifier inside order
SIFRUnique identifier CURRENCIES.Sifr
BINDEDSUMAmount of linked sum
ORIGINALSUMOriginal sum
BASICSUMSum in basic currency
NATIONALSUMSum in national currency
DISBALLANCEDisbalance sum
TAXPAYTYPESIFRApplied tax priviledge TAXPAYTYPES.Sifr
SOURCEORDERIDENTORDERS.IdentInVisit
IHIGHLEVELTYPECurrency type for payment currency CURRENCYTYPES.Sifr
DBKURSExchange rate for currency
GLOBALIDENTCurrency global identifier
DISCLINEUNIDiscount for payment DISHDISCOUNTS.UNI
PAYUNIFOROWNERINFOPayments.UNI, where ORDERIDENT = 0
OWNERINFOAdditional payment information
FISCREGUNFISCTYPEType method for fiscal registers
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DELIVERYDATA

Table with delivery data

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
RESTAURANTIDLink to restaurant RESTAURANTS.Sifr
DELIVERYSTARTTIMEDelivery start time
TRAVELTIMETravel time
DELIVERYTIMEExpected delivery time
DELIVERYREADYTIMEDelivery ready time
ZONEIDDelivery zone identifier
ZONENAMEDelivery zone name
DELIVERYSTATEDelivery status
ORDERPREFIXOrder prefix
FORWARDERSENDTIMECourier's departure time
FORWARDERRETURNTIMECourier's return time
REALDELIVERYTIMEDelivery real time
DELIVERYLASTPROCESSTIMELast processing time
DELIVERYTAKEOUTTakeout order
DELIVERYMINCOOKTIMEMinimal order cooking time
GUIDSTRINGGUIDString unique identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DEFFEREDSYNC

The table is only located in work.udb and is not uploaded to cumulative database.

This table is not used anymore.

It contains data about delayed sync of references, which must be updated only after shift is closed.

REFIDReference identifier, REFTABLES.Sifr
COLLECTIONNAMEReference system name, REFTABLES.Name
DEFFDATAVERSIONData version number, to which reference must update after common shift is closed
DEFFLASTCHANGEDate/Time of last change (not synchronized) of this reference
LASTACTUALIZATIONDate/Time of last delayed sync of this reference

DISCPARTS

Contains information on discounts

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
BINDINGUNILink to sales item, table PAYBINDINGS.UNI
UNIUnique identifier inside order
SIFRUnique identifier
DISCLINEUNIDiscount for payment DISHDISCOUNTS.UNI
DISCOUNTQNTQuantity to which discount is assigned
NONZERODISCNon-zero discount
NONZEROBONUSNon-zero bonus
SUMDiscount sum
BONUSSUMBonus sum
CALCSUMCalculated discount amount before redistribution
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DISHCONSUMATORS

Contains information on dishes sold by consumator.

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
DISHUNILink to dish, table SESSIONDISHES.UNI
SORTORDERClassification number when printing
UNIUnique identifier inside order
SIFRUnique identifier EMPLOYEES.Sifr
ICREATORCreator EMPLOYEES.Sifr
IAUTHORLink to author EMPLOYEES.Sifr
ICREATORROLECreator's role ROLES.Sifr
IAUTHORROLEAuthor's role ROLES.Sifr
CONSUMSUMCash amount received by consumator
PRLISTSUMPart of sum according to price list for one consumator (common value for only consumator)
PAYSUMPart of sum paid to one consumator (common value for only consumator)
BASICSUMPart of total sum of consumation (%)
QUANTITYPart of consumated quantity (common value for only consumator)
CPERCENTPercent of consumation
GLOBALIDENTItem global identifier
GUIDSTRINGUnique GUIDString identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DISHDISCOUNTS

Contains information about discounts/markups, added to order

Tables referring to it: CURRLINES, DISCPARTS

VISITVisit identifier, link to VISITS.Sifr
MIDSERVERCash server identifier, link to CashGroups.Sifr
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
OWNERUNI

Parent record identifier. For discounts for dish — link to SESSIONDISHES.UNI,

For discounts for seat and order — link to ORDERSESSIONS.UNI

SORTORDERSequence number of discount/markup in order, is needed for right order of applying discounts
UNIUnique identifierinside order
SESSIONUNISessiom identifier, link to OrderSessions.UNI
SIFRDiscount/markup identifier, link to DISCOUNTS.SIFR
STATEItem status
Starting with 0:
TDrawItemState = (disNone, disOpened, disLocked, disFixed, disPrinted, disPartClosed, disClosed, disDeleted);
ICREATORIdentifier of employee adding discount/markup, link to EMPLOYEES.Sifr
IAUTHOR

Identifier of employee confirming adding discount/markup or editing it,

link to EMPLOYEES.Sifr

ICREATORROLEIdentifier of creator's role, link to ROLES.Sifr
IAUTHORROLEIdentifier of author's role, link to ROLES.Sifr
ISCHARGEThe "Undistributed markup" flag
EXCLUDEFROMEARNINGSThe "Exclude from income" flag
LOCALIZATION

Localization of discount/markup,possible values:

  • 1 — order discount
  • 2 — seat discount
  • 3 — dish discount
  • 4 — discount for seat in visit
  • 5 — visit discount 
CHARGESOURCEAssignation method of the discounts/markups (automatically, manually, on card and etc.)
VALUECHANGEDThe "Discount/markup value was changed manually" flag
PDSTRANSACTIONThe "PDS transaction is executed" flag, is set for PDS discounts
COUNTTYPEDiscount/markup type
SRCAMOUNTDiscount/markup value
CALCAMOUNTDiscount/markup sum
MAXAMOUNTMaximum amount of discount/markup
DELETEDSUMSum deleted when deleting receipt or transferred when closing common shift
PAYSUMPaid amount in basic currency
CLOSEDPAYSUMPaid amount, may be less than total amount if only part of receipts was paid when calculating order by seats
SEATSeta, to which discount was assigned
UNFISCALOPERATIONThe "Non-fiscal operation" flag
ITAXDISHTYPETax group identifier, is filled for undistributed markups, link to TAXDISHTYPES.Sifr
CARDCODECard number, is filled for PDS discounts
ACCOUNTIDENTNumber of account linked to card, is filled for PDS discounts
GLOBALIDENTDiscount/markup global identifier
BONUSTYPEBonus type identifier, is filled for PDS discounts, link to BONUSTYPES.Sifr
MINTERFACELogical interface identifier, is filled for PDS discounts, link to DEVICES.Sifr
BONUSAMOUNTBonus amount
DEFAULTERDefaulter type identifier, is filled for PDS discounts, link to DEFAULTERTYPES.Sifr
HOLDERHolder of card, for which discount was given, is filled for PDS discounts
CREATETIMEDate/Time of discount creation
GUIDSTRINGUnique GUIDString identifier
PERSONIDIdentifier of employee applying coupon, thus discount was added, link to EMPLOYEES.Sifr
COUPONCOUNTCoupon quantity
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DISHMODIFIERS

Contains information on sold modifiers.

Tables referring to it: SESSIONDISHES

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
DISHUNILink to dish, table SESSIONDISHES.UNI
SORTORDERDish position in modifiers list. If dish has 2 modifiers, than SortOrder = 0 for the first one and SortOrder = 1 for the second.
This field is used to display modifiers in order in which they were added
UNIUnique identifier inside order
SIFRUnique modifier MODIFIERS.Sifr
ICREATORCreator EMPLOYEES.Sifr
IAUTHORLink to author EMPLOYEES.Sifr
ICREATORROLECreator's role ROLES.Sifr
IAUTHORROLEAuthor's role ROLES.Sifr
OPENNAMEModifier open name
PRICEModifier price when creating order in current price type
SRCPRICEOriginal dish amount (before applying voids)
PRLISTSUMModifier amount sum
SRCPRLISTSUMInitial modifier amount sum
PIECESNumber of servings, is used for calculating modifiers quantity
SRCMODICNTInitial number of dish servings (before applying voids)
MODICNTNumber of modifiers for dish
GLOBALIDENTItem global modifier
COMBODISHUNILink to combo dish, which include dish SESSIONDISHES.UNI
GUIDSTRINGUnique GUIDString identifier
FREEMODICNTNumber of free modifiers
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DISHRESTS

Contains information on dish portions

SIFRUnique identifier
QUANTITYQuantity
WEIGHTWeight of per portion dishes
DATETIMEDate/Time of dish rests changes
IAUTHORLink to author EMPLOYEES.Sifr
NOTICEDComments
ABSENTIf flag is enabled, dish is forbidden for sale
ISQNTRESTIs quantity rest
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL.
TRANSACT_GUIDGUIDSTRING record time identifier

DISHVOIDS

Information on voids from receipts

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERIDENTLink to order ORDERS.IdentInVisit
DISHUNILink to dish, table SESSIONDISHES.UNI
SORTORDERClassification number when printing
UNIUnique identifier inside order
SIFRUnique identifier ORDERVOIDS.SIFR
ICREATORCreator EMPLOYEES.Sifr
IAUTHORLink to author EMPLOYEES.Sifr
ICREATORROLECreator's role ROLES.Sifr
IAUTHORROLEAuthor's role ROLES.Sifr
SESSIONUNILink to block, field of table OrderSessions.UNI
VOIDSESSIONUNILink to block with void, field of table OrderSessions.UNI
COMBOVOIDUNI

Identifier of combo deletion record. When combo is deleted, voids both for combo and its components are created. 

Is filled for combo component, refers to deleting parent combo dish. Link to DISHVOIDS.UNI

OPENNAMEOpened name of the order void
PIECESNumber of deleted portions
QUANTITYQuantity of deleted dish
PRLISTSUMPrice * Quantity
DATETIMEDate and time of dish deletion
GLOBALIDENTItem global identifier
PRINTEDIf void is printed or not
SAVEDATETIMEDate and time of saving order 
STOREDINFMThe "Void information is recorded in fiscal module" flag
AFTERBILLUNDOBill was cancelled before deletion
GUIDSTRINGUnique GUIDString identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
ISUNPRINTEDDISHThe "Deleted dish was not printed". 1 — was not printed, other values — was printed
TRANSACT_GUIDGUIDSTRING record time identifier

DRAWERLOG

Contains information on operations with drawers

MIDSERVERCash server identifier, link to CashGroups.Sifr
UNIRecord unique identifier
ICOMMONSHIFTCommon shift number, link to GLOBALSHIFTS.ShiftNum
DRAWERIDLogical drawer identifier, link to DEVICES.Sifr
WAITERIDIdentifier of employee performing operation, link to EMPLOYEES.Sifr
OPENTIMETime of cash drawer opening
CLOSETIMETime of cash drawer closing
OPEROperation identifier, link to OPERATIONS.Sifr
KIND

Reason for opening drawer, possible values:

  • 0 — Drawer opened manually
  • 1 — Drawer opened by program
VISITVisit identifier, link to VISITS.Sifr
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
TRANSACT_GUIDGUIDSTRING record time identifier

EXTERNALIDS

Order extended properties

VISITVisit identifier, link to VISITS.Sifr
MIDSERVERCash server identifier, link to CashGroups.Sifr
ORDEROrder identifier, link to ORDERS.IdentInVisit
EXTSOURCEName of extended properties — GUIDString for properties added to extended properties reference or one specified when adding name for the rest
EXTIDExtended propertise value
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

EXTRATABLES

Information on additional tables for order

VISITVisit identifier, link to VISITS.Sifr
MIDSERVERCash server identifier, link to CashGroups.Sifr
ORDEROrder identifier, link to ORDERS.IdentInVisit
TABLETable identifier, link to TABLES.Sifr
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

FINANCEDOCUMENTS

Financial documents, are created either at cash station based on printed documents (then RefNo = 72) or in financial module based on financial documents layouts (RefNo = 205)

MIDSERVERCash server identifier, link to CashGroups.Sifr
UNIRecord unique identifier
GUIDSTRINGUnique GUIDString identifier
STATUS

Satus, possible values:

  • 0 — draft
  • 1 — posted
  • 2 — deleted
DOCTYPE
  • If RefNo = 72, then document type identifier is specified in field, link to DOCUMENTS.Sifr
  • If RefNo = 205, then field contains identifier of financial documents layout, based on which document is created, link to CASHFLOWOPERATIONTYPES.Sifr
BASEDOCLINKGUIDString of parent document
CREATEDATEDate and time of document creation
DOCUMENTDATEDocument date
COMMITDATEDate and time of document posting
AUTHORIDAuthor's identifier, link to EMPLOYEES.Sifr
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
REFNO

Document type identifier, possible values:

  • 72 — reference of documents for printing
  • 205 — reference of financial documents layouts
RESTAURANTRestaurant identifier, link to RESTAURANTS.Sifr
ENTITYLegal entity identifier, link to ENTITIES.Sifr

FINANCETRANSACTDETAILS

Details of financial documents transactions

MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
TRANSACTIONUNIIdentifier of transaction, linked with these details, link to FINANCETRANSACTIONS.UNI
UNIRecord identifier
TRANSACTIONGUIDUnique GUIDString identifier
KIND

Details type, possible values:

  • 1 — debit
  • -1 — credit
ACCOUNTIDAccount identifier, link to FINANCEACCOUNTS.SIFR
REFNOIdentifier of reference from which object is chosen (in field ObjID)
OBJIDIdentifier of object linked with document posting (link to reference, specified in RefNo)
ENTITYIDLegal entity identifier, link to ENTITIES.SIFR
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

FINANCETRANSACTIONEXT

Table contains additional fields for financial documents, which are recorded in database according to key-value principle

TRANSACTIONGUIDGUID- of financial document or GUID- of financial item, FINANCEDOCUMENTS.GuidString or FINANCETRANSACTIONS.GuidString
KEYNAMEField name, line [200]
EXTVALUEField value, line [200]

FINANCETRANSACTIONS

MIDSERVERINTCash server identifier, link to cash server CashGroups.Sifr
UNIINTRecord identifier
ICOMMONSHIFTINTCommon shift number, link to GlobalShifts
GUIDSTRINGString(38)Unique GUIDString identifier
OPERATIONDATEDateTimeOperation date
TRANSACTIONTYPEINTIdentifier of financial document layout, link to CashFlowOperationTypeDetails
AUTHORIDINTIdentifier of transaction author, link to Employees
INDOCLINKString(38)GUID of document linked with this transaction
CASHFLOWDETAILINTIdentifier of cash flow item, link to FinanceCashFlowDetails
AMOUNTMONEYTransaction amount
COMMENTString(255)Comment
DOCUNIINTIdentifierof document type, linked with transaction, link to Documents
DBSTATUSINTIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
SEQNUMINTSequence number, is needed for right sequence of transactions
STATUSINT
  • 0 — draft
  • 1 — posted

FISCALREGISTERS

Таблица содержит данные об использованных в течении смены фискальных регистраторах и в накопительную базу не выгружается

DEVICELogical printer identifier, DEVICES.Sifr
STATIONIdentifier of cash station, to which fiscal register is connected, CASHES.Sifr
EXTFISCIDID of fiscal register
SHIFTNUMCash shift number
PRINTNUMNumber of printed documents
FIRSTDOCDate and time of first document printing
CLOSEDATDate and time of Z-report last printing
NEEDCLOSEThe "Z-report needs to be printed" flag — if when closing common shift, fiscal register was unavailable and Z-report was not printed
UNUSABLEFlag — if fiscal register was not used since closing common shift
SALEDSUMSum of sales at fiscal register in this fiscal shift
INCLOSECH_VISITIs filled when receipt is printed. Contains link to visit, whose receipt is sprinted at this moment, VISITS.Sifr
INCLOSECH_ORDERIDENTIs filled when receipt is printed. Contains link to order, whose receipt is sprinted at this moment, ORDERS.IdentInVisit
INCLOSECH_UNIIs filled when receipt is printed. Contains link to UNI-receipt, PRINTCHECKS.UNI
INCLOSECH_MIDSERVERIs filled when receipt is printed. Contains link to cash server, whose receipt is sprinted at this moment, CASHGROUPS.Sifr
INCLOSECH_CLOSESTATIONIs filled when receipt is printed. Contains link to cash station, at whcih receipt printing was launched, CASHES.Sifr
INCLOSECH_MAKETIDIs filled when receipt is printed. Contains link to layout used for receipt printing, MAKETSCHEMEDETAILS.Sifr

GENERATORS (work.udb)

System table, contains information on generators

SIFRUnique identifier
NAMEItem name in main language
VALUEPrice constant value
RECSTAMPGUIDSTRING record time identifier

GLOBALSHIFTS

Формируется на кассовом сервере информация о сменах работы ресторана

MIDSERVERLink to cash server CashGroups.Sifr
SHIFTNUMShift internal number
GUIDSTRINGUnique GUIDString identifier
CREATETIMEShift start time
STARTTIMETime of first order creation by shift employee
CLOSETIMEShift closing time
IMANAGERShift manager EMPLOYEES.Sifr
SHIFTDATELogical data (can be added)
CLOSEDIf shift is closed or not (for cash reports)
SENDEDShows that cash server is aware of table being sent to manager station
IBASICCURRENCYLink to basic currency CURRENCIES.Sifr
INATIONALCURRENCYLink to national currency CURRENCIES.Sifr
IRESTAURANTLink to restaurant RESTAURANTS.Sifr
ORIGINALSHIFTDATEShift lasting at closing moment, if logical date was changed
SHIFTLOADDATETIMEDate and time the shift was loaded at
STATUSItem status
FLAGSShift system flags
TRANSACT_GUIDGUIDSTRING record time identifier

GUESTREPLIES

Cumulative table, is formed at cash server, contains information on guests feedback.

MIDSERVERLink to cash server CashGroups.Sifr
SIFRUnique identifier
DATETIMETime
OBJREFNOLink to table in REFTABLES.Sifr
OBJIDENTObject identifier (Sifr) in table, to which ObjRefNo refers
GUESTCODELink to guest's code from external system
RATINGRating
COMMENTFeedback
TRANSACT_GUIDGUIDSTRING record time identifier

HARDWAREINFO

Таблица содержит информацию по оборудованию на кассовом сервере

SERVERIDCash server identifier, link to CASHGROUPS.Sifr
RECORDIDRecord unique number
OBJREFNOLink to table in REFTABLES.Sifr
OBJIDENTObject identifier (Sifr) in table to which ObjRefNo refers
CPUCOUNTNumber of CPU
RAMCOUNTRAM value (in Mb)
OPSYSTEMWindows version number
CPUSLIST

Line with detailed information on CPU, looks like:

0.6.140.1;0.6.140.1;0.6.140.1;0.6.140.1;

where

  • 0 —  CPU type
  • 6 — family
  • 140 — model
  • 1 — stepping
HDDSLISTLine with detailed information about connected HDDs, looks like C:\/228373/4374;D:\/953866/460895,
where letter is disk's letter, figure is disk's volume in Mb
TRANSACT_GUIDGUIDSTRING record time identifier

INFO

Additional information on current state of cash server

DELIVERYRESTSTATE

Delivery status in restaurant, possible values:

  • 0 — delivery orders are not currently accepted
  • 1 — restaurant accepts delivery orders
DELIVERYRESTTIMEPlanned time for restarting delivery orders acceptance (if DELIVERYRESTSTATE = 0)
HARDSHUTDOWNThe "Computer was restarted without stopping cash server" flag
HTTPNOTFURLSList of Http Order Notify driver's subscriptions addresses
ENTITYVERSIONLast version of downloaded data for entity.udb

INTFTRANSACTIONS

Information on executed PDS/farcards transactions

VISITVisit identifier, link to VISITS.SIFR
MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
CHECKUNIIdentifier of record with receipt, to which this transaction relates, link to PRINTCHECKS.UNI
MINTERFACELogical interface identifier, link to DEVICES.SIFR
SEQNUMTransaction sequence number, ensures unicity
CARDCODECard number
KIND

Transaction types, possible values:

  • 0 — from upper server, payment/return
  • 1 — from cash station, payment/return
  • 2  — discount
  • 3 — from computer, payment/return
  • 4 — payment cansellation from cash station (receipt deletion)
  • 5 — discount cancellation from cash station (receipt deletion)
  • 7 — bonus
  • 8 — spent cash
  • 9 — card number change
  • 10 — discount level change
EXTSUBACCOUNTSubaccount number, by default for spent amounts and accounts = 0, for write-offs and bonuses = 1
ORDERLink to order ORDERS.IdentInVisit
LINEGUIDGUIDString of record with discount for which transaction was added, link to DISHDISCOUNTS.GUIDSTRING
LINEUNIIdentifier of record with discounts, for which transaction is added, link to DISHDISCOUNTS.UNI
LINETAG

Action causing transaction, possible values (line):

  • PAYMENT
  • DISCOUNT
EXTPLACEIDExternal identifier of transaction execution place, is sent by external system
EXTTRANSACTIONIDTransaction external identifier, is sent by external system
EXTINFOAdditional information for transactions, comment
VALUETransaction sum
EXTDATETIMEnnn
ISTATIONStation identifier, link to CASHES.SIFR
TRANSACT_GUIDGUIDSTRING record time identifier

INVOICES

Contains invoice information

MIDSERVERCash server identifier, CASHGROUPS.SIFR
UNIRecord identifier inside order
VISITVisit identifier, link to VISITS.SIFR
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
CHECKUNIIdentifier of record with receipt, link to PRINTCHECKS.UNI
TABLEVERRecord number in entity.udb (for entity.udb synchronization between cash servers)
IAUTHORAuthor's identifier, link to EMPLOYEES.SIFR
ENTITYIDIdentifier of counterparty from entity.udb
INVOICENUMInvoice number
REGNORegistration number
NAMECounterparty name
ADDRESSLegal address
EXTRAINFOExtra details of organization
COMMENTComment in main language
DATETIMEDate and time of invoice creation
PRINTEDThe "Invoice is printed" flag
MAKETDATAPrinting slip of invoice
GUIDSTRINGUnique GUIDString identifier
COUNTRYCountry
REGIONRegion
CITYCity
STREETStreet
HOUSEHouse
BUILDINGBuilding
ENTRYEntry
INTERCOMEntry phone number
FLOORFloor number
APARTMENTSFlat
ADDRDOPINFOAddress additional info
METROSTATIONMetro station
ZIPCODEZIP code
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

KDSDATA

Contains information about KDS — kitchen display system.

Tables referring to it: SESSIONDISHES

KDSSIFRRecord identifier
MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
VISITIDVisit identifier, link to VISITS.SIFR
KDSSTATE

Dish KDS-status, possible values:

  • 1 —  Sent
  • 2 —  Cooking started
  • 3 — Ready
  • 4 — Taken
  • 5 — Order is being collected
  • 6 — Order is collected
  • 7 — To place order to parking
  • 8 — To take order away from parking
  • 9 — Delete
KDSFLAGS

Additional flags for KDS, possible values:

  • 1 — can be deleted 
SENTATDate and time when order was sent for execution
INITATCooking start date and time
DONEATDate and time when kitchen prepared order
TAKEATDate and time when kitchen received order
COLLECTATDate and time of order collecting start
COLLECTEDATDate and time of order collecting end
STARTPARKATDate and time of placing order to parking
ENDPARKATDate and time of taking order away from parking
COOKTMCook time in minutes
MENUCOOKTIMENominal time in minutes
MENUCATEGORYMenu category identifier, link to CLASSIFICATORGROUPS.SIFR
SERVPRINTNUMService printing number
SENTMANAGERIDIdentifier of employee, who sent order to KDS (saved order), link to EMPLOYEES.SIFR
INITMANAGERIDIdentifier of employee, who started cooking, link to EMPLOYEES.SIFR
DONEMANAGERIDIdentifier of employee, who marked order as ready, link to EMPLOYEES.SIFR
TAKEMANAGERIDIdentifier of employee, who marked order as taken away, link to EMPLOYEES.SIFR
COLLECTMANAGERIDIdentifier of employee, who started collecting order, link to EMPLOYEES.SIFR
COLLECTEDMANAGERIDIdentifier of employee, who finished collecting order, link to EMPLOYEES.SIFR
STARTPARKMANAGERIDIdentifier of employee, who sent order to parking, link to EMPLOYEES.SIFR
ENDPARKMANAGERIDIdentifier of employee, who took order away from parking, link to EMPLOYEES.SIFR
KDSSTATIONIDStation identifier, link to CASHES.SIFR
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time ifentifier

MCRPAYMENTS

MCR payments on order (personalized payments)

VISITVisit identifier, link to VISITS.SIFR
MIDSERVERCash server identifier, link to CASHGROUPS.SIFT
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
UNIIdentifier of record inside order
SIFRCurrency identifier, link to CURRENCIES.SIFR
INPUTTYPE

Way of adding payment, possible values:

  • 0 — Manually
  • 1 — Magnetic card
  • 2 — Dallas
  • 3  — Paying order
  • 4 — Card proxy
  • 5 —  Barcode
  • 6 — XML
PAYLINETYPE

Currency type, possible values:

  • 0 — Cash
  • 1 — Bank cards
  • 2 — Hotel cards
  • 3 — Payment cards
  • 4 — Exclude from revenue, for false change
  • 5 — Non-cash payment
  • 6 — Coupon for dish
  • 7 — Repurchased dish
OWNEROwner, is filled for payment cards
CARDNUMCard number
ACCOUNTIDENTAccount number, linked with card, is filled for payment cards
EXPDATEExpiration date
AUTHCODEAuthorization code for bank card
TRACK2Not used
MAXAMOUNTMaximum sum available for payment
ADDBYINTERFACELogical interface identifier, link to DEVICES.SIFR
DEFAULTERDefaulter type, link to DEFAULTERTYPES.SIFR
EXTTRANSACTIONINFOAdditional information on payment
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

MESSAGEBUTTONS

Information on available buttons for messages to waiter

MESSAGEIDENTMessage identifier, link to MESSAGES.SIFR
UNIRecord identifier
IMAGEINDEXIdentifier of image for button, link to IMAGENODES.SIFR
CAPTIONButton text
BROWSEURLURL to follow when clicking the button 
HTTPCALLURLURL, to which POST request must be sent when clicking the button
GUIDSTRINGUnique GUIDString identifier
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

MESSAGES

Messages to waiter

IDENTIdentifier of record with message
IEMPLOYEEIdentifier of employee to whom message must be shown, link to EMPLOYEES.SIFR
IAUTHORIdentifier of employee who added message, link to EMPLOYEES.SIFR
EXPIREDATEDate and time of message expiration, after which message will be deleted
TEXTMessage text
MESSAGETYPE

Message type, possible values:

  • 0 — no type
  • 1 — to call waiter from table
  • 2 — Monitor
  • 3 — Dish ready message from KDS
  • 4 — Dish ready message from service printing
  • 5 — Error message
  • 6 — Call from pager
  • 7 — Script from cash station
  • 8 — Script from server
  • 9 — XML-interface
  • 10 — Message from license system
  • 11 — Message from rater
  • 12 — Message on system time change
  • 13 — Message from manager station
  • 14 — Message from second screen
  • 15 — Message on soon common shift closing
  • 16 — Request for locking order
PARAMETERMessage parameter
FROMSTATIONIdentifier of station from which message was sent, link to CASHES.SIFR
STATIONIdentifier of station at which only message must be displayed, link to CASHES.SIFR
ADDEDATDate and time of message coming
REPEATCOUNTRepeat number
EXTIDMessage external identifier
VISITVisit identifier, link to VISITS.SIFR
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
ONDELETEURLURL for which GET-request must be called when deleting message
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

NEEDCLOSECHECK

Table contains information on receipts whose printing was started but not finished.

VISITVisit identifier, link to VISITS.SIFR
MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
UNIIdentifier of record with receipt
ORDERIDENTLink to order ORDERS.IdentInVisit
DEVICELogical printer identifier, link to DEVICES.SIFR
MAKETIDDocument view identifier, link to MAKETSCHEMEDETAILS.SIFR
CLOSESTATIONIdentifier of cash station, from which receipt printing was started, link to CASHES.SIFR

OPERATIONLOG

Executed operation log

MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
SIFRRecord identifier
VISITVisit identifier, link to VISITS.Sifr
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
ICOMMONSHIFTCommon shift number, link to GLOBALSHIFTS.SHIFTNUM
DATETIMEDate and time of operation execution
STATIONStation identifier, link to CASHES.SIFR
OPERATIONOperation identifier, link to OPERATIONS.SIFR
PARAMETERParameter for operation execution
OPERATORIdentifier of employee who executed operation, link to EMPLOYEES.SIFR
OPERATORROLEIdentifier of role of employee who executed operation, link to EMPLOYEEGROUPS.SIFR
MANAGERIdentifier of employee who confirmed operation execution, link to EMPLOYEES.SIFR
MANAGERROLEIdentifier of role of employee who confirmed operation execution, link to EMPLOYEEGROUPS.SIFR
MENUITEMDish identifier, if operation is related to dish, link to MENUITEMS.SIFR
QNTDish quantity, if operation is related to dish
MAKETSCHEMEDETAILDocument view identifier, if operation is related to printing, link to MAKETSCHEMEDETAILS.SIFR
SESSIONUNIIdenifier of record with session containing object of operation, link to ORDERSESSIONS.SIFR
ORDERSUMBEFOREOrder sum before operation execution
ORDERSUMAFTEROrder sum after operation execution
REASONIDIdentifier of void reason related to operation being executed, link to ORDERVOIDS.SIFR
TRANSACT_GUIDGUIDSTRING record time identifier

ORDERS

Cumulative table, is formed at cash server.

Tables referring to it:TARIFFDATA, TAXPARTS, CURRLINES, DISCPARTS, DISHDISCOUNTS, DISHCONSUMATORS, DISHMODIFIERS, DISHVOIDS, SESSIONDISHES, INVOICES, OPERATIONLOG, ORDERSESSIONS, PAYBINDINGS, PAYMENTS, PAYMENTSEXTRA, PRINTCHECKS, SELECTORDETAILS, SERVICECHECKS, EXTRATABLES, EXTERNALIDS, ORDERWAITERS

VISITVisit identifier, link to VISITS.SIFR
MIDSERVERCash server identifier, link to CashGroups.Sifr
IDENTINVISITIdentifier of record with order
ICREATORCreator's identifier, link to EMPLOYEES.Sifr
IAUTHORAuthor's identifier, link to EMPLOYEES.Sifr
ICREATORROLEIdentifier of creator's role, link to ROLES.Sifr
IAUTHORROLEIdentifier of author's role, link to ROLES.Sifr
ILASTUSERIdentifier of employee, last saving order, link to EMPLOYEES.Sifr
FLAGSOrder flags, bit mask. If number is odd, order is locked
GUESTSCOUNTGuests number
LASTSERVICEDate and time of order last serving
NUMONTABLEIs used when more than one company is placed at one table
OPENTIMEDate and time of order creation
TABLEIDTable identifier, link to TABLES.Sifr
TABLENAMETable name 
ORDERNAMEOrder name (table number + NUMONTABLE)
PROMOCODEPromo-code
COTOrder type identifier, link to CHANGEABLEORDERTYPES.Sifr
UOTOrder category identifier, link to UNCHANGEABLEORDERTYPES.Sifr
DEFAULTERDefaulter type identifier, link to DEFAULTERTYPES.Sifr
IBASICCURRENCYIdentifier of currency being basic when order was closed, link to CURRENCIES.Sifr
INATIONALCURRENCYIdentifier of currency being national when order was closed, link to CURRENCIES.Sifr
ICOMMONSHIFTCommon shift number, link to GLOBALSHIFTS.SHIFTNUM
MAINWAITERIdentifier of order's main waiter, link to EMPLOYEES.Sifr
BRIGADEIdentifier of brigade to whicj main waiter belongs, link to BRIGADES.Sifr
STARTSERVICEDate and time of starting adding first dish to order
ENDSERVICEDate and time of closing order (payment)
DURATIONOrder duration (in seconds)
FINISHEDSERVICEMarker of ready order (1 — ready; 0 — not ready)
PAIDOrder is paid (1 — paid; 0 — not paid)
ISBANQUETMarker of banquet order
BANQUETSTATE

Status of reserve order, is filled only for open orders, possible values:

  • Usual order
  • Active banquet (for which service printing is finished)
  • Today banquet
  • Future banquet
PRICELISTSUMSum according to price list including modifiers without discounts
TOPAYSUMSum to pay in basic currency
PAIDSUMPaid sum in basic currency
UNCLOSEDPRICESUMNon-paid sum according price list
UNCLOSEDPREPAYSUMUnused prepayment sum
DISCOUNTSUMDiscount sum
TOTALDISHPIECESSum of portions of order's all dishes
INVOICEUNIIdentifier of record with invoice, link to INVOICES.UNI
ORIGINALORDERIDIdentifier of original order (if order was transferred to another shift), link to ORDERS.IdentInVisit
STATE

Is not used

LASTCHECKUNIIdentifier of record with receipt, link to PRINTCHECKS.UNI
STATIONIDStation identifier, link to CASHES.Sifr
SEQNUMBEROrder sequence number
CRC32Control sum of order content
GUIDSTRINGUnique GUIDString identifier
FISCORDERSTATE

Order fiscal status, possible values:

  • 0 — No status
  • 1 — Created
  • 2 — Bill
  • 3 — Receipt
KDSState

KDS status of order dishes (a minimum KDS status is chosen), possible values:

  • 1 — Sent
  • 2 — Cooking started
  • 3 — Ready
  • 4 — Taken
  • 5 — Order is being collected
  • 6 — Order is collected
  • 7 — To place order at parking
  • 8 — To take order away from parking
  • 9 — Deleted
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

ORDERSESSIONS

Cumulative table, is formed at cash server.

Information on block, order may contain several blocks (additional order, different time of serving, etc.)

Tables referring to it: DISHDISCOUNTS, DISHVOIDS, SESSIONDISHES, OPERATIONLOG, PAYMENTS, PRINTCHECKS, PAYMENTS, PRINTCHECKS

VISITVisit identifier, link to VISITS.SIFR
MIDSERVERCash server identifier, link to CASHGROUPS.SIFR
ORDERIDENTOrder identifier, link to ORDERS.IdentInVisit
UNIUnique identifier inside order
SORTORDERSequence of blocks in order
STATE

Status, possible values:

  • 1 — Open
  • 2 — Locked (not used)
  • 3 — Fixed (bill)
  • 4 — Printed
  • 5 — Partially paid
  • 6 — Closed
  • 7 — Deleted
ICREATORCreator's identifier, link to EMPLOYEES.Sifr
IAUTHORAuthor's identifier, link to EMPLOYEES.Sifr
ICREATORROLEIdentifier of creator's role, link to ROLES.Sifr
IAUTHORROLEIdentifier of author's role, link to ROLES.Sifr
ISESSIONTYPE

Way of block creation, possible values:

  • 0 — Block is created automatically
  • 1 — Block is created manually
  • 2 — Block is result of dishes transfer between orders
  • 3 — Block is result of orders transfer when closing common shift
  • 4 — Block is result of union orders
  • 5 — Block is result of XML request call
  • 6 — Block is result of dish return
STARTSERVICEDate and time of dish, that was first added to block
ENDSERVICEDate and time of block last saving
IPRICESCALEPrice type identifier, link to PRICETYPES.SIFR
IPERIODPeriod identifier, link to PERIODS.SIFR
ITRADEGROUPCommodity group identifier, link to TRADEGROUPS.Sifr
ISTATIONIdentifier of station at which block was created, link to CASHES.Sifr
EXTRAVISIT

Identifier of original visit from which dishes were transferred, link to VISITS.SIFR

EXTRAORDERIDENTIdentifier of original order from which dishes were transferred, link to ORDERS.IDENTINVISIT
EXTRAUNIIdentifier of original block from which dishes were transferred, link to ORDERSESSIONS.UNI
COMMONVISIT

Identifier of visit in which block was created (first ancestor), link to VISITS.SIFR

COMMONUNI

Identifier of block, based on which current block was created (first ancestor), link to ORDERSESSIONS.UNI

IKURSServing sequence identifier, link to KURSES.SIFR
PRINTFLAG

Printing flag while printing, possible values:

  • 0 — No need to print
  • 1 — To print as soon as possible
  • 2 — To print when it is time to print
  • 3 — Error when printing
PRINTATDate and time when block must be printed (was printed)
REMINDFLAGPrint remainder flag, see possible values in PRINTFLAG
REMINDATDate and time when remainder must be printed (was printed)
READYFLAGPrint flag for readiness time, see possible values in PRINTFLAG
READYATDate and time till which dishes must be served (if set)
OPENKURSNAMEOpen (user) name for serving order
SESSIONFLAGS

Block flags, bit mask, bits values:

  • Bit 1 — Marker that this session is service line
  • Bit 2 — Empty block
  • Bit 3 — Block for voids
  • Bit 4 — Not to print block (temporarily)
  • Bit 5 — Block with receipts
  • Bit 6 — Block contains dishes
  • Bit 7 — Waiter is informed about oncoming printing time 
  • Bit 8 — Waiter is informed about oncoming notification printing time
  • Bit 9 — Course was changed manually
  • Bit 10 — Printed block contains unprinted dishes (they must be printed)
  • Bit 11 — Draft block
  • Bit 12 — New block, added during current editing session
  • Bit 13 — Waiter is notified about dishes being ready
GLOBALIDENTElement global string identifier
IPRINTSERVICESCHEMEIdentifier of service scheme used for first service print, link to SERVICESCHEMES.Sifr
IREMINDSERVICESCHEMEIdentifier of service scheme used for notification service print, link to SERVICESCHEMES.Sifr
KDSSTATE

KDS status of block (minimum status of block dishes), possible values:

  • 1 —  Sent
  • 2 —  Cooking started
  • 3 — Ready
  • 4 — Taken
  • 5 — Order is being collected
  • 6 — Order is collected
  • 7 — To place order to parking
  • 8 — To take order away from parking
  • 9 — Delete
NORMTIMENominal cooking time of block dishes (maximum cooking time of dishes), in minutes
UNIQUEIDUnique number of block within cash server, is generated based on generator OrderSessGenID
GUIDSTRINGUnique GUIDString identifier of block
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
ICOSTSCALEIdentifier of cost price type, link to PRICETYPES.SIFR
TRANSACT_GUIDGUIDSTRING record time identifier

ORDERWAITERS

Cumulative table, is formed at cash server
Contains information on waiters, who serve order

VISITLink to visit VISITS.Sifr
MIDSERVERLink to cash server CashGroups.Sifr
ORDERLink to order ORDERS.IdentInVisit
WAITERLink to employee EMPLOYEES.Sifr
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING record time identifier

 According to a Lithuanian law, the bar and restaurant cash register software must print the quantity and amounts of unpaid proforma invoices on the control tape when printing the Z report.

Thus, when the common shift is closed, it is necessary to print a report containing the number and sums of all cancelled bills.

The necessary functionality is implemented in 7.05.04.148. When canceling a bill (if the bill was printed), a record about it is saved in the PRINTCHECKS table of receipts.

These records have the following parameters:

DELETED=1
ISBILL=1
IGNOREINREP=1

Included in versions 7.5.5.12 and 7.05.04.148

Now, when a bill is canceled (if the bill was printed), a record about it is saved in the PRINTCHECKS check table.

Such records have the following parameters:

DELETED=1
ISBILL=1
IGNOREINREP=1

PRINTCHECKS

Cumulative table, is formed at cash server, contains information on receipts.

Tables referring to it: CURRLINES, INVOICES, ORDERS, PAYMENTS, SHIFTS

VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR
!UNIintegerIdentifier of record inside orderаказа

ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)


SESSIONUNIintegerUNI of session

(VISIT, MIDSERVER, SESSIONUNI) →

ORDERSESSIONS(VISIT, MIDSERVER, UNI)


STATE


Item status



ICREATORintegerIdentifier of employee who paid receiptEMPLOYEES.SIFR

IAUTHORinteger

Identifier of employee who confirmed receipt payment

EMPLOYEES.SIFR


ICREATORROLEintegerIdentifier of creator's roleROLES.SIFR

IAUTHORROLEintegerIdentifier of author's roleROLES.SIFR

CLOSEDATETIMEdatetimeDate and time of receipt printing

BILLDATETIMEdatetimeDate and time of bill printing

STARTDATETIMEdatetimeDate and time of receipt calculation start

DRAWERDATETIMEdatetimeDate and time of cash drawer closing

ICLOSESTATIONintegerIdentifier of station where receipt printing was startedCASHES.SIFR

FLAGS

integer

Flags of record with receipts, bit mask, bits purpose:

  • 1 — To fix results, not to calculate them based on order content



ISHIFTintegerCash shift number

(MIDSERVER, ISHIFT) →

SHIFTS(MIDSERVER, SHIFTNUM)


IFISCSHIFTintegerNumber of fiscal shift of fiscal register

IPRINTSTATIONintegerIdentifier of station, at which receipt was printedCASHES.SIFR

IDRAWERintegerCash drawer identifierDEVICES.SIFR

IPRINTERintegerPrinter identifierDEVICES.SIFR

EXTFISCIDnvarchar(35)Internal identification number of fiscal register, at which receipt was printed

PRINTNUMBERintegerPrinted number of receipt

CHECKNUMintegerReceipt number

PARENTCHECKNUMintegerParent receipt number (in case of splitting receipt by classifications)

GUESTCNTintegerNumber of guests in receipt

SEATintegerSeat, for which receipt was printed

DELETEDsmallintThe «Receipt deleted»‎ flag

UNDOTRANSACTIONS

smallint

The «Transactions by receipt were executed»‎ flag (in case of receipt printing error, transactions are sent to external systems separately, and receipt is also separately printed)



DELETEDATETIMEintegerDate and time of receipt deletion

BASICSUMmoneySum in basic currency

BINDEDSUMmoneySum in receipt by dishes

NATIONALSUMmoneySum in national currency

FISCALSUMmoneyFiscal sum

PRLISTSUMmoneySum according to price list taking modifiers into account (excluding discounts)

DISCOUNTSUMmoneyDiscount sum for receipt

TOPAYSUM

bigint

Sum to be paid — for paid receipts it is equal to 0, for unpaid receipts it contains sum which should be paid)



DISHPRICELISTSUMbigintDish price according to price list

CHARGEPRICELISTSUMbigintMarkups amount according to price list

TAXSUMmoneyTax sum in basic currency

TAXSUMADDEDmoneySum of added tax (sales tax)

BONUSSUMmoneyBonus sum in basic currency

GLOBALIDENTnvarchar(32)Element global identifier

PRINTTRYintegerNumber of receipt printing tries

ISBILLsmallintThe «Is bill» flag‎

IVOIDintegerIdentifier of receipt voidORDERVOIDS.SIFR

OPENVOIDNAMEnvarchar(40)Open (user) name of receipt void

IDELETEPERSONintegerIdentifier of employee who deleted receiptEMPLOYEES.SIFR

IDELETEMANAGERintegerIdentifier of employee who confirmed receipt deletionEMPLOYEES.SIFR

BASICRATEbigintBasic currency rate

WASALLCHANGETOTIPsmallintThe «‎Change was given as tips» flag

BILLERRORsmallintThe «‎Error when printing receipt» flag

INVOICEUNIintegerUNI of invoice

(VISIT, MIDSERVER, INVOICEUNI) →

INVOICES(VISIT, MIDSERVER, UNI)


INVOICEPRINTEDsmallintThe «‎Invoice is printed» flag

COPIESPRINTEDintegerNumber of receipt printed copies

IDRAWERSHIFTintegerDrawer shift number

(MIDSERVER, IDRAWERSHIFT) →

REGISTRATIONS(MIDSERVER, IDENT)


IBUSINESSPERIODintegerBusiness period identifierBUSINESSPERIODS.SIFR

IGNOREINREPsmallntThe «‎Ignore in Report» flag

ISPREPAYRECEIPTsmallntThe «This is fiscal prepayment receipt» flag

ISDEPOSITRECEIPTsmallntThe «This is fiscal cash deposit receipt» flag

ISWITHDRAWALRECEIPTsmallntThe «This is fiscal cash withdrawal receipt» flag

ISTARERECEIPTsmallntThe «This is fiscal repurchasing receipt» flag

SQIintegerService quality index

GUIDSTRINGnvarchar(38)Unique GUIDString identifier

PAYFISCALSUMmoneySum of fiscal payments in national currency

RECEIPTTAXTYPEsmallint

Number of tax type, system will automatically split receipts by these types



BILLPRINTEDsmallintThe «Bill printed» flag

DELETEPRINTNUMBERintegerNumber of receipt deletion document

FISCDOCNUMBERintegerFiscal number of receipt printing document

DELETEFISCDOCNUMBERintegerFiscal number of receipt deletion document

GLOBALFISCALIDnvarchar(255)Global fiscal number of receipt

FISCDEVintegerIdentifier of fiscal registrator typeFISCDEVPARAMS.SIFR

IENTITYDETAILSintegerIdentifier of own legal entity detailsENTITYDETAILS.SIFR

DELETEERRORsmallintThe «Error when deleting receipt» flag

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

PRINTEDDOCUMENTS

Cumulative data: blobs with printed documents slips

RK

Field name

Field type

Description

Link to


OPERATIONIDintegerIdentifier of operation which caused printingOPERATIONS.SIFR
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

DEVICEintegerIdentifier of printer on which document was printedDEVICES.SIFR

DOCUMENTintegerDocument type identifierDOCUMENTS.SIFR

OBJUNIintegerUNI of record for which printing is executed
!SIFRintegerUnique identifier of record

REFSIFR

integer

Parent printed document, if printing is connected with printing several documents

PRINTEDDOCUMENTS.SIFR


QUEUEDTIMEdatetimeDate and time of queueing document for printing

PRINTEDTIMEdatetimeDate and time of document printing

MAKETSCHEMEDETAILintegerDocument view identifierMAKETSCHEMEDETAILS.SIFR

AMOUNTmoneySum in document

DATAIMAGEBLOB with XML with printed document

ISTATIONintegerIdentifier of station at whcih printing was calledCASHES.SIFR

ISHIFTintegerCash shift number

(MIDSERVER, ISHIFT) →

SHIFTS(MIDSERVER, SHIFTNUM)


DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

REGISTRATIONS

Cumulative table, is formed at cash server, contains information on cash drawer registrations.

IDENTIdentifier
MIDSERVERLink to cash server CashGroups.Sifr
ICASHIERLink to cashier
IDRAWERDrawer DEVICES.Sifr
SEQDRAWERNUMSequentional number of drawer (sequention by code)
NUMINCASHSHIFTDay number
CLOSEDShift is closed or not (for cash reports)
ISTARTCOMMONSHIFTLink to common shift in beginning of registration GLOBALSHIFTS.Sifr
IENDCOMMONSHIFTLink to common shift at registration end GLOBALSHIFTS.Sifr
STARTTIMETime when employee started work with specified cash drawer
CLOSETIMETime when employee finished work with specified cash drawer
ISTARTMANAGERLink to manager who started work with cash drawer EMPLOYEES.Sifr
ICLOSEMANAGERLink to manager who finished work with cash drawer EMPLOYEES.Sifr
ISTARTSTATIONLink to station at which work with cash drawer was started CASHES.Sifr
ICLOSESTATIONLink to station at which work with cash drawer was finished CASHES.Sifr
DBSTATUSIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL
TRANSACT_GUIDGUIDSTRING identifier of record time

REGPERS

List of employees registered during shift. This table is not uploaded to cumulative base.

WAITEREmployee identifier, EMPLOYEES.Sifr
POSITIONS
CONFIRMIDENTIdentifier of employee who confirmed registration, EMPLOYEES.Sifr
DRAWERIdentifier of logical drawer (in case of drawer registration), DEVICES.Sifr
LASTORDERIdentifier of last edited order, int64 (first part — VISITS.Sifr, second part — ORDERS.IdentInVisit)
FLAGS

Flags (bit mask):

  • 1 — Hall plan mode in order choice window
  • 2 — Marker that registration must be cancelled after session end
  • 3 — The «Not to open Personnel Registration Window automatically»‎ flag
  • 4 — Raters mode in order choice window
  • 5 — The «Not to open Clock-in/Clock-out form automatically»‎ flag
  • 6 — The «To turn display when logging in»‎ flag
  • 7 — The «To consider Cash Station parameter enabled»‎ flag
WTRFRMSORTMODEOrder sorting mode in order choice form (operations identifier from Sorting operations group), OPERATIONS.Sifr
RETURNDATA
Is filled when returning goods, contains information on original order from which goods are returned.
VISITCurrent visit identifier, VISITS.Sifr
MIDSERVERIdentifier of current cash server, CASHGROUPS.Sifr
ORDERIDENTIdentifier of current order, ORDERS.IdentInVisit
RETURNVISITIdentifier of original (returned) visit, VISITS.Sifr
RETURNMIDSERVERIdentifier of cash server, at which original order was sold, CASHGROUPS.Sifr
RETURNORDERIDENTIdentifier of original (returned) order, ORDERS.IdentInVisit
RETURNCHECKUNIIdentifier of original (returned) receipt, PRINTCHECKS.UNI
RETURNSTATIONIDIdentifier of station, at which original order was sold, CASHES.Sifr
RETURNCHECKNUM

Number of original (returned) receipt, PRINTCHECKS.CheckNum

RETURNCHECKDATETIMEDate and time of original (returned) receipt sale, PRINTCHECKS.CloseDateTime
RETURNNEXTFISCIDID of fiscal register, at which original (returned) receipt was sold, PRINTCHECKS.ExtFiscID
RETURNPRINTNUMBERPrint number of original (returned) receipt, PRINTCHECKS.PrintNumber
RETURNUNFISCDOCNUMBERNumber of fiscal document of original (returned) receipt, PRINTCHECKS.FiscDocNumber
RETURNREASONIDIdentifier of reason for goods return, ORDERVOIDS.Sifr
RETURNORDERXMLXML with original order content (in GetOrder format)
RETURNGLOBALFISCALIDGlobal number of original (returned) receipt, PRINTCHECKS.GlobalFiscalId
RETURNGUIDSTRINGGUID of original (returned) receipt, PRINTCHECKS.GuidString
RETURNORDERGUIDSTRING

GUID of original (returned) order, ORDERS.GuidString

Table is used for storing information on last executed backup.

Field name

Description

THISSHIFTCOUNT Number of last shift, data on which was downloaded
THISBACKUPTIME Date and time of last shift download
LASTSHIFTCOUNT Number of last shift, for which backup was executed
LASTBACKUPTIME Date and time of last backup

SALEOBJECTS

View of sold dishes (there is no such a table, only a view in the base)

RK

Field name

Field type

Description

Link to

!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR
!VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)
!DISHUNIintegerUNi of record with dish

(VISIT, MIDSERVER, DISHUNI) →

SESSIONDISHES(VISIT, MIDSERVER, UNI)


CHARGEUNIintegerUNI of record with undistributed markup

(VISIT, MIDSERVER, CHARGEUNI) →

DISHDISCOUNTS(VISIT, MIDSERVER, UNI)


ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)


SESSIONUNIintegerUNI of session, to which dish/markup is added

(VISIT, MIDSERVER, SESSIONUNI) →

ORDERSESSIONS(VISIT, MIDSERVER, UNI)


OBJKIND

smallint

Record type, possible values:

  • 0 — Dish
  • 1 — Undistributed markup



CODEintegerItem code — of dish or undistributed markup

NAMEnvarchar(100)Item name in main language

ALTNAMEnvarchar(100)Item name in alternative language

RIGHTLVLsmallintIdentifier of object access rightRIGHTS.SIFR

TypePathnvarchar(255)Name of parent hierarchy (line with groups of dishes including this dish/markup)

STATUSsmallintItem status

SALESTERMS_STARTSALEdatetimeDate and time of item sale start

SALESTERMS_STOPSALEdatetimeDate and time of item sale end

ITAXDISHTYPEintegerTax group identifierTAXDISHTYPES.SIFR

SEATintegerSeat

EXCLUDEFROMEARNINGSsmallintThe «‎Exclude from income»‎ flag

SOURCESUMmoneyPrice amount

PAYSUMmoneyPayment sum

QUANTITYfloatQuantity

GLOBALIDENTnvarchar(32)Item global identifier

ICREATORintegerCreator's identifierEMPLOYEES.SIFR

IAUTHORintegerAuthor's identifierEMPLOYEES.SIFR

ICREATORROLEintegerIdentifier of creator's roleROLES.SIFR

IAUTHORROLEintegerIdentifier of author's roleROLES.SIFR

SERVPRINTERS

Table is used for getting service check number (seqnum field) and stores last used number with splitting by printers.

Table is not uploaded to cumulative base.

DEVICEIdentifier of logical printer, DEVICES.Sifr
LASTSEQCurrent value of service check number (seqnum)
SESSIONDISHES

Cumulative data: dishes

RK

Field name

Field type

Description

Link to

!VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)


SESSIONUNIintegerUNI of session, to which dish is added

(VISIT, MIDSERVER, SESSIONUNI) → ORDERSESSIONS(VISIT, MIDSERVER, UNI)



SORTORDERintegerRecord sequence number in session

UNIintegerRecord identifier inside order

SIFRintegerDish identifierMENUITEMS.SIFR

STATEintegerDish status

ICREATORintegerIdentifier of employee, who added dishEMPLOYEES.SIFR

IAUTHORinteger

Identifier of employeee, who either confirmed dish adding or edited it

EMPLOYEES.SIFR


ICREATORROLEintegerIdentifier of creator's roleROLES.SIFR

IAUTHORROLEintegerIdentifier of author's roleROLES.SIFR

ITAXDISHTYPEintegerTax group identifierTAXDISHTYPES.SIFR

SRCQUANTITYfloatDish original quantity (not taking following deletions into account)

WRITEOFFQUANTITYfloatNumber of dishes voided on write off reason

QUANTITYfloatDish quantity

PIECESfloatКол-во порций, используется для расчета кол-ва модификаторовNumber of portions is used for calculating modifiers calculation

PRLISTSUMmoneySum according to price list taking modifiers into account (without discounts)

SRCPRLISTSUMbigintSum according to price list taking modifiers into account, initially specified in receipt (without discounts)

CLEARSUMmoneyClear Amount (Price * Quantity without modifiers)

PAYSUMmoneyPayment sum in basic currency (taking discounts into account)

SUMWITHDISCOUNTSmoneySum according to price list with added distributed discounts

CLOSEDPAYSUMbigintPaid sum, closed by previous receipts

CONSUMSUMmoneyConsummation amount

CALCCONSUMSUMmoneyBase for consummation amount calculation (Sum * Consummation price)

BONUSBASESUMmoneyBase for bonus sum calculation

PRICEmoneyDish price (cam be cahnged to open price)

MENUITEMPRICEmoneyDish price according to price list

SEATintegerSeat

ISPORTIONsmallintThe «Portion dish» flag

ISPURCHASEsmallintThe «Repurchasing of dish» flag Флаг "Блюдо является блюдом выкупа"

ISCOMBOsmallintThe «Is this a combo dish» flag

ISCOMBOCOMPsmallintThe «Is this component of a combo dish» flag

ISUSERPRICEsmallintThe «Dish price is set manually» flag

DOSINGDEVIDinteger Identifier of dosing device, linked with dish (for doser)DOSINGDEVICES.SIFR

PURCHASEPREPAYUNIintegerUNI of prepayment for repurchasing dish

(VISIT, MIDSERVER, PURCHASEPREPAYUNI) →

PAYMENTS(VISIT, MIDSERVER, UNI)


TARIFFSIFRintegerIdentifier of tariff, linked with dish (for tariffication)MENUITEMS.SIFR

GUIDSTRINGnvarchar(38)Unique GUIDString identifier of record

SOURCEGUIDSTRINGnvarchar(38)GUIDString of original dish, is filled in case of return

(SOURCEGUIDSTRING) →  SESSIONDISHES(GUIDSTRING)


ADDBYALGORITHMintegerIdentifier of MCR-algorithm, used for dish addingMCRALGORITHMS.SIFR

WEIGHTfloatDish weight (for portion dishes)

CHANGECOUNTsmallintNumber of weight changes. Usually, waiter can specify weight only once.

WEIGHTPRINTEDsmallintThe «Weight change notification printed» flag

GLOBALIDENTnvarchar(32)Item global identifier

KDSIDENTsmallintRecord identifier for KDS

(MIDSERVER, KDSIDENT) → KDSDATA(MIDSERVER, IDENT)


COMBODISHUNIintegerUNI of combo dish (is filled for combo dish components)(VISIT, MIDSERVER, COMBODISHUNI) →  SESSIONDISHES(VISIT, MIDSERVER, UNI)

COMBOMODIUNIintegerUNI of combo dish modifier (is filled for combo dish components)(VISIT, MIDSERVER, COMBOMODIUNI) →  DISHMODIFIERS(VISIT, MIDSERVER, UNI)

COMBODISCUNIintegerUNI of combo discount(VISIT, MIDSERVER, COMBODISCUNI) →  DISHDISCOUNTS(VISIT, MIDSERVER, UNI)

CHARGEUNIintegerUNI of markup (for undistributed markup)(VISIT, MIDSERVER, CHARGEUNI) →  DISHDISCOUNTS(VISIT, MIDSERVER, UNI)

CREATIONDATETIMEdatetimeDate and time of adding dish to order

DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

SHIFTS

Cumulative table containing information on cash shifts.

Tables, referring to it: PAYMENTS, PRINTCHECKS, CASHINOUT

MIDSERVERLink to cash server CashGroups.Sifr
ISTATIONLink to station CASHES.Sifr
SHIFTNUMShift internal number
ICOMMONSHIFTLink to shift GLOBALSHIFTS.Sifr
STARTSHIFTNUMInternal number of first unclosed shift
CREATETIMECreation time
STARTTIMEShift start time
CLOSETIMEShift closing time
IMANAGERLink to manager EMPLOYEES.Sifr
BASICSUMSum in basic currency
FISCALSUMFiscal sum
NATIONALSUMSum in national currency
CLOSED

Marker of closed shift

  • 0 — Not closed
  • 1 — Closed
SENDEDMarker of cash server being aware of table being sent to manager station
PRINTSHIFTNUMShift printed number
IPRINTSTATIONStation at which receipt was printed CASHES.Sifr
IPRINTERPrinter PRINTERASSIGNS.Sifr
EXTFISCIDInternal identification number of fiscal register
PRINTEDShift was printed
ISLASTSHIFTMarker of last shift
LASTPRINTNUMBERLast printed number of receipt PRINTCHECKS.CheckNum
ZREPNUMZ report number, if Z report was printing during shift closure
TRANSACT_GUIDGUIDSTRING identifier of record time

TARIFFDATA

Cumulative data: information on tariffication dishes

RK

Field name

Field type

Description

Link to

!VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)

!TARIFFSIFRintegerRecord identifier

DEVICEIDintegerRated device identifierTABLES.SIFR

TARIFDETAILIDintegerTariff detail identifierTARIFFDETAILS.SIFR

CLOSEMANAGERIDintegerIdentifier of employee who stopped tarifficationEMPLOYEES.SIFR

STARTTIMEdatetiimeDate and time of tariffication piece start

ENDTIMEdatetiimeDate and time of tariffication piece startend

DURATIONfloatTariffication piece duration

TARIFFSTARTTIMEdatetiimeStart date and time of tariffication

TARIFFENDTIMEdatetiimeEnd date and time of tariffication

TIMELIMITdatetiimeTariffication time limit

MONEYLIMITmoneyTariffication money limit

DEFAULTERintegerDefaulter type identifierDEFAULTERTYPES.SIFR

TARIFFTYPEIDintegerTariffication type identifierTARIFFICATIONTYPES.SIFR

REBOOTING

smallint

The «Cash server was rebooted during tariffication»‎ flag



EXTNUMBERnvarchar(30)Tariffication external number

DISBALLANCEbigintDisbalance sum

DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

TASKSETTERS

Work table of work.udb: service information on active tariffications

RK

Field name

Field type

Description

Link to

!IDENTintegerRated device identifierTABLES.SIFR

VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)

ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)


DISHUNIintegerUNI of record with tariffication dish

(VISIT, DISHUNI) →

SESSIONDISHES(VISIT, UNI)


TARIFDETAILIDintegerTariff detail identifierTARIFFDETAILS.SIFR

TARIFFTYPEIDintegerTariffication type identifier

TARIFFICATIONTYPES.SIFR


DURATIONint64Tariffication duration

SUMint64Tariffication sum

ORDERSUMint64Order sum

EXTNUMBERnvarchar(30)Tariffication external number

TIMELIMITint64Tariffication time limit

MONEYLIMITint64Tariffication money limit

FLAGSsmallint

Tariffication flags, bit mask



STARTTIMEint64Start date and time of tariffication

ENDTIMEint64End date and time of tariffication

AUTORESUMEATint64Date and time when tariffication must be restarted (when suspending tariffication)

PREVTARIFFTYPEIDinteger

Tariffication type identifier BEFORE suspension

TARIFFICATIONTYPES.SIFR


PREVTIMELIMITint64Tariffication time limit before suspension

MESSAGEIDinteger

Identifier of record with waiter message on soon tariffication end time

MESSAGES.IDENT


ITEMTYPEinteger

Type of record with tariffication, possible values:

  • 0 — Rater
  • 1 — Doser



DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TAXPARTS

Cumulative data: tax

RK

Field name

Field type

Description

Link to

!VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

ORDERIDENTintegerOrder identifier

(VISIT, MIDSERVER, ORDERIDENT) →

ORDERS(VISIT, MIDSERVER, IDENTINVISIT)


BINDINGUNIintegerUNI of record with sale item, for which tax is calculated

(VISIT, MIDSERVER, BINDINGUNI) →

PAYBINDINGS(VISIT, MIDSERVER, UNI)


UNIintegerIdentifier of record inside order

SIFRintegerTax identifier, link to TAXES.SIFR

BASEFORTAXmoneyBase for tax calculation

TAXRATEfloatTax rate

TAXFLAGSsmallint

Tax flags, bit mask



SUMmoneyTaxed amount

NATIONALSUMmoneySum in national currency

TAXRATEIDintegerTax rate identifierTAXRATES.SIFR

DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

TEMPEMPLOYEES

Work table of work.udb: table with temporary employees, not used

RK

Field name

Field type

Description

Link to

!SIFRintegerEmployee's identifierEMPLOYEES.SIFR

CODEintegerEmployee's code

CARDCODEnvarchar(50)Code of employee's card

ROLEintegerIdentifier of employee's roleROLES.SIFR

NAMEnvarchar(40)Employee's name

ALTNAMEnvarchar(40)Employee's name in alternative language

ISALTLANGsmallintThe «Alt DB language»‎ flag
UPDATEVERSIONS

This table is used to ensure refernce sync process. It contains current number of collection version.

Each time reference is changed, its version increases by one, and a new version number is recorded in this table.

TABLENAMETable name, REFTABLES.Name
TABLEVERSCollection version number (increases after each change to reference)
RECSTAMPGUIDSTRING identifier of record time

VERSION (work.udb)

This table contains information on work.udb structure version and some other service information.

This table is not uploaded to cumulative base.

Имя поля

Описание

NUMBERBase structure version for work.udb (looks like 77000022, where first three figures stand for r_keepr 7 version)
CREATEDCreation date and time of work.udb
BACKUPTIMEDate and time of last backup
TRANSACTIONCOUNT

Number of last printed receipt (implicitly indicates number of transactions till last backup),

backup is executed after each N receipts

BACKUPCOUNTNumber of executed backups
LIGHTWEIGHTMODEUDB Database Mode (for check.udb)

VISITGUESTS

Cumulative data: list of visit guests

PK

Field name

Field type

Description

Link to

!VISITintegerVisit identifier(VISIT, MIDSERVER) → VISITS(SIFR, MIDSERVER)

MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

GUESTintegerSeat number

MNEMONICnvarchar(10)Text name for seat

CARDCODEnvarchar(50)Card code

INTFIDintegerIdentifier of logical interface linked with cardDEVICES.SIFR

MAXCREDITSUMbigintMaximum sum

HOLDERnvarchar(40)Card holder

ENTRANCECARDTYPEintegerIdentifier of entrance card typeENTRANCECARDTYPES.SIFR

CLIENTIDbigintIdenfier of client from external system (CRM)

ADDRESSIDbigintIdentifier of client's address from external system (CRM)

FISCORDERSTATEsmallint

Fiscal status.

  • 0 —  Нет статуса
  • 1 — Created
  • 2 — Bill
  • 3 — Receipt


DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time
Cumulative data: list of visits

RK

Field name

Field type

Description

Link to

!SIFRintegerRecord identifier
!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR

CREATORintegerIdentifier of employee who created visitEMPLOYEES.SIFR

GUESTTYPEintegerGuest type identifierGUESTTYPES.SIFR

STARTGUESTCNTintegerNumber of guests at visit creation moment

GUESTCNTintegerNumber of guests in visit

RESERVSOURCEintegerReservation source (is filled for reserve visits)

RESERVIDintegerReservation identifier (is filled for reserve visits)

RESERVDURATIONintegerReservation duration

RESERVSTATE

integer

Reservation status, possible values:

  • 0 — Common visit
  • 1 — Reservation visit
  • 2 — Reservation is deleted as outdated



RESERVFLAGS

integer

Reservation flags, bit mask, possible values:

  • 1 — Reservation results were sent



ENTRCARDMODE

integer

Entrance card type, possible values:

  • 0 — Common visit, without entrance card
  • 1 — Can be seats without card
  • 2 — All guests must have cards



MAXCREDITSUMmoneyPayment maximum sum, available for visit (for entrance card)

STARTTIMEdatetimeDate and time of visit creation

QUITTIMEdatetimeDate and time of visit end

FINISHED

smallint

Visit activity status, possible values:
  • 0 — Open visit
  • 1 — Closed visit
  • 2 — Visit for reservation (its activity depends on time)



VISITEXTRAINFOTOSAVEnvarchar(255)Saved comment

SEATSCLOSEDIMAGEBLOB with list of seats closed in visit

VISITOTHEREXTRAINFOnvarchar(255)Unsaved comment (for cash reports only)

HOLDERnvarchar(35)Holder

ISTARTCOMMONSHIFTintegerNumber of common shift, during which visit was open

(MIDSERVER, ISTARTCOMMONSHIFT) →

GLOBALSHIFTS(MIDSERVER, SHIFTNUM)


IQUITCOMMONSHIFTintegerNumber of common shift, during which visit was closed

(MIDSERVER, IQUITCOMMONSHIFT) →

GLOBALSHIFTS(MIDSERVER, SHIFTNUM)


GUIDSTRINGnvarchar(38)Unique GUIDString identifier

UNICOUNTintegerIs used for generating UNI for visit items. Stores current value of generator for order items identifiers (UNI) of this visit

DBSTATUSsmallintIf DBStatus = -1, record must be considered deleted. Such records are not uploaded in SQL

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

ZREPORTDATA

Cumulative data: printed Z-reports data

RK

Field name

Field type

Description

Link to

!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR
!SHIFTNUMintegerCommon shift number

(MIDSERVER, SHIFTNUM) →

GLOBALSHIFTS(MIDSERVER, SHIFTNUM)

!IDENTIFIERintegerRecord identifier

POS_IDnvarchar(40)String identifier of fiscal register/fiscal memory, specified upon registration

SERIALNUMBERnvarchar(40)serial number, is filled by device producer

INNnvarchar(20)TIN (INN), is filled upon fiscalization/re-registration

ZREPORTNUMBERintegerZ-report number

INCASHSUMmoneyDeposit sum per shift 

STARTTOTALmoney

Storage counter at shift start, must coincide with that of Z report.
Sense may differ for different fiscal registers.
Is used in form of KM7, which description does not contain definition of such counter



ENDTOTALmoneyStorage counter at shift end

RETURNSmoneySum of deletions and returns per shift

ADVANCESUMmoneySum of advances per shift (Latvia)

PROCEEDSmoneySale amount without deletions and advances (if used not in Latvia, than just sale amount)

PROCEEDSWOTAXmoneySale amount without taxes

TAXSUMmoneyTax sum

CASHSUMmoneyCash revenue sum

BANKCARDSUMmoneyBank cards revenue sum

NONCASHSUMmoneyNon-cash revenue sum (all revenue minus cash and bank cards)

SHIFTSTARTDATETIMEdatetimeShift start date and time. If fiscal register does not have this data, cash station will insert date and time of first receipt at this fiscal register after Z report

ZREPORTDATETIMEdatetimeDate and time of fiscal register at moment of data request (before Z report)

CASHIERIDintegerIdentifier of cashier who printed Z reportEMPLOYEES.SIFR

TAXSUM1moneyTax sum according to tax rate 1

TAXSUM2moneyTax sum according to tax rate 2

TAXSUM3moneyTax sum according to tax rate 3

TAXSUM4moneyTax sum according to tax rate 4

TAXSUM5moneyTax sum according to tax rate 5

TAXSUM6moneyTax sum according to tax rate 6

FISCDEVintegerIdentifier of fiscal register typeFISCDEVPARAMS.SIFR

DEVICEintegerPrinter identifierDEVICES.SIFR

SALERECEIPTCOUNTintegerNumber of receipts by sales

SALEDELETECOUNTintegerNumber of receipts deletion

RETURNRECEIPTCOUNTintegerNumber of return receipts

RETURNDELETECOUNTintegerNumber of return receipts deletions

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time

ZREPORTVALUES

Table with details for Z reports.

RK

Field name

Field type

Description

Link to

!MIDSERVERintegerCash server identifierCASHGROUPS.SIFR
!SHIFTNUMintegerCommon shift number

(MIDSERVER, SHIFTNUM) → 

GLOBALSHIFTS(MIDSERVER, SHIFTNUM)

!IDENTIFIERintegerZ report number

(MIDSERVER, SHIFTNUM, IDENTIFIER) → 

ZREPORTDATA(MIDSERVER, SHIFTNUM, IDENTIFIER)

!SEQINSHIFTintegerSequence number of record within current common shift

SOURCEIDnvarchar(20)Property source name

VALUEKEYIDnvarchar(38)Property name

ZREPSVALUEnvarchar(40)Property value

TRANSACT_GUIDnvarchar(38)GUIDSTRING identifier of record time
  • No labels