Table

AlcoholDeclarationTrans_RU

Alcohol declaration lines - receipt and issue

Receipt and issue lines of an alcohol declaration, used for Russia. Each line shows the invoice, counteragent, product type, quantity and manufacturer. It also holds licence, notification and customs declaration (GTD) details. The table has no defined key.

Table name
AlcoholDeclarationTrans_RU
Module
EGAIS
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (22)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AlcoholDeclarationTypeType of declaration: wholesale 5, 6 or 7, or retail 11 or 12.Enum
AlcoholDeclarationType_RU (enum)
NoAlcoholDeclarationJournalTransBranch_RU.AlcoholDeclarationTypeNone
AlcoholProductionTypeIdAlcohol product type, linked to the alcohol production types table.String
AlcoholProductionTypeId_RU
NoAlcoholProductionType_RU.TypeIdNone
BranchIdSeparate division of the line, linked to the separate divisions table.String (20)
BranchId_RU
NoBranches_RU.BranchIdNone
CustVendType of counteragent: none, customer or vendor.Enum
CustVend_RU (enum)
NoNone
CustVendACAccount number of the customer or vendor.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventGTDIdNumber of the state customs declaration.String (30)
InventGTDId_RU
NoNone
InvoiceIdNumber of the invoice.String (50)
InvoiceId
NoNone
IsReturnShows whether the line is a return (yes or no).Enum
NoYes (enum)
NoNone
JournalIdNumber of the alcohol declaration journal that the line belongs to.String (20)
AlcoholDeclarationJournalId_RU
NoAlcoholDeclarationJournalTable_RU.JournalIdNone
LicenseSeriesNumAlcohol licence linked to the line, shown by series and number.String (21)
AlcoholLicenseSeriesNum_RU
NoAlcoholLicenseTable_RU.LicenseSeriesNumNone
ManufacturerIdCode of the manufacturer, which is a vendor account.String (20)
AlcoholManufacturerId_RU
NoVendTable.AccountNumNone
NotificationDateDate of the notification.Date
AlcoholNotificationDate_RU
NoNone
NotificationNumNumber of the notification.String
AlcoholNotificationNum_RU
NoNone
NotificationVolumeVolume stated in the notification.Real
AlcoholNotificationVolume_RU
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyQuantity on the line.Real
Qty
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateDate of the invoice.Date
InvoiceDate
NoNone
TypeWhether the line is a receipt or an issue.Enum
AlcoholDeclarationTransType_RU (enum)
NoNone

Indexes (1)

Relations (9)

Each relation joins AlcoholDeclarationTrans_RU to another table on the fields shown.

  • AlcoholDeclarationJournalTable_RU → AlcoholDeclarationJournalTable_RU

    Join on JournalId = AlcoholDeclarationJournalTable_RU.JournalId

    Many AlcoholDeclarationTrans_RU records → exactly one AlcoholDeclarationJournalTable_RU record

  • AlcoholDeclarationJournalTransBranch_RU → AlcoholDeclarationJournalTransBranch_RU

    Join on JournalId = AlcoholDeclarationJournalTransBranch_RU.JournalId, AlcoholDeclarationType = AlcoholDeclarationJournalTransBranch_RU.AlcoholDeclarationType, BranchId = AlcoholDeclarationJournalTransBranch_RU.BranchId

    Many AlcoholDeclarationTrans_RU records → exactly one AlcoholDeclarationJournalTransBranch_RU record

  • AlcoholLicenseTable_RU → AlcoholLicenseTable_RU

    Join on LicenseSeriesNum = AlcoholLicenseTable_RU.LicenseSeriesNum

    Many AlcoholDeclarationTrans_RU records → exactly one AlcoholLicenseTable_RU record

  • AlcoholManufacturer_RU → VendTable

    Join on ManufacturerId = VendTable.AccountNum

    Many AlcoholDeclarationTrans_RU records → exactly one VendTable record

  • AlcoholProductionType_RU → AlcoholProductionType_RU

    Join on AlcoholProductionTypeId = AlcoholProductionType_RU.TypeId

    Many AlcoholDeclarationTrans_RU records → exactly one AlcoholProductionType_RU record

  • Branches_RU → Branches_RU

    Join on BranchId = Branches_RU.BranchId

    Many AlcoholDeclarationTrans_RU records → exactly one Branches_RU record

  • CustTable → CustTable

    Join on CustVend = CustVend_RU::Cust, CustVendAC = CustTable.AccountNum

    Many AlcoholDeclarationTrans_RU records → zero or one CustTable record

  • InventGTD_RU → InventGTD_RU

    Join on InventGTDId = InventGTD_RU.InventGTDId

    Many AlcoholDeclarationTrans_RU records → zero or one InventGTD_RU record

  • VendTable → VendTable

    Join on CustVend = CustVend_RU::Vend, CustVendAC = VendTable.AccountNum

    Many AlcoholDeclarationTrans_RU records → zero or one VendTable record

Get this data out

No public entity reads from AlcoholDeclarationTrans_RU. Its data is only reachable through the application, a custom entity or a database export.

Need help with AlcoholDeclarationTrans_RU in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk