Table
PurchComplementaryInvoiceLine
Purchase complementary invoice line
Line of a purchase complementary invoice. It links to the invoice header, the fiscal document line it complements and the item, with quantity, amounts and tax groups. It also has fixed asset fields and tax reform fields used for Brazil.
- Table name
PurchComplementaryInvoiceLine- Module
Accounts payable- 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 (35)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDistributionTemplateThe accounting distribution template used for this line. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
AdditionalICMSAmountAdditional ICMS tax amount; the currency is not stated in the metadata. | RealTaxAmount | No | None | |
AdditionalIPIAmountAdditional IPI tax amount; the currency is not stated in the metadata. | RealTaxAmount | No | None | |
AdditionalPovertyFundAmountAdditional FCP amount; the currency is not stated in the metadata. | RealTaxAmount | No | None | |
AmountNet amount of the line, in the accounting currency. | RealAmountMST | No | None | |
AssetBookIdFixed asset book used for the line. | StringAssetBookIdPurchSalesInvent | No | AssetBookTable.BookId | None |
AssetGroupFixed asset group of the line. | StringAssetGroupId | No | AssetGroup.GroupId | None |
AssetIdNumber of the fixed asset linked to the line. | String (20)AssetIdOpen | No | AssetTable.AssetId | None |
CFOPTable_BRPoints to the CFOP code of the line, used for Brazil. | Int64RefRecId | No | CFOPTable_BR.RecId | None |
ComplementedFiscalDocumentLinePoints to the fiscal document line that this line complements. | Int64RefRecId | No | FiscalDocumentLine_BR.RecId | None |
CorrectedAmountCorrected line amount; the currency is not stated in the metadata. | RealLineAmount | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension values for the line. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DescriptionFree text description of the line. | String (1000)InvoiceLineDescription | No | None | |
InventDimInventory dimension ID of the line. | String (20)InventDimId | No | InventDim.inventDimId | None |
InventTransIdLot ID that links the line to inventory transactions. | String (20)InventTransId | No | InventTransOrigin.InventTransId | None |
isStockedYes/No flag that shows whether the product is stocked. | EnumTradeStockedProductNoYes (enum) | No | None | |
ItemIdItem number of the line. | String (20)ItemId | No | InventTable.ItemId | None |
LedgerDimensionMain account and dimensions for the line. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
LineTypeType of line: standard, prepayment, prepayment application or reverse prepayment application. | EnumPurchInvoiceLineType (enum) | No | None | |
OriginalLineAmountOriginal line amount before correction; the currency is not stated in the metadata. | RealLineAmount | No | None | |
OriginalPurchUnitPurchase unit of the line. | StringPurchUnit | No | None | |
OverrideSalesTax_BRYes/No flag that allows the tax reform sales tax setting to be overridden. | 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 | |
ProcurementCategoryProcurement category of the line. | Int64PurchCategory | No | EcoResCategory.RecId | None |
PurchComplementaryInvoiceHeaderPoints to the invoice header that this line belongs to. | Int64RefRecId | Yes | PurchComplementaryInvoiceHeader.RecId | None |
QuantityInvoiced quantity. | 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 | |
SourceDocumentLinePoints to the source document line of this line. | Int64RefRecId | Yes | SourceDocumentLine.RecId | 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 chosen for the Brazil tax reform. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group of the line. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TaxItemGroup_BRItem tax group chosen for the Brazil tax reform. | StringTaxItemGroup | No | None |
Indexes (4)
PurchComplementaryInvoiceHeaderIdxPurchComplementaryInvoiceHeaderNot unique.
SourceDocumentLineIdxSourceDocumentLine,Partition,dataAreaIdUnique.
DimensionAttributeValueSetIdxNot unique.
InventDimIdxNot unique.
Relations (19)
Each relation joins PurchComplementaryInvoiceLine to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany PurchComplementaryInvoiceLine records → zero or one AccountingDistributionTemplate record
AssetBook→AssetBookJoin on
AssetId = AssetBook.AssetId,AssetBookId = AssetBook.BookIdMany PurchComplementaryInvoiceLine records → zero or one AssetBook record
AssetBookTable→AssetBookTableJoin on
AssetBookId = AssetBookTable.BookIdMany PurchComplementaryInvoiceLine records → zero or one AssetBookTable record
AssetGroup→AssetGroupJoin on
AssetGroup = AssetGroup.GroupIdMany PurchComplementaryInvoiceLine records → zero or one AssetGroup record
AssetTable→AssetTableJoin on
AssetId = AssetTable.AssetIdMany PurchComplementaryInvoiceLine records → zero or one AssetTable record
CFOP→CFOPTable_BRJoin on
CFOPTable_BR = CFOPTable_BR.RecIdMany PurchComplementaryInvoiceLine records → zero or one CFOPTable_BR record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany PurchComplementaryInvoiceLine records → zero or one DimensionAttributeValueSet record
EcoResCategory→EcoResCategoryJoin on
ProcurementCategory = EcoResCategory.RecIdMany PurchComplementaryInvoiceLine records → zero or one EcoResCategory record
InventDim→InventDimJoin on
InventDim = InventDim.inventDimIdMany PurchComplementaryInvoiceLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany PurchComplementaryInvoiceLine records → zero or one InventTable record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany PurchComplementaryInvoiceLine records → zero or one InventTransOrigin record
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany PurchComplementaryInvoiceLine records → zero or one DimensionAttributeValueCombination record
OriginalFiscalDocumentLine→FiscalDocumentLine_BRJoin on
ComplementedFiscalDocumentLine = FiscalDocumentLine_BR.RecIdMany PurchComplementaryInvoiceLine records → exactly one FiscalDocumentLine_BR record
PurchComplementaryInvoiceHeader→PurchComplementaryInvoiceHeaderJoin on
PurchComplementaryInvoiceHeader = PurchComplementaryInvoiceHeader.RecIdOne or more PurchComplementaryInvoiceLine records → exactly one PurchComplementaryInvoiceHeader record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdZero or one PurchComplementaryInvoiceLine record → exactly one SourceDocumentLine record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany PurchComplementaryInvoiceLine records → exactly one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany PurchComplementaryInvoiceLine records → exactly one TaxItemGroupHeading record
TaxGroupHeadingTaxServiceView→TaxGroupHeadingTaxServiceViewJoin on
TaxGroup_BR = TaxGroupHeadingTaxServiceView.TaxGroupMany PurchComplementaryInvoiceLine records → exactly one TaxGroupHeadingTaxServiceView record
TaxItemGroupHeadingTaxServiceView→TaxItemGroupHeadingTaxServiceViewJoin on
TaxItemGroup_BR = TaxItemGroupHeadingTaxServiceView.TaxItemGroupMany PurchComplementaryInvoiceLine records → exactly one TaxItemGroupHeadingTaxServiceView record
Get this data out
No public entity reads from PurchComplementaryInvoiceLine. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchComplementaryInvoiceLine in a report, an integration or a migration? Talk to Dr Dynamics.