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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDistributionTemplatePoints to the accounting distribution template used for this line. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
AdditionalICMSAmountExtra ICMS tax amount on the line, used for Brazil; currency not stated in the metadata. | RealTaxAmount | No | None | |
AdditionalIPIAmountExtra IPI tax amount on the line, used for Brazil; currency not stated in the metadata. | RealTaxAmount | No | None | |
AdditionalPovertyFundAmountExtra FCP (poverty fund) tax amount on the line, used for Brazil; currency not stated in the metadata. | RealTaxAmount | No | None | |
AmountAmount of the line, normally in the transaction currency. | RealAmountCur | No | None | |
CFOPTable_BRPoints to the CFOP code of the line, used for Brazil. | Int64RefRecId | No | CFOPTable_BR.RecId | None |
CorrectedAmountLine amount after correction, normally in the transaction currency. | RealAmountCur | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionPoints to the set of default financial dimension values for the line. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DescriptionShort text describing the line. | String (60)Description | No | None | |
EcoResCategoryPoints to a product category record. | Int64RefRecId | No | EcoResCategory.RecId | None |
InventDimInventory dimension number that identifies the dimension combination of the line. | String (20)InventDimId | No | InventDim.inventDimId | None |
ItemCodeItem number of the product on the line. | String (20)ItemIdSmall | No | InventTable.ItemId | None |
LedgerDimensionPoints to the account and dimension combination of the line; labelled as main account. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
LineNumPosition number of the line in the invoice. | RealLineNum | No | None | |
OriginalFiscalDocumentLinePoints to the original fiscal document line that this line relates to. | Int64RefRecId | No | FiscalDocumentLine_BR.RecId | None |
OriginalLineAmountAmount of the original line, normally in the transaction currency. | RealAmountCur | No | None | |
OverrideSalesTax_BRYes/No flag to override the standard tax determination for the tax reform, used for Brazil. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjCategoryProject category linked to the line. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | None |
ProjFundingSourcePoints to the project funding source. | Int64ProjFundingSourceRefId | No | ProjFundingSource.RecId | None |
ProjTableProject ID that the line is linked to. | String (20)ProjId | No | ProjTable.ProjId | None |
QuantityInvoiced quantity 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 | |
SalesComplementaryInvoiceHeaderPoints to the invoice header that this line belongs to. | Int64RefRecId | No | SalesComplementaryInvoiceHeader.RecId | None |
SourceDocumentLinePoints to the source document line linked to this line. | Int64RefRecId | No | SourceDocumentLine.RecId | None |
StockedProductYes/No flag showing whether the product is stocked. | EnumTradeStockedProductNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupSales tax group of the line. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxGroup_BRTax group for the tax reform, used for Brazil. The values come from the Advanced Tax Engine. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group of the line. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TaxItemGroup_BRItem tax group for the tax reform, used for Brazil. The values come from the Advanced Tax Engine. | StringTaxItemGroup | No | None |
Indexes (12)
SalesComplementaryInvoiceHeaderIdxSalesComplementaryInvoiceHeaderNot unique.
CFOPTable_BRIdxNot unique.
SourceDocumentLineIdxSourceDocumentLine,Partition,dataAreaIdUnique, alternate key.
TaxGroupHeadingIdxNot unique.
TaxItemGroupHeadingIdxNot unique.
DimensionAttributeValueSetIdxNot unique.
InventTableIdxNot unique.
DimensionAttributeValueCombinationIdxNot unique.
EcoResCategoryIdxNot unique.
FiscalDocumentLine_BRIdxNot unique.
AccountingDistributionTemplateIdxAccountingDistributionTemplateNot unique.
InventDimIdxNot unique.
Relations (17)
Each relation joins SalesComplementaryInvoiceLine to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany SalesComplementaryInvoiceLine records → zero or one AccountingDistributionTemplate record
CFOP→CFOPTable_BRJoin on
CFOPTable_BR = CFOPTable_BR.RecIdMany SalesComplementaryInvoiceLine records → exactly one CFOPTable_BR record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany SalesComplementaryInvoiceLine records → zero or one DimensionAttributeValueSet record
InventDim→InventDimJoin on
InventDim = InventDim.inventDimIdMany SalesComplementaryInvoiceLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemCode = InventTable.ItemIdMany SalesComplementaryInvoiceLine records → zero or one InventTable record
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany SalesComplementaryInvoiceLine records → zero or one DimensionAttributeValueCombination record
OriginalFiscalDocumentLine→FiscalDocumentLine_BRJoin on
OriginalFiscalDocumentLine = FiscalDocumentLine_BR.RecIdMany SalesComplementaryInvoiceLine records → exactly one FiscalDocumentLine_BR record
ProjCategory→ProjCategoryJoin on
ProjCategory = ProjCategory.CategoryIdMany SalesComplementaryInvoiceLine records → zero or one ProjCategory record
ProjFundingSource→ProjFundingSourceJoin on
ProjFundingSource = ProjFundingSource.RecIdMany SalesComplementaryInvoiceLine records → zero or one ProjFundingSource record
ProjTable→ProjTableJoin on
ProjTable = ProjTable.ProjIdMany SalesComplementaryInvoiceLine records → zero or one ProjTable record
SalesCategory→EcoResCategoryJoin on
EcoResCategory = EcoResCategory.RecIdMany SalesComplementaryInvoiceLine records → zero or one EcoResCategory record
SalesComplementaryInvoiceHeader→SalesComplementaryInvoiceHeaderJoin on
SalesComplementaryInvoiceHeader = SalesComplementaryInvoiceHeader.RecIdOne or more SalesComplementaryInvoiceLine records → exactly one SalesComplementaryInvoiceHeader record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdZero or one SalesComplementaryInvoiceLine record → exactly one SourceDocumentLine record
TaxGroup→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany SalesComplementaryInvoiceLine records → exactly one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany SalesComplementaryInvoiceLine records → exactly one TaxItemGroupHeading record
TaxGroupHeadingTaxServiceView→TaxGroupHeadingTaxServiceViewJoin on
TaxGroup_BR = TaxGroupHeadingTaxServiceView.TaxGroupMany SalesComplementaryInvoiceLine records → exactly one TaxGroupHeadingTaxServiceView record
TaxItemGroupHeadingTaxServiceView→TaxItemGroupHeadingTaxServiceViewJoin on
TaxItemGroup_BR = TaxItemGroupHeadingTaxServiceView.TaxItemGroupMany 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.