Table
FreeTextInvoiceLineStaging
Customer free text invoice lines
Staging table for importing customer free text invoice lines. Rows are keyed by processing group, job ID and line number. Each line carries amounts, tax groups, project, fixed asset and dimension details, and links to FreeTextInvoiceLineEntity.
- Table name
FreeTextInvoiceLineStaging- Module
Cross-module and platform- Table group
Staging- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
StagingIdx- Replacement key
StagingIdx- Key fields
DefinitionGroup, ExecutionId, LineNumber- Model
Foundation
Fields (37)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DefinitionGroupName of the processing group for the import job. | String (60)DMFDefinitionGroupName | Yes | None | |
ExecutionIdID of the import job that created the row. | String (90)DMFExecutionId | Yes | None | |
LineNumberNumber of the line within the invoice, and part of the key. | RealLineNum | No | None | |
AmountDetailsFree text details about the amount. | String (-1)AmountDetails | No | None | |
BillingCodeBilling code of the line. | StringBillingCode | No | None | |
CategoryIdProject category. Points to ProjCategory. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | None |
CountryRegionIdCountry or region of origin. Points to LogisticsAddressCountryRegion. | StringItemOrigCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | None |
CurrencyCodeCurrency code of the line. Points to Currency. | String (3)CustCurrencyCode | No | Currency.CurrencyCode | None |
DefaultDimensionDisplayValueDefault dimension values shown as text. | String (500)DimensionDisplayValue | No | None | |
DescriptionShort description of the line. | String (60)Description | No | None | |
EInvoiceAccountCodeAccount code for the electronic invoice.low confidence | String (35) | No | None | |
FixedAssetNumberFixed asset the line relates to. Points to AssetTable. | String (20)AssetIdOpen | No | AssetTable.AssetId | None |
InvoiceTextLonger text for the invoice line. | String (-1)Notes | No | None | |
IsSelectedYes/no flag that marks the row as selected. | EnumDMFIsSelectedNoYes (enum) | No | None | |
MainAccountDisplayValueDimension combination, including main account, shown as text. | String (500)DimensionDisplayValue | No | None | |
NGPCodeNGP code for the line. Points to NGPCodesTable_FR. Used for France. | Integer | No | NGPCodesTable_FR.NGPCode | None |
ParentRecIdSystem record ID of the parent invoice header in the entity. | Int64 | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrintCodePrint code linked to the tax of the line.low confidence | StringTaxWriteCode | No | None | |
ProjectIDProject the line belongs to. Points to ProjTable. | String (20)ProjId | No | ProjTable.ProjId | None |
PropertyNumberProperty number. Used for Mexico. | String (20)PropertyNumber_MX | No | None | |
QuantityQuantity invoiced on the line. | RealInvoiceQuantity | 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 | |
SalesTaxAmountSales tax amount of the line; currency not stated in the metadata. | RealTaxAmount | No | None | |
SalesTaxGroupIdSales tax group. Points to TaxGroupHeading. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
SalesTaxItemGroupIdItem sales tax group. Points to TaxItemGroupHeading. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
StateOfOriginState of origin. Points to LogisticsAddressState, together with the country. | StringItemOrigStateId | No | LogisticsAddressState.StateId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TotalWeightTotal weight of the line. | RealWeight | No | None | |
TransactionCodeIntrastat transaction code. Points to IntrastatTransactionCode. | StringIntrastatTransactionCodeId | No | IntrastatTransactionCode.TransactionCode | None |
TransactionCurrencyAmountLine amount, probably in the transaction currency. | RealAmountCur | No | None | |
TransactionIDProject transaction ID. | String (20)ProjTransIdBase | No | None | |
TransferStatusStatus of moving the row from staging to the target, such as not started, completed or error. | EnumDMFTransferStatus (enum) | No | None | |
UnitPricePrice of one unit on the line. | RealInvoiceUnitPrice | No | None | |
ValueModelFixed asset book for the line. Points to AssetBookTable. | StringAssetBookIdPurchSalesInvent | No | AssetBookTable.BookId | None |
WithholdingTaxGroupWithholding tax group. Points to TaxWithholdGroupHeading. | StringTaxWithholdGroup | No | TaxWithholdGroupHeading.TaxWithholdGroup | None |
Indexes (1)
StagingIdxPrimary indexReplacement keyDefinitionGroup,ExecutionId,LineNumberUnique, alternate key.
Relations (15)
Each relation joins FreeTextInvoiceLineStaging to another table on the fields shown.
AssetBook→AssetBookJoin on
FixedAssetNumber = AssetBook.AssetId,ValueModel = AssetBook.BookIdMany FreeTextInvoiceLineStaging records → zero or one AssetBook record
AssetBookTable→AssetBookTableJoin on
ValueModel = AssetBookTable.BookIdMany FreeTextInvoiceLineStaging records → zero or one AssetBookTable record
AssetTable→AssetTableJoin on
FixedAssetNumber = AssetTable.AssetIdMany FreeTextInvoiceLineStaging records → zero or one AssetTable record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany FreeTextInvoiceLineStaging records → exactly one Currency record
IntrastatTransactionCode→IntrastatTransactionCodeJoin on
TransactionCode = IntrastatTransactionCode.TransactionCodeMany FreeTextInvoiceLineStaging records → zero or one IntrastatTransactionCode record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
CountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany FreeTextInvoiceLineStaging records → zero or one LogisticsAddressCountryRegion record
OrigState→LogisticsAddressStateJoin on
CountryRegionId = LogisticsAddressState.CountryRegionId,StateOfOrigin = LogisticsAddressState.StateIdMany FreeTextInvoiceLineStaging records → zero or one LogisticsAddressState record
ProjCategory→ProjCategoryJoin on
CategoryId = ProjCategory.CategoryIdMany FreeTextInvoiceLineStaging records → zero or one ProjCategory record
ProjTable→ProjTableJoin on
ProjectID = ProjTable.ProjIdMany FreeTextInvoiceLineStaging records → zero or one ProjTable record
TaxGroupHeading→TaxGroupHeadingJoin on
SalesTaxGroupId = TaxGroupHeading.TaxGroupMany FreeTextInvoiceLineStaging records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
SalesTaxItemGroupId = TaxItemGroupHeading.TaxItemGroupMany FreeTextInvoiceLineStaging records → zero or one TaxItemGroupHeading record
TaxWithholdGroupHeading→TaxWithholdGroupHeadingJoin on
WithholdingTaxGroup = TaxWithholdGroupHeading.TaxWithholdGroupMany FreeTextInvoiceLineStaging records → zero or one TaxWithholdGroupHeading record
DataEntity→FreeTextInvoiceLineEntityJoin on
LineNumber = FreeTextInvoiceLineEntity.LineNumberExactly one FreeTextInvoiceLineStaging record → zero or one FreeTextInvoiceLineEntity record
InvoiceHeader→FreeTextInvoiceLineEntityJoin on
ParentRecId = FreeTextInvoiceLineEntity.ParentRecIdMany FreeTextInvoiceLineStaging records → exactly one FreeTextInvoiceLineEntity record
NGPCode→NGPCodesTable_FRJoin on
NGPCode = NGPCodesTable_FR.NGPCodeMany FreeTextInvoiceLineStaging records → zero or one NGPCodesTable_FR record
Get this data out
No public entity reads from FreeTextInvoiceLineStaging. Its data is only reachable through the application, a custom entity or a database export.
Need help with FreeTextInvoiceLineStaging in a report, an integration or a migration? Talk to Dr Dynamics.