Table
PurchComplementaryInvoiceHeader
Purchase complementary invoice
Header record of a purchase complementary invoice, which has a Brazilian fiscal document type (price or tax). It holds the vendor invoice account, dates, payment terms, posting profile and status. It also holds fiscal data for Brazil, such as access key, series, model and the fiscal document it complements.
- Table name
PurchComplementaryInvoiceHeader- 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 (45)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccessKey_BRAccess key of the fiscal document, used for Brazil. | String (45)EFDocAccessKey_BR | No | None | |
AccountingDistributionTemplateThe accounting distribution template used for this invoice. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
CanceledInvoicePoints to the complementary invoice that this record cancels or refers to. | Int64RefRecId | No | PurchComplementaryInvoiceHeader.RecId | None |
CashDiscCash discount code applied to the invoice. | StringVendCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscAmountCash discount amount; the currency is not stated in the metadata. | RealVendCashDiscAmount | No | None | |
CashDiscDateDate linked to the cash discount. | DateVendCashDiscDate | No | None | |
CashDiscPercentCash discount as a percentage. | RealDiscPct | No | None | |
ComplementaryTypeShows whether the complementary document corrects the price or the tax. | EnumInvoiceComplementaryType_BR (enum) | No | None | |
ComplementedFiscalDocumentPoints to the fiscal document that this invoice complements. | Int64RefRecId | No | FiscalDocument_BR.RecId | None |
CostLedgerVoucherVoucher number of the costing posting. | String (20)Voucher | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCurrency code of the invoice. | String (3)VendCurrencyCode | Yes | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension values for the invoice. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DeliveryPostalAddressPoints to the delivery address of the invoice. | Int64RefRecId | No | LogisticsPostalAddress.RecId | None |
DocumentDateDate of the invoice. | DateDocumentDate | No | None | |
FiscalDocumentTypeType of fiscal document, used for Brazil. | Int64FiscalDocumentTypeRecID_BR | No | FiscalDocumentType_BR.RecId | None |
FiscalEstablishment_BRFiscal establishment linked to the invoice, used for Brazil. | Int64FiscalEstablishmentRecId_BR | No | FiscalEstablishment_BR.RecId | None |
FixedDueDateFixed due date for payment. | DatePurchFixedDueDate | No | None | |
IssuerShows whether the fiscal establishment or a third party issued the fiscal document. | EnumFiscalDocumentIssuer_BR (enum) | No | None | |
LedgerVoucherVoucher number of the ledger posting. | String (20)Voucher | No | None | |
ModelFiscal document model code, used for Brazil. | String (3)FiscalDocumentModel_BR | No | FiscalDocModel_BR.Model | None |
NumberNumber of the invoice. | String (20)Num | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment for the invoice. | String (100)VendPaymTermId | No | PaymTerm.PaymTermId | None |
PaymIdPayment ID of the invoice. | String (200)PaymId | No | None | |
PaymSchedPayment schedule used for the invoice. | String (30)PaymSchedId | No | PaymSched.Name | None |
PostingProfileVendor posting profile used for the invoice. | StringVendPostingProfile | No | VendLedger.PostingProfile | None |
ReasonTableRef_BRReason reference attached to the invoice, used for Brazil. | Int64ReasonTableRefRecId | No | ReasonTableRef.RecId | 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 | |
SeriesFiscal document series, used for Brazil. | String (9)FiscalDocumentSeries_BR | No | None | |
SettleVoucherSettlement type: none, open transactions or designated transactions. | EnumPurchSettlementTypeSettlementType (enum) | No | None | |
SourceDocumentHeaderPoints to the source document header of this invoice. | Int64RefRecId | No | SourceDocumentHeader.RecId | None |
SpecieFiscal document species, such as NF or CTRC. | EnumFiscalDocumentSpecie_BR (enum) | No | None | |
StatusStatus of the invoice: open, posted, canceled or cancel in progress. | EnumComplementaryInvoiceStatus (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ThirdPartyPostalAddressPostal address of the third party. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
TransDatePosting date of the invoice. | DateTransDate | No | None | |
VendBankAccountVendor bank account used for the invoice. | StringVendBankAccountId | No | VendBankAccount.AccountID | None |
VendFinalUserYes/No flag for use and consumption, used for Brazil. | EnumCustVendFinalUser_BRNoYes (enum) | No | None | |
VendPaymModeSpecPayment specification linked to the method of payment. | StringPaymSpec | No | VendPaymModeSpec.Specification | None |
VendPaymModeTableMethod of payment used for the vendor. | StringVendPaymMode | No | VendPaymModeTable.PaymMode | None |
VendTableThe vendor account that the invoice is for. | String (20)VendInvoiceAccount | Yes | VendTable.AccountNum | None |
Indexes (16)
SourceDocumentHeaderIdxSourceDocumentHeader,Partition,dataAreaIdUnique.
CurrencyIdxNot unique.
FiscalDocument_BRIdxNot unique.
AccountingDistributionTemplateIdxAccountingDistributionTemplateNot unique.
DimensionAttributeValueSetIdxNot unique.
CashDiscIdxNot unique.
VendLedgerIdxNot unique.
VendTableIdxNot unique.
VendPaymModeTableIdxNot unique.
PaymSchedIdxNot unique.
PaymTermIdxNot unique.
FiscalDocumentType_BRIdxNot unique.
LogisticsPostalAddressIdxNot unique.
PurchComplementaryInvoiceHeaderIdxNot unique.
FiscalEstablishment_BRIdxNot unique.
VoucherAndDateIdxNot unique.
Relations (20)
Each relation joins PurchComplementaryInvoiceHeader to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany PurchComplementaryInvoiceHeader records → zero or one AccountingDistributionTemplate record
CanceledComplementaryInvoice→PurchComplementaryInvoiceHeaderJoin on
CanceledInvoice = PurchComplementaryInvoiceHeader.RecIdZero or one PurchComplementaryInvoiceHeader record → zero or one PurchComplementaryInvoiceHeader record
CashDisc→CashDiscJoin on
CashDisc = CashDisc.CashDiscCodeMany PurchComplementaryInvoiceHeader records → zero or one CashDisc record
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany PurchComplementaryInvoiceHeader records → exactly one Currency record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany PurchComplementaryInvoiceHeader records → zero or one DimensionAttributeValueSet record
DeliveryPostalAddress→LogisticsPostalAddressJoin on
DeliveryPostalAddress = LogisticsPostalAddress.RecIdMany PurchComplementaryInvoiceHeader records → zero or one LogisticsPostalAddress record
FiscalDocModel_BR→FiscalDocModel_BRJoin on
Model = FiscalDocModel_BR.ModelMany PurchComplementaryInvoiceHeader records → zero or one FiscalDocModel_BR record
FiscalDocumentType→FiscalDocumentType_BRJoin on
FiscalDocumentType = FiscalDocumentType_BR.RecIdMany PurchComplementaryInvoiceHeader records → zero or one FiscalDocumentType_BR record
FiscalEstablishment→FiscalEstablishment_BRJoin on
FiscalEstablishment_BR = FiscalEstablishment_BR.RecIdMany PurchComplementaryInvoiceHeader records → exactly one FiscalEstablishment_BR record
OriginalFiscalDocument→FiscalDocument_BRJoin on
ComplementedFiscalDocument = FiscalDocument_BR.RecIdOne or more PurchComplementaryInvoiceHeader records → exactly one FiscalDocument_BR record
PaymSched→PaymSchedJoin on
PaymSched = PaymSched.NameMany PurchComplementaryInvoiceHeader records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany PurchComplementaryInvoiceHeader records → zero or one PaymTerm record
ReasonTableRef→ReasonTableRefJoin on
ReasonTableRef_BR = ReasonTableRef.RecIdMany PurchComplementaryInvoiceHeader records → zero or one ReasonTableRef record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdZero or one PurchComplementaryInvoiceHeader record → exactly one SourceDocumentHeader record
ThirdPartyPostalAddress→LogisticsPostalAddressJoin on
ThirdPartyPostalAddress = LogisticsPostalAddress.RecIdMany PurchComplementaryInvoiceHeader records → exactly one LogisticsPostalAddress record
VendBankAccount→VendBankAccountJoin on
VendBankAccount = VendBankAccount.AccountID,VendTable = VendBankAccount.VendAccountMany PurchComplementaryInvoiceHeader records → zero or one VendBankAccount record
VendLedger→VendLedgerJoin on
PostingProfile = VendLedger.PostingProfileMany PurchComplementaryInvoiceHeader records → zero or one VendLedger record
VendPaymModeSpec→VendPaymModeSpecJoin on
VendPaymModeTable = VendPaymModeSpec.PaymMode,VendPaymModeSpec = VendPaymModeSpec.SpecificationMany PurchComplementaryInvoiceHeader records → zero or one VendPaymModeSpec record
VendPaymModeTable→VendPaymModeTableJoin on
VendPaymModeTable = VendPaymModeTable.PaymModeMany PurchComplementaryInvoiceHeader records → zero or one VendPaymModeTable record
VendTable→VendTableJoin on
VendTable = VendTable.AccountNumMany PurchComplementaryInvoiceHeader records → exactly one VendTable record
Get this data out
No public entity reads from PurchComplementaryInvoiceHeader. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchComplementaryInvoiceHeader in a report, an integration or a migration? Talk to Dr Dynamics.