Table
TaxIntgrExportDocumentSource_CN
Export document source
Holds the source data for an export document, used for China. It is a header-level record for an invoice. It carries the customer invoice account, invoice number and date, sales order or project contract, tax code and amount. It can also hold one miscellaneous charge with its tax details.
- Table name
TaxIntgrExportDocumentSource_CN- Module
Tax- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasicSalesTax- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CurrencyCodeCurrency code of the invoice. | String (3)CustCurrencyCode | Yes | None | |
CustBankAccountIdCustomer bank account used on the invoice. It is matched with the invoice account. | StringCustBankAccountId | Yes | CustBankAccount.AccountID | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionChargesText describing the miscellaneous charge. | String (60)TransTxt | No | None | |
InvoiceAccountCustomer account that the invoice is for. | String (20)CustInvoiceAccount | Yes | CustTable.AccountNum | None |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdInvoice number. | String (20)CustInvoiceId | Yes | None | |
MiscChargesExemptTaxShows whether the miscellaneous charge is exempt from tax (yes or no). | EnumTaxExemptTaxNoYes (enum) | No | None | |
MiscChargesLineNumLine number of the miscellaneous charge. | RealLineNum | No | None | |
MiscChargesNetAmountNet amount of the miscellaneous charge; currency not stated in the metadata. | RealTaxIntgrExportDocumentNetAmount_CN | No | None | |
MiscChargesTaxAmountTax amount of the miscellaneous charge; currency not stated in the metadata. | RealTaxIntgrExportDocumentTaxAmount_CN | No | None | |
MiscChargesTaxValueTax value (rate) for the miscellaneous charge. | RealTaxIntgrExportDocumentTaxValue_CN | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjInvoiceProjIdProject contract that the invoice relates to. | String (20)ProjInvoiceProjId | No | ProjInvoiceTable.ProjInvoiceProjId | 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 | |
SalesIdSales order number linked to the invoice. | String (20)SalesId | No | None | |
SourceRecIdSystem record ID of the source record. It is used together with the reference table ID. | Int64RefRecId | No | None | |
SourceRelationTypeTable ID that tells which kind of table the source record ID points to. | IntegerRefTableId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxCodeSales tax code applied to the source. | StringTaxCode | Yes | TaxTable.TaxCode | None |
TaxRegistrationPoints to the tax registration number record. | Int64RefRecId | Yes | TaxRegistration.RecId | None |
TransactionCurrencyAmountAmount in the transaction currency. | RealAmountCur | No | None | |
VATInvoiceDescTable_CNPoints to the VAT invoice description record. | Int64RefRecId | No | VATInvoiceDescTable_CN.RecId | None |
Indexes (5)
CustAccountIdxNot unique.
ProjIdxNot unique.
InvoiceIdxNot unique.
SourceSourceRelationType,SourceRecIdNot unique.
SalesIdIdxNot unique.
Relations (6)
Each relation joins TaxIntgrExportDocumentSource_CN to another table on the fields shown.
CustBankAccount→CustBankAccountJoin on
CustBankAccountId = CustBankAccount.AccountID,InvoiceAccount = CustBankAccount.CustAccountMany TaxIntgrExportDocumentSource_CN records → exactly one CustBankAccount record
CustTable→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany TaxIntgrExportDocumentSource_CN records → exactly one CustTable record
ProjInvoiceTable→ProjInvoiceTableJoin on
ProjInvoiceProjId = ProjInvoiceTable.ProjInvoiceProjIdMany TaxIntgrExportDocumentSource_CN records → zero or one ProjInvoiceTable record
TaxRegistration→TaxRegistrationJoin on
TaxRegistration = TaxRegistration.RecIdMany TaxIntgrExportDocumentSource_CN records → exactly one TaxRegistration record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany TaxIntgrExportDocumentSource_CN records → exactly one TaxTable record
VATInvoiceDescription→VATInvoiceDescTable_CNJoin on
VATInvoiceDescTable_CN = VATInvoiceDescTable_CN.RecIdMany TaxIntgrExportDocumentSource_CN records → zero or one VATInvoiceDescTable_CN record
Get this data out
No public entity reads from TaxIntgrExportDocumentSource_CN. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxIntgrExportDocumentSource_CN in a report, an integration or a migration? Talk to Dr Dynamics.