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 descriptionType / EDT / enumMandatoryReferencesIn public entities
DefinitionGroupName of the processing group for the import job.String (60)
DMFDefinitionGroupName
YesNone
ExecutionIdID of the import job that created the row.String (90)
DMFExecutionId
YesNone
LineNumberNumber of the line within the invoice, and part of the key.Real
LineNum
NoNone
AmountDetailsFree text details about the amount.String (-1)
AmountDetails
NoNone
BillingCodeBilling code of the line.String
BillingCode
NoNone
CategoryIdProject category. Points to ProjCategory.String (30)
ProjCategoryId
NoProjCategory.CategoryIdNone
CountryRegionIdCountry or region of origin. Points to LogisticsAddressCountryRegion.String
ItemOrigCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdNone
CurrencyCodeCurrency code of the line. Points to Currency.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeNone
DefaultDimensionDisplayValueDefault dimension values shown as text.String (500)
DimensionDisplayValue
NoNone
DescriptionShort description of the line.String (60)
Description
NoNone
EInvoiceAccountCodeAccount code for the electronic invoice.low confidenceString (35)NoNone
FixedAssetNumberFixed asset the line relates to. Points to AssetTable.String (20)
AssetIdOpen
NoAssetTable.AssetIdNone
InvoiceTextLonger text for the invoice line.String (-1)
Notes
NoNone
IsSelectedYes/no flag that marks the row as selected.Enum
DMFIsSelected
NoYes (enum)
NoNone
MainAccountDisplayValueDimension combination, including main account, shown as text.String (500)
DimensionDisplayValue
NoNone
NGPCodeNGP code for the line. Points to NGPCodesTable_FR. Used for France.IntegerNoNGPCodesTable_FR.NGPCodeNone
ParentRecIdSystem record ID of the parent invoice header in the entity.Int64NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrintCodePrint code linked to the tax of the line.low confidenceString
TaxWriteCode
NoNone
ProjectIDProject the line belongs to. Points to ProjTable.String (20)
ProjId
NoProjTable.ProjIdNone
PropertyNumberProperty number. Used for Mexico.String (20)
PropertyNumber_MX
NoNone
QuantityQuantity invoiced on the line.Real
InvoiceQuantity
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
SalesTaxAmountSales tax amount of the line; currency not stated in the metadata.Real
TaxAmount
NoNone
SalesTaxGroupIdSales tax group. Points to TaxGroupHeading.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
SalesTaxItemGroupIdItem sales tax group. Points to TaxItemGroupHeading.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
StateOfOriginState of origin. Points to LogisticsAddressState, together with the country.String
ItemOrigStateId
NoLogisticsAddressState.StateIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TotalWeightTotal weight of the line.Real
Weight
NoNone
TransactionCodeIntrastat transaction code. Points to IntrastatTransactionCode.String
IntrastatTransactionCodeId
NoIntrastatTransactionCode.TransactionCodeNone
TransactionCurrencyAmountLine amount, probably in the transaction currency.Real
AmountCur
NoNone
TransactionIDProject transaction ID.String (20)
ProjTransIdBase
NoNone
TransferStatusStatus of moving the row from staging to the target, such as not started, completed or error.Enum
DMFTransferStatus (enum)
NoNone
UnitPricePrice of one unit on the line.Real
InvoiceUnitPrice
NoNone
ValueModelFixed asset book for the line. Points to AssetBookTable.String
AssetBookIdPurchSalesInvent
NoAssetBookTable.BookIdNone
WithholdingTaxGroupWithholding tax group. Points to TaxWithholdGroupHeading.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupNone

Indexes (1)

Relations (15)

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

  • AssetBook → AssetBook

    Join on FixedAssetNumber = AssetBook.AssetId, ValueModel = AssetBook.BookId

    Many FreeTextInvoiceLineStaging records → zero or one AssetBook record

  • AssetBookTable → AssetBookTable

    Join on ValueModel = AssetBookTable.BookId

    Many FreeTextInvoiceLineStaging records → zero or one AssetBookTable record

  • AssetTable → AssetTable

    Join on FixedAssetNumber = AssetTable.AssetId

    Many FreeTextInvoiceLineStaging records → zero or one AssetTable record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many FreeTextInvoiceLineStaging records → exactly one Currency record

  • IntrastatTransactionCode → IntrastatTransactionCode

    Join on TransactionCode = IntrastatTransactionCode.TransactionCode

    Many FreeTextInvoiceLineStaging records → zero or one IntrastatTransactionCode record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on CountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many FreeTextInvoiceLineStaging records → zero or one LogisticsAddressCountryRegion record

  • OrigState → LogisticsAddressState

    Join on CountryRegionId = LogisticsAddressState.CountryRegionId, StateOfOrigin = LogisticsAddressState.StateId

    Many FreeTextInvoiceLineStaging records → zero or one LogisticsAddressState record

  • ProjCategory → ProjCategory

    Join on CategoryId = ProjCategory.CategoryId

    Many FreeTextInvoiceLineStaging records → zero or one ProjCategory record

  • ProjTable → ProjTable

    Join on ProjectID = ProjTable.ProjId

    Many FreeTextInvoiceLineStaging records → zero or one ProjTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on SalesTaxGroupId = TaxGroupHeading.TaxGroup

    Many FreeTextInvoiceLineStaging records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on SalesTaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many FreeTextInvoiceLineStaging records → zero or one TaxItemGroupHeading record

  • TaxWithholdGroupHeading → TaxWithholdGroupHeading

    Join on WithholdingTaxGroup = TaxWithholdGroupHeading.TaxWithholdGroup

    Many FreeTextInvoiceLineStaging records → zero or one TaxWithholdGroupHeading record

  • DataEntity → FreeTextInvoiceLineEntity

    Join on LineNumber = FreeTextInvoiceLineEntity.LineNumber

    Exactly one FreeTextInvoiceLineStaging record → zero or one FreeTextInvoiceLineEntity record

  • InvoiceHeader → FreeTextInvoiceLineEntity

    Join on ParentRecId = FreeTextInvoiceLineEntity.ParentRecId

    Many FreeTextInvoiceLineStaging records → exactly one FreeTextInvoiceLineEntity record

  • NGPCode → NGPCodesTable_FR

    Join on NGPCode = NGPCodesTable_FR.NGPCode

    Many 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.

Email sales@drdynamics.co.uk