Table
RetailCashDeclaration
Cash declaration
Holds cash declaration lines for a retail statement, split into coins, notes and totals. Each line has a currency, an amount, a quantity and a total. It links to the statement, its transaction lines and the currency.
- Table name
RetailCashDeclaration- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
primaryIdx- Replacement key
None- Key fields
statementId, CurrencyCode, type, AmountCur, lineNum, totalLine- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
statementIdStatement the declaration belongs to. It points to the statement record. | String (20)RetailStatementId | Yes | RetailStatementTable.statementId | None |
CurrencyCodeCurrency of the declared cash. It points to the currency record. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
typeKind of line: Coin, Note or Total. | EnumRetailCoinNoteTotalRetailCoinNoteTotalBase (enum) | No | None | |
AmountCurAmount of the line in the transaction currency. | RealAmountCur | No | None | |
lineNumStatement line number. It points to a statement transaction line. | RealLineNum | Yes | RetailStatementTrans.lineNum | None |
totalLineYes/No flag showing that the line is a total line. | EnumRetailTotalLineNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
qtyQuantity of coins or notes declared. | RealRetailQty | 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 | |
totalAmountTotal amount for the line. | RealRetailTotalAmount | No | None |
Indexes (1)
primaryIdxPrimary indexstatementId,CurrencyCode,type,AmountCur,lineNum,totalLineUnique, alternate key.
Relations (3)
Each relation joins RetailCashDeclaration to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany RetailCashDeclaration records → exactly one Currency record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdOne or more RetailCashDeclaration records → exactly one RetailStatementTable record
RetailStatementTrans→RetailStatementTransJoin on
CurrencyCode = RetailStatementTrans.currency,lineNum = RetailStatementTrans.lineNum,statementId = RetailStatementTrans.statementIdMany RetailCashDeclaration records → zero or one RetailStatementTrans record
Get this data out
No public entity reads from RetailCashDeclaration. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailCashDeclaration in a report, an integration or a migration? Talk to Dr Dynamics.