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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDistributionTemplateThe accounting distribution template used for this line.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
AdditionalICMSAmountAdditional ICMS tax amount; the currency is not stated in the metadata.Real
TaxAmount
NoNone
AdditionalIPIAmountAdditional IPI tax amount; the currency is not stated in the metadata.Real
TaxAmount
NoNone
AdditionalPovertyFundAmountAdditional FCP amount; the currency is not stated in the metadata.Real
TaxAmount
NoNone
AmountNet amount of the line, in the accounting currency.Real
AmountMST
NoNone
AssetBookIdFixed asset book used for the line.String
AssetBookIdPurchSalesInvent
NoAssetBookTable.BookIdNone
AssetGroupFixed asset group of the line.String
AssetGroupId
NoAssetGroup.GroupIdNone
AssetIdNumber of the fixed asset linked to the line.String (20)
AssetIdOpen
NoAssetTable.AssetIdNone
CFOPTable_BRPoints to the CFOP code of the line, used for Brazil.Int64
RefRecId
NoCFOPTable_BR.RecIdNone
ComplementedFiscalDocumentLinePoints to the fiscal document line that this line complements.Int64
RefRecId
NoFiscalDocumentLine_BR.RecIdNone
CorrectedAmountCorrected line amount; the currency is not stated in the metadata.Real
LineAmount
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension values for the line.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DescriptionFree text description of the line.String (1000)
InvoiceLineDescription
NoNone
InventDimInventory dimension ID of the line.String (20)
InventDimId
NoInventDim.inventDimIdNone
InventTransIdLot ID that links the line to inventory transactions.String (20)
InventTransId
NoInventTransOrigin.InventTransIdNone
isStockedYes/No flag that shows whether the product is stocked.Enum
TradeStockedProduct
NoYes (enum)
NoNone
ItemIdItem number of the line.String (20)
ItemId
NoInventTable.ItemIdNone
LedgerDimensionMain account and dimensions for the line.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
LineTypeType of line: standard, prepayment, prepayment application or reverse prepayment application.Enum
PurchInvoiceLineType (enum)
NoNone
OriginalLineAmountOriginal line amount before correction; the currency is not stated in the metadata.Real
LineAmount
NoNone
OriginalPurchUnitPurchase unit of the line.String
PurchUnit
NoNone
OverrideSalesTax_BRYes/No flag that allows the tax reform sales tax setting to be overridden.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
ProcurementCategoryProcurement category of the line.Int64
PurchCategory
NoEcoResCategory.RecIdNone
PurchComplementaryInvoiceHeaderPoints to the invoice header that this line belongs to.Int64
RefRecId
YesPurchComplementaryInvoiceHeader.RecIdNone
QuantityInvoiced quantity.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
SourceDocumentLinePoints to the source document line of this line.Int64
RefRecId
YesSourceDocumentLine.RecIdNone
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 chosen for the Brazil tax reform.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group of the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TaxItemGroup_BRItem tax group chosen for the Brazil tax reform.String
TaxItemGroup
NoNone

Indexes (4)

Relations (19)

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

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many PurchComplementaryInvoiceLine records → zero or one AccountingDistributionTemplate record

  • AssetBook → AssetBook

    Join on AssetId = AssetBook.AssetId, AssetBookId = AssetBook.BookId

    Many PurchComplementaryInvoiceLine records → zero or one AssetBook record

  • AssetBookTable → AssetBookTable

    Join on AssetBookId = AssetBookTable.BookId

    Many PurchComplementaryInvoiceLine records → zero or one AssetBookTable record

  • AssetGroup → AssetGroup

    Join on AssetGroup = AssetGroup.GroupId

    Many PurchComplementaryInvoiceLine records → zero or one AssetGroup record

  • AssetTable → AssetTable

    Join on AssetId = AssetTable.AssetId

    Many PurchComplementaryInvoiceLine records → zero or one AssetTable record

  • CFOP → CFOPTable_BR

    Join on CFOPTable_BR = CFOPTable_BR.RecId

    Many PurchComplementaryInvoiceLine records → zero or one CFOPTable_BR record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many PurchComplementaryInvoiceLine records → zero or one DimensionAttributeValueSet record

  • EcoResCategory → EcoResCategory

    Join on ProcurementCategory = EcoResCategory.RecId

    Many PurchComplementaryInvoiceLine records → zero or one EcoResCategory record

  • InventDim → InventDim

    Join on InventDim = InventDim.inventDimId

    Many PurchComplementaryInvoiceLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many PurchComplementaryInvoiceLine records → zero or one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many PurchComplementaryInvoiceLine records → zero or one InventTransOrigin record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many PurchComplementaryInvoiceLine records → zero or one DimensionAttributeValueCombination record

  • OriginalFiscalDocumentLine → FiscalDocumentLine_BR

    Join on ComplementedFiscalDocumentLine = FiscalDocumentLine_BR.RecId

    Many PurchComplementaryInvoiceLine records → exactly one FiscalDocumentLine_BR record

  • PurchComplementaryInvoiceHeader → PurchComplementaryInvoiceHeader

    Join on PurchComplementaryInvoiceHeader = PurchComplementaryInvoiceHeader.RecId

    One or more PurchComplementaryInvoiceLine records → exactly one PurchComplementaryInvoiceHeader record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Zero or one PurchComplementaryInvoiceLine record → exactly one SourceDocumentLine record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many PurchComplementaryInvoiceLine records → exactly one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many PurchComplementaryInvoiceLine records → exactly one TaxItemGroupHeading record

  • TaxGroupHeadingTaxServiceView → TaxGroupHeadingTaxServiceView

    Join on TaxGroup_BR = TaxGroupHeadingTaxServiceView.TaxGroup

    Many PurchComplementaryInvoiceLine records → exactly one TaxGroupHeadingTaxServiceView record

  • TaxItemGroupHeadingTaxServiceView → TaxItemGroupHeadingTaxServiceView

    Join on TaxItemGroup_BR = TaxItemGroupHeadingTaxServiceView.TaxItemGroup

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

Email sales@drdynamics.co.uk