Table

TaxProfileTable_CN

Tax integration profiles

Holds tax integration profiles, used for China. A profile is identified by a profile ID. It sets how invoices are exported, including file format, separators and date format. It also sets limits on invoice amount and lines, default commodity and tax code, responsible workers, and links to format mappings.

Table name
TaxProfileTable_CN
Module
Tax
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasicSalesTax
Primary index
None
Replacement key
ProfileIdx
Key fields
ProfileId
Model
Foundation

Fields (30)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ProfileIdUnique ID of the profile.String (20)
TaxProfileId_CN
YesNone
CommentSymbolSymbol used to mark comments in the exported file.Enum
TaxCommentSymbol_CN (enum)
NoNone
CommodityCodeDefault commodity code for invoice lines that have no item, such as free text invoices.String (20)
TaxProfileCommodityCode_CN
NoNone
CommodityHierachyPoints to the category hierarchy used for commodity codes.Int64
EcoResCategoryHierarchyId
NoEcoResCategoryHierarchy.RecIdNone
CreditNoteMemoMemo text format used for credit notes.Enum
CreditNoteMemo_CN (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateFormatDate format used in the export, such as YYYY-MM-DD or YYYYMMDD.Enum
TaxDateFormat_CN (enum)
NoNone
DefaultCommodityDefault commodity code used by the profile.String
ItemCodeStr
NoNone
DirectExportShows whether documents are exported straight after posting (yes or no).Enum
TaxExportDirect_CN
NoYes (enum)
NoNone
DisplaySignWhether amounts are shown as positive or negative.Enum
TaxDisplaySign_CN (enum)
NoNone
ExportFormatMappingPoints to the format mapping used for export.Int64
ERFormatMappingID
NoERFormatMappingTable.RecIdNone
ImportModelMappingPoints to the model mapping used for the import format.Int64
ERModelMappingID
NoERModelMappingTable.RecIdNone
IncludeTaxShows whether amounts include tax (yes or no).Enum
TaxIncludeAmount_CN
NoYes (enum)
NoNone
InvoiceAuditorWorkerWorker who acts as invoice auditor.Int64
HcmWorkerRecId
NoHcmWorker.RecIdNone
IsAddMiscChargesShows whether line charges are added into the exported invoice lines (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
IsDuplicatedVATInvNumAllowedShows whether duplicate VAT invoice numbers are allowed (yes or no).Enum
NoYes (enum)
NoNone
IsNonDeductibleVATInvoiceShows whether the VAT invoices are non-deductible (yes or no).Enum
NoYes (enum)
NoNone
IsSplitDuringPostingShows whether invoices are split during posting (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
IsValidateAmountLimitShows whether the amount limit is checked (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
MaxInvoiceAmountLargest amount allowed on one invoice.Real
Amount
NoNone
MaxInvoiceLinesLargest number of lines allowed on one invoice.Integer
Integer
NoNone
NameName of the profile.String (60)
Name
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentCollectorWorkerWorker who acts as payment collector.Int64
HcmWorkerRecId
NoHcmWorker.RecIdNone
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
SeparatorCharacter used to separate values in the exported file.Enum
TaxSeparator_CN (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxCodeSales tax code linked to the profile.String
TaxCode
NoTaxTable.TaxCodeNone
TaxRateTax value (rate) of the profile.Real
TaxValue
NoNone

Indexes (2)

  • ProfileIdxReplacement key

    ProfileId

    Unique, alternate key.

  • TaxCodeIdx

    TaxCode

    Unique, alternate key.

Relations (6)

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

  • InvoiceAuditor → HcmWorker

    Join on InvoiceAuditorWorker = HcmWorker.RecId

    Many TaxProfileTable_CN records → zero or one HcmWorker record

  • PaymentCollector → HcmWorker

    Join on PaymentCollectorWorker = HcmWorker.RecId

    Many TaxProfileTable_CN records → zero or one HcmWorker record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Zero or one TaxProfileTable_CN record → zero or one TaxTable record

  • ExportFormatMapping → ERFormatMappingTable

    Join on ExportFormatMapping = ERFormatMappingTable.RecId

    Many TaxProfileTable_CN records → zero or one ERFormatMappingTable record

  • CommodityHierarchy → EcoResCategoryHierarchy

    Join on CommodityHierachy = EcoResCategoryHierarchy.RecId

    Many TaxProfileTable_CN records → exactly one EcoResCategoryHierarchy record

  • ImportModelMapping → ERModelMappingTable

    Join on ImportModelMapping = ERModelMappingTable.RecId

    Many TaxProfileTable_CN records → zero or one ERModelMappingTable record

Get this data out

No public entity reads from TaxProfileTable_CN. Its data is only reachable through the application, a custom entity or a database export.

Need help with TaxProfileTable_CN in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk