Table

SalesComplementaryInvoiceLine

Sales complementary invoice line

Line record for a sales complementary invoice. Each row holds an item, quantity, amounts and tax groups, plus Brazil-specific tax amounts such as ICMS, IPI and FCP. It links to the invoice header and to the original fiscal document line.

Table name
SalesComplementaryInvoiceLine
Module
Accounts receivable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (33)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDistributionTemplatePoints to the accounting distribution template used for this line.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
AdditionalICMSAmountExtra ICMS tax amount on the line, used for Brazil; currency not stated in the metadata.Real
TaxAmount
NoNone
AdditionalIPIAmountExtra IPI tax amount on the line, used for Brazil; currency not stated in the metadata.Real
TaxAmount
NoNone
AdditionalPovertyFundAmountExtra FCP (poverty fund) tax amount on the line, used for Brazil; currency not stated in the metadata.Real
TaxAmount
NoNone
AmountAmount of the line, normally in the transaction currency.Real
AmountCur
NoNone
CFOPTable_BRPoints to the CFOP code of the line, used for Brazil.Int64
RefRecId
NoCFOPTable_BR.RecIdNone
CorrectedAmountLine amount after correction, normally in the transaction currency.Real
AmountCur
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionPoints to the set of default financial dimension values for the line.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DescriptionShort text describing the line.String (60)
Description
NoNone
EcoResCategoryPoints to a product category record.Int64
RefRecId
NoEcoResCategory.RecIdNone
InventDimInventory dimension number that identifies the dimension combination of the line.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemCodeItem number of the product on the line.String (20)
ItemIdSmall
NoInventTable.ItemIdNone
LedgerDimensionPoints to the account and dimension combination of the line; labelled as main account.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
LineNumPosition number of the line in the invoice.Real
LineNum
NoNone
OriginalFiscalDocumentLinePoints to the original fiscal document line that this line relates to.Int64
RefRecId
NoFiscalDocumentLine_BR.RecIdNone
OriginalLineAmountAmount of the original line, normally in the transaction currency.Real
AmountCur
NoNone
OverrideSalesTax_BRYes/No flag to override the standard tax determination for the tax reform, used for Brazil.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjCategoryProject category linked to the line.String (30)
ProjCategoryId
NoProjCategory.CategoryIdNone
ProjFundingSourcePoints to the project funding source.Int64
ProjFundingSourceRefId
NoProjFundingSource.RecIdNone
ProjTableProject ID that the line is linked to.String (20)
ProjId
NoProjTable.ProjIdNone
QuantityInvoiced quantity 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
SalesComplementaryInvoiceHeaderPoints to the invoice header that this line belongs to.Int64
RefRecId
NoSalesComplementaryInvoiceHeader.RecIdNone
SourceDocumentLinePoints to the source document line linked to this line.Int64
RefRecId
NoSourceDocumentLine.RecIdNone
StockedProductYes/No flag showing whether the product is stocked.Enum
TradeStockedProduct
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupSales tax group of the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxGroup_BRTax group for the tax reform, used for Brazil. The values come from the Advanced Tax Engine.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group of the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TaxItemGroup_BRItem tax group for the tax reform, used for Brazil. The values come from the Advanced Tax Engine.String
TaxItemGroup
NoNone

Indexes (12)

Relations (17)

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

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many SalesComplementaryInvoiceLine records → zero or one AccountingDistributionTemplate record

  • CFOP → CFOPTable_BR

    Join on CFOPTable_BR = CFOPTable_BR.RecId

    Many SalesComplementaryInvoiceLine records → exactly one CFOPTable_BR record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many SalesComplementaryInvoiceLine records → zero or one DimensionAttributeValueSet record

  • InventDim → InventDim

    Join on InventDim = InventDim.inventDimId

    Many SalesComplementaryInvoiceLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemCode = InventTable.ItemId

    Many SalesComplementaryInvoiceLine records → zero or one InventTable record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many SalesComplementaryInvoiceLine records → zero or one DimensionAttributeValueCombination record

  • OriginalFiscalDocumentLine → FiscalDocumentLine_BR

    Join on OriginalFiscalDocumentLine = FiscalDocumentLine_BR.RecId

    Many SalesComplementaryInvoiceLine records → exactly one FiscalDocumentLine_BR record

  • ProjCategory → ProjCategory

    Join on ProjCategory = ProjCategory.CategoryId

    Many SalesComplementaryInvoiceLine records → zero or one ProjCategory record

  • ProjFundingSource → ProjFundingSource

    Join on ProjFundingSource = ProjFundingSource.RecId

    Many SalesComplementaryInvoiceLine records → zero or one ProjFundingSource record

  • ProjTable → ProjTable

    Join on ProjTable = ProjTable.ProjId

    Many SalesComplementaryInvoiceLine records → zero or one ProjTable record

  • SalesCategory → EcoResCategory

    Join on EcoResCategory = EcoResCategory.RecId

    Many SalesComplementaryInvoiceLine records → zero or one EcoResCategory record

  • SalesComplementaryInvoiceHeader → SalesComplementaryInvoiceHeader

    Join on SalesComplementaryInvoiceHeader = SalesComplementaryInvoiceHeader.RecId

    One or more SalesComplementaryInvoiceLine records → exactly one SalesComplementaryInvoiceHeader record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Zero or one SalesComplementaryInvoiceLine record → exactly one SourceDocumentLine record

  • TaxGroup → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many SalesComplementaryInvoiceLine records → exactly one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many SalesComplementaryInvoiceLine records → exactly one TaxItemGroupHeading record

  • TaxGroupHeadingTaxServiceView → TaxGroupHeadingTaxServiceView

    Join on TaxGroup_BR = TaxGroupHeadingTaxServiceView.TaxGroup

    Many SalesComplementaryInvoiceLine records → exactly one TaxGroupHeadingTaxServiceView record

  • TaxItemGroupHeadingTaxServiceView → TaxItemGroupHeadingTaxServiceView

    Join on TaxItemGroup_BR = TaxItemGroupHeadingTaxServiceView.TaxItemGroup

    Many SalesComplementaryInvoiceLine records → exactly one TaxItemGroupHeadingTaxServiceView record

Get this data out

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

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

Email sales@drdynamics.co.uk