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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AlcoholDeclarationTypeType of declaration: wholesale 5, 6 or 7, or retail 11 or 12. | EnumAlcoholDeclarationType_RU (enum) | No | AlcoholDeclarationJournalTransBranch_RU.AlcoholDeclarationType | None |
AlcoholProductionTypeIdAlcohol product type, linked to the alcohol production types table. | StringAlcoholProductionTypeId_RU | No | AlcoholProductionType_RU.TypeId | None |
BranchIdSeparate division of the line, linked to the separate divisions table. | String (20)BranchId_RU | No | Branches_RU.BranchId | None |
CustVendType of counteragent: none, customer or vendor. | EnumCustVend_RU (enum) | No | None | |
CustVendACAccount number of the customer or vendor. | String (20)CustVendAC | No | CustTable.AccountNumVendTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventGTDIdNumber of the state customs declaration. | String (30)InventGTDId_RU | No | None | |
InvoiceIdNumber of the invoice. | String (50)InvoiceId | No | None | |
IsReturnShows whether the line is a return (yes or no). | EnumNoYes (enum) | No | None | |
JournalIdNumber of the alcohol declaration journal that the line belongs to. | String (20)AlcoholDeclarationJournalId_RU | No | AlcoholDeclarationJournalTable_RU.JournalId | None |
LicenseSeriesNumAlcohol licence linked to the line, shown by series and number. | String (21)AlcoholLicenseSeriesNum_RU | No | AlcoholLicenseTable_RU.LicenseSeriesNum | None |
ManufacturerIdCode of the manufacturer, which is a vendor account. | String (20)AlcoholManufacturerId_RU | No | VendTable.AccountNum | None |
NotificationDateDate of the notification. | DateAlcoholNotificationDate_RU | No | None | |
NotificationNumNumber of the notification. | StringAlcoholNotificationNum_RU | No | None | |
NotificationVolumeVolume stated in the notification. | RealAlcoholNotificationVolume_RU | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyQuantity on the line. | RealQty | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransDateDate of the invoice. | DateInvoiceDate | No | None | |
TypeWhether the line is a receipt or an issue. | EnumAlcoholDeclarationTransType_RU (enum) | No | None |
Indexes (1)
JournalTypeBranchIdxJournalId,AlcoholProductionTypeId,BranchIdNot unique.
Relations (9)
Each relation joins AlcoholDeclarationTrans_RU to another table on the fields shown.
AlcoholDeclarationJournalTable_RU→AlcoholDeclarationJournalTable_RUJoin on
JournalId = AlcoholDeclarationJournalTable_RU.JournalIdMany AlcoholDeclarationTrans_RU records → exactly one AlcoholDeclarationJournalTable_RU record
AlcoholDeclarationJournalTransBranch_RU→AlcoholDeclarationJournalTransBranch_RUJoin on
JournalId = AlcoholDeclarationJournalTransBranch_RU.JournalId,AlcoholDeclarationType = AlcoholDeclarationJournalTransBranch_RU.AlcoholDeclarationType,BranchId = AlcoholDeclarationJournalTransBranch_RU.BranchIdMany AlcoholDeclarationTrans_RU records → exactly one AlcoholDeclarationJournalTransBranch_RU record
AlcoholLicenseTable_RU→AlcoholLicenseTable_RUJoin on
LicenseSeriesNum = AlcoholLicenseTable_RU.LicenseSeriesNumMany AlcoholDeclarationTrans_RU records → exactly one AlcoholLicenseTable_RU record
AlcoholManufacturer_RU→VendTableJoin on
ManufacturerId = VendTable.AccountNumMany AlcoholDeclarationTrans_RU records → exactly one VendTable record
AlcoholProductionType_RU→AlcoholProductionType_RUJoin on
AlcoholProductionTypeId = AlcoholProductionType_RU.TypeIdMany AlcoholDeclarationTrans_RU records → exactly one AlcoholProductionType_RU record
Branches_RU→Branches_RUJoin on
BranchId = Branches_RU.BranchIdMany AlcoholDeclarationTrans_RU records → exactly one Branches_RU record
CustTable→CustTableJoin on
CustVend = CustVend_RU::Cust,CustVendAC = CustTable.AccountNumMany AlcoholDeclarationTrans_RU records → zero or one CustTable record
InventGTD_RU→InventGTD_RUJoin on
InventGTDId = InventGTD_RU.InventGTDIdMany AlcoholDeclarationTrans_RU records → zero or one InventGTD_RU record
VendTable→VendTableJoin on
CustVend = CustVend_RU::Vend,CustVendAC = VendTable.AccountNumMany 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.