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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CurrencyCodeCurrency code of the invoice.String (3)
CustCurrencyCode
YesNone
CustBankAccountIdCustomer bank account used on the invoice. It is matched with the invoice account.String
CustBankAccountId
YesCustBankAccount.AccountIDNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionChargesText describing the miscellaneous charge.String (60)
TransTxt
NoNone
InvoiceAccountCustomer account that the invoice is for.String (20)
CustInvoiceAccount
YesCustTable.AccountNumNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdInvoice number.String (20)
CustInvoiceId
YesNone
MiscChargesExemptTaxShows whether the miscellaneous charge is exempt from tax (yes or no).Enum
TaxExemptTax
NoYes (enum)
NoNone
MiscChargesLineNumLine number of the miscellaneous charge.Real
LineNum
NoNone
MiscChargesNetAmountNet amount of the miscellaneous charge; currency not stated in the metadata.Real
TaxIntgrExportDocumentNetAmount_CN
NoNone
MiscChargesTaxAmountTax amount of the miscellaneous charge; currency not stated in the metadata.Real
TaxIntgrExportDocumentTaxAmount_CN
NoNone
MiscChargesTaxValueTax value (rate) for the miscellaneous charge.Real
TaxIntgrExportDocumentTaxValue_CN
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjInvoiceProjIdProject contract that the invoice relates to.String (20)
ProjInvoiceProjId
NoProjInvoiceTable.ProjInvoiceProjIdNone
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
SalesIdSales order number linked to the invoice.String (20)
SalesId
NoNone
SourceRecIdSystem record ID of the source record. It is used together with the reference table ID.Int64
RefRecId
NoNone
SourceRelationTypeTable ID that tells which kind of table the source record ID points to.Integer
RefTableId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxCodeSales tax code applied to the source.String
TaxCode
YesTaxTable.TaxCodeNone
TaxRegistrationPoints to the tax registration number record.Int64
RefRecId
YesTaxRegistration.RecIdNone
TransactionCurrencyAmountAmount in the transaction currency.Real
AmountCur
NoNone
VATInvoiceDescTable_CNPoints to the VAT invoice description record.Int64
RefRecId
NoVATInvoiceDescTable_CN.RecIdNone

Indexes (5)

Relations (6)

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

  • CustBankAccount → CustBankAccount

    Join on CustBankAccountId = CustBankAccount.AccountID, InvoiceAccount = CustBankAccount.CustAccount

    Many TaxIntgrExportDocumentSource_CN records → exactly one CustBankAccount record

  • CustTable → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many TaxIntgrExportDocumentSource_CN records → exactly one CustTable record

  • ProjInvoiceTable → ProjInvoiceTable

    Join on ProjInvoiceProjId = ProjInvoiceTable.ProjInvoiceProjId

    Many TaxIntgrExportDocumentSource_CN records → zero or one ProjInvoiceTable record

  • TaxRegistration → TaxRegistration

    Join on TaxRegistration = TaxRegistration.RecId

    Many TaxIntgrExportDocumentSource_CN records → exactly one TaxRegistration record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many TaxIntgrExportDocumentSource_CN records → exactly one TaxTable record

  • VATInvoiceDescription → VATInvoiceDescTable_CN

    Join on VATInvoiceDescTable_CN = VATInvoiceDescTable_CN.RecId

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

Email sales@drdynamics.co.uk