Table
SalesComplementaryInvoiceHeader
Sales complementary invoice
Header record for a sales complementary invoice. Each row holds the customer, dates, payment terms, status and total amount. Fields for fiscal documents and fiscal establishments show it is used for Brazil. It can point to another complementary invoice and to the fiscal document it complements.
- Table name
SalesComplementaryInvoiceHeader- 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 (36)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDistributionTemplatePoints to the accounting distribution template used for this invoice. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
CanceledInvoicePoints to another sales complementary invoice record that this invoice refers to as cancelled. | Int64RefRecId | No | SalesComplementaryInvoiceHeader.RecId | None |
CashDiscCode of the cash discount that applies to the invoice. | StringCustCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscDateDate linked to the cash discount. | DateCustCashDiscDate | No | None | |
CashDiscPercentPercentage rate of the discount. | RealDiscPct | No | None | |
ComplementaryTypeKind of complementary document, used for Brazil: none, price or tax. | EnumInvoiceComplementaryType_BR (enum) | No | None | |
ComplementedFiscalDocumentPoints to the fiscal document that this invoice complements, used for Brazil. | Int64RefRecId | No | FiscalDocument_BR.RecId | 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)CustCurrencyCode | No | Currency.CurrencyCode | None |
CustBankAccountIDCustomer bank account chosen for the invoice. | StringCustBankAccountId | No | CustBankAccount.AccountID | None |
CustFinalUserYes/No flag showing whether the customer is the final user. | EnumCustVendFinalUser_BRNoYes (enum) | No | None | |
CustPaymModeSpecPayment specification for the chosen method of payment. | StringPaymSpec | No | CustPaymModeSpec.Specification | None |
CustPaymModeTableMethod of payment used by the customer on this invoice. | StringCustPaymMode | No | CustPaymModeTable.PaymMode | None |
CustTableCustomer account that the invoice is for. | String (20)CustAccount | No | CustTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionPoints to the set of financial dimension values set as default for the invoice. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DocumentDateDate shown on the invoice. | DateDocumentDate | No | None | |
DueDateDate by which the invoice is due for payment. | DateDueDate | No | None | |
FinTagPoints to the financial tag attached to the invoice. | Int64FinTagRecId | No | FinTag.RecId | None |
FiscalDocumentNumberInvoice number of the complementary document. | String (50)InvoiceId | No | None | |
FiscalDocumentType_BRPoints to the fiscal document type, used for Brazil. | Int64RefRecId | No | FiscalDocumentType_BR.RecId | None |
FiscalEstablishment_BRPoints to the fiscal establishment that issues the invoice, used for Brazil. | Int64FiscalEstablishmentRecId_BR | No | FiscalEstablishment_BR.RecId | None |
LedgerVoucherVoucher number linked to the invoice. | String (20)Voucher | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymSchedPayment schedule that applies to the invoice. | String (30)PaymSchedId | No | PaymSched.Name | None |
PaymTermTerms of payment for the invoice. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
PostingProfileCustomer posting profile linked to the invoice. | StringCustPostingProfile | No | CustLedger.PostingProfile | None |
ReasonTableRef_BRPoints to a reason reference record, 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 | |
SourceDocumentHeaderPoints to the source document header linked to this invoice. | Int64RefRecId | No | SourceDocumentHeader.RecId | None |
StatusCurrent state of the invoice: open, posted, cancelled or cancel in progress. | EnumComplementaryInvoiceStatus (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ThirdPartyLogisticsPostalAddressPoints to a postal address, labelled as a third-party logistics address. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
TotalAmountTotal value of the invoice, in accounting currency. | RealAmountMST | No | None |
Indexes (15)
SourceDocumentHeaderIdxSourceDocumentHeader,Partition,dataAreaIdUnique, alternate key.
CurrencyIdxNot unique.
DimensionAttributeValueSetIdxNot unique.
FiscalDocumentType_BRIdxNot unique.
CustTableIdxNot unique.
LogisticsPostalAddressIdxThirdPartyLogisticsPostalAddressNot unique.
FiscalDocument_BRIdxNot unique.
AccountingDistributionTemplateIdxAccountingDistributionTemplateNot unique.
PaymTermIdxNot unique.
CustPaymModeTableIdxNot unique.
PaymSchedIdxNot unique.
CashDiscIdxNot unique.
CustLedgerIdxNot unique.
SalesComplementaryInvoiceHeaderIdxNot unique.
FiscalEstablishment_BRIdxNot unique.
Relations (19)
Each relation joins SalesComplementaryInvoiceHeader to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany SalesComplementaryInvoiceHeader records → zero or one AccountingDistributionTemplate record
CanceledSalesComplementaryInvoice→SalesComplementaryInvoiceHeaderJoin on
CanceledInvoice = SalesComplementaryInvoiceHeader.RecIdZero or one SalesComplementaryInvoiceHeader record → zero or one SalesComplementaryInvoiceHeader record
CashDisc→CashDiscJoin on
CashDisc = CashDisc.CashDiscCodeZero or one SalesComplementaryInvoiceHeader record → zero or one CashDisc record
ComplementedFiscalDocument→FiscalDocument_BRJoin on
ComplementedFiscalDocument = FiscalDocument_BR.RecIdMany SalesComplementaryInvoiceHeader records → exactly one FiscalDocument_BR record
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany SalesComplementaryInvoiceHeader records → zero or one Currency record
CustBankAccount→CustBankAccountJoin on
CustBankAccountID = CustBankAccount.AccountID,CustTable = CustBankAccount.CustAccountMany SalesComplementaryInvoiceHeader records → zero or one CustBankAccount record
CustLedger→CustLedgerJoin on
PostingProfile = CustLedger.PostingProfileMany SalesComplementaryInvoiceHeader records → zero or one CustLedger record
CustPaymModeSpec→CustPaymModeSpecJoin on
CustPaymModeTable = CustPaymModeSpec.PaymMode,CustPaymModeSpec = CustPaymModeSpec.SpecificationZero or one SalesComplementaryInvoiceHeader record → zero or one CustPaymModeSpec record
CustPaymModeTable→CustPaymModeTableJoin on
CustPaymModeTable = CustPaymModeTable.PaymModeMany SalesComplementaryInvoiceHeader records → zero or one CustPaymModeTable record
CustTable→CustTableJoin on
CustTable = CustTable.AccountNumMany SalesComplementaryInvoiceHeader records → exactly one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany SalesComplementaryInvoiceHeader records → zero or one DimensionAttributeValueSet record
FiscalDocumentType→FiscalDocumentType_BRJoin on
FiscalDocumentType_BR = FiscalDocumentType_BR.RecIdMany SalesComplementaryInvoiceHeader records → exactly one FiscalDocumentType_BR record
FiscalEstablishment→FiscalEstablishment_BRJoin on
FiscalEstablishment_BR = FiscalEstablishment_BR.RecIdMany SalesComplementaryInvoiceHeader records → exactly one FiscalEstablishment_BR record
PaymSched→PaymSchedJoin on
PaymSched = PaymSched.NameZero or one SalesComplementaryInvoiceHeader record → zero or one PaymSched record
PaymTerm→PaymTermJoin on
PaymTerm = PaymTerm.PaymTermIdMany SalesComplementaryInvoiceHeader records → zero or one PaymTerm record
ReasonTableRef→ReasonTableRefJoin on
ReasonTableRef_BR = ReasonTableRef.RecIdMany SalesComplementaryInvoiceHeader records → zero or one ReasonTableRef record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdZero or one SalesComplementaryInvoiceHeader record → exactly one SourceDocumentHeader record
ThirdPartyPostalAddress→LogisticsPostalAddressJoin on
ThirdPartyLogisticsPostalAddress = LogisticsPostalAddress.RecIdMany SalesComplementaryInvoiceHeader records → exactly one LogisticsPostalAddress record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany SalesComplementaryInvoiceHeader records → zero or one FinTag record
Get this data out
No public entity reads from SalesComplementaryInvoiceHeader. Its data is only reachable through the application, a custom entity or a database export.
Need help with SalesComplementaryInvoiceHeader in a report, an integration or a migration? Talk to Dr Dynamics.